[mutter/wip/tintou/background-class-derivable] meta: Make MetaBackgroundGroup derivable



commit 40397233f813ba97f02cba47c357ec6fbf4c561b
Author: Corentin Noël <corentin elementary io>
Date:   Mon Jun 24 11:19:47 2019 +0200

    meta: Make MetaBackgroundGroup derivable

 src/compositor/meta-background-group.c |  5 -----
 src/meta/meta-background-group.h       | 13 +++++++++----
 2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/compositor/meta-background-group.c b/src/compositor/meta-background-group.c
index f3c125ab0..e30b8af4c 100644
--- a/src/compositor/meta-background-group.c
+++ b/src/compositor/meta-background-group.c
@@ -19,11 +19,6 @@
 #include "compositor/meta-cullable.h"
 #include "meta/meta-background-group.h"
 
-struct _MetaBackgroundGroup
-{
-  ClutterActor parent;
-};
-
 static void cullable_iface_init (MetaCullableInterface *iface);
 
 G_DEFINE_TYPE_WITH_CODE (MetaBackgroundGroup, meta_background_group, CLUTTER_TYPE_ACTOR,
diff --git a/src/meta/meta-background-group.h b/src/meta/meta-background-group.h
index accbb3e0f..b43fcb94a 100644
--- a/src/meta/meta-background-group.h
+++ b/src/meta/meta-background-group.h
@@ -10,10 +10,15 @@
 #define META_TYPE_BACKGROUND_GROUP (meta_background_group_get_type ())
 
 META_EXPORT
-G_DECLARE_FINAL_TYPE (MetaBackgroundGroup,
-                      meta_background_group,
-                      META, BACKGROUND_GROUP,
-                      ClutterActor)
+G_DECLARE_DERIVABLE_TYPE (MetaBackgroundGroup,
+                          meta_background_group,
+                          META, BACKGROUND_GROUP,
+                          ClutterActor)
+
+struct _MetaBackgroundGroupClass
+{
+  ClutterActorClass parent_class;
+};
 
 META_EXPORT
 ClutterActor *meta_background_group_new (void);


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