Convert almost all IdleRegister::add() calls to add(std::function<>)

This commit is contained in:
Flössie
2019-01-01 15:53:39 +01:00
parent 5af3f64a9d
commit b08fb04dae
22 changed files with 574 additions and 610 deletions

View File

@@ -1925,21 +1925,15 @@ void FileBrowser::openNextPreviousEditorImage (Glib::ustring fname, eRTNav nextP
}
}
void FileBrowser::_thumbRearrangementNeeded ()
{
refreshThumbImages (); // arrangeFiles is NOT enough
}
void FileBrowser::thumbRearrangementNeeded ()
{
const auto func =
[](FileBrowser* self) -> bool
idle_register.add(
[this]() -> bool
{
self->_thumbRearrangementNeeded();
refreshThumbImages();// arrangeFiles is NOT enough
return false;
};
idle_register.add<FileBrowser>(func, this, false);
}
);
}
void FileBrowser::selectionChanged ()