Skip to content

Make ListStore accept Interfaces.

Andreas Persson requested to merge andreas56/glibmm:liststore-fix into master

I noticed that I couldn't create a ListStore containing objects implementing the AppInfo interface, because of a static_assert.

Here's the code I tried to compile:

auto store = Gio::ListStore<Gio::AppInfo>::create();
for (auto app : Gio::AppInfo::get_all()) {
  store->append(app);
}
Edited by Andreas Persson

Merge request reports