[mutter/wip/tintou/background-class-derivable: 3/3] meta: Make MetaBackgroundGroup derivable
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/tintou/background-class-derivable: 3/3] meta: Make MetaBackgroundGroup derivable
- Date: Mon, 24 Jun 2019 13:43:59 +0000 (UTC)
commit a5928e1398e1f5a9cd02f8c9869e454b01abd25e
Author: Corentin Noël <corentin elementary io>
Date: Mon Jun 24 11:19:47 2019 +0200
meta: Make MetaBackgroundGroup derivable
https://gitlab.gnome.org/GNOME/mutter/merge_requests/640
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]