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

@@ -172,14 +172,14 @@ BatchQueuePanel::BatchQueuePanel (FileCatalog* aFileCatalog) : parent(nullptr)
show_all ();
if (batchQueue->loadBatchQueue()) {
const auto func =
[](BatchQueue* bq) -> bool
idle_register.add(
[this]() -> bool
{
bq->resizeLoadedQueue();
batchQueue->resizeLoadedQueue();
return false;
};
idle_register.add<BatchQueue>(func, batchQueue, false, G_PRIORITY_LOW);
},
G_PRIORITY_LOW
);
}
}