[glibmm/glibmm-2-66] Make Gio::ListStore accept Interfaces.
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/glibmm-2-66] Make Gio::ListStore accept Interfaces.
- Date: Tue, 12 Jan 2021 15:05:18 +0000 (UTC)
commit 50f243ddfd287315f021b8b7ba810c18eb21e668
Author: Andreas Persson <andreasp56 outlook com>
Date: Tue Jan 12 09:55:45 2021 +0100
Make Gio::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.
See MR !38 and issue #78.
gio/src/liststore.hg | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gio/src/liststore.hg b/gio/src/liststore.hg
index 844041da..15480c51 100644
--- a/gio/src/liststore.hg
+++ b/gio/src/liststore.hg
@@ -109,13 +109,13 @@ public:
*
* @tparam T_item Base class of the items in the ListStore. All items must
* be of type T_item or a type derived from T_item.
- * T_item must be Glib::Object or a type derived from Glib::Object.
+ * T_item must be Glib::ObjectBase or a type derived from Glib::ObjectBase.
*/
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();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]