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

@@ -139,14 +139,13 @@ FilePanel::FilePanel () : parent(nullptr), error(0)
fileCatalog->setFileSelectionListener (this);
const auto func =
[](FilePanel* self) -> bool
idle_register.add(
[this]() -> bool
{
self->init();
init();
return false;
};
idle_register.add<FilePanel>(func, this, false);
}
);
show_all ();
}