[glibmm: 1/3] Make ListStore accept Interfaces.



commit 23b2ea8a2b3385ddfc0f1db90671a3615696d532
Author: Andreas Persson <andreasp56 outlook com>
Date:   Sat Jul 18 09:35:46 2020 +0200

    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.

 gio/src/liststore.hg | 4 ++--
 1 file 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();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]