Fix Windows build (#4892)

This commit is contained in:
Flössie
2018-10-28 19:35:31 +01:00
parent 5906329485
commit 1d0c128209
3 changed files with 20 additions and 16 deletions

View File

@@ -436,10 +436,12 @@ void BatchQueue::cancelItems (const std::vector<ThumbBrowserEntryBase*>& items)
if (entry->thumbnail) if (entry->thumbnail)
entry->thumbnail->imageRemovedFromQueue (); entry->thumbnail->imageRemovedFromQueue ();
const auto func = [](BatchQueueEntry* bqe) -> bool { const auto func =
::g_remove(bqe->savedParamsFile.c_str()); [](BatchQueueEntry* bqe) -> bool
return false; {
}; ::g_remove(bqe->savedParamsFile.c_str());
return false;
};
idle_register.add<BatchQueueEntry>(func, entry, true); idle_register.add<BatchQueueEntry>(func, entry, true);
} }

View File

@@ -248,13 +248,14 @@ int updateVolumesUI (void* br)
void DirBrowser::winDirChanged () void DirBrowser::winDirChanged ()
{ {
const auto func = [](gpointer data) -> gboolean { const auto func =
static_cast<DirBrowser*>(data)->updateDirTreeRoot(); [](DirBrowser* self) -> bool
{
self->updateDirTreeRoot();
return false;
};
return FALSE; idle_register.add<DirBrowser>(func, this, false);
};
idle_register.add(func, this);
} }
#endif #endif

View File

@@ -1793,13 +1793,14 @@ void FileCatalog::reparseDirectory ()
void FileCatalog::winDirChanged () void FileCatalog::winDirChanged ()
{ {
const auto func = [](gpointer data) -> gboolean { const auto func =
static_cast<FileCatalog*>(data)->reparseDirectory(); [](FileCatalog* self) -> bool
{
self->reparseDirectory();
return false;
};
return FALSE; idle_register.add<FileCatalog>(func, this, false);
};
idle_register.add(func, this);
} }
#else #else