diff options
author | Andreas Persson <andreasp56@outlook.com> | 2020-07-18 09:35:46 +0200 |
---|---|---|
committer | Andreas Persson <andreasp56@outlook.com> | 2020-07-18 09:35:46 +0200 |
commit | 23b2ea8a2b3385ddfc0f1db90671a3615696d532 (patch) | |
tree | 409b14a4a4a49ae790706bf00e2eae2a6dcaac2f /gio/src | |
parent | f5ec1296edea83a81d035f787ce63951f90f44b1 (diff) | |
download | glibmm-23b2ea8a2b3385ddfc0f1db90671a3615696d532.tar.gz |
Make ListStore accept Interfaces.
I noticed that I couldn't create a ListStore containing AppInfo objects,
because an AppInfo is not an Object but an Interface. ListStore seems to
work fine with Interfaces, so I just changed the static_assert.
Diffstat (limited to 'gio/src')
-rw-r--r-- | gio/src/liststore.hg | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gio/src/liststore.hg b/gio/src/liststore.hg index 5585116e..4a99a0d6 100644 --- a/gio/src/liststore.hg +++ b/gio/src/liststore.hg @@ -114,8 +114,8 @@ public: template <typename T_item> class ListStore : public ListStoreBase { - static_assert(std::is_base_of<Glib::Object, T_item>::value, - "T_item must be Glib::Object or derived from Glib::Object."); + static_assert(std::is_base_of<Glib::ObjectBase, T_item>::value, + "T_item must be Glib::ObjectBase or derived from Glib::ObjectBase."); protected: ListStore(); |