meta: Make MetaBackgroundGroup derivable

https://gitlab.gnome.org/GNOME/mutter/merge_requests/640
This commit is contained in:
Corentin Noël 2019-06-24 13:49:31 +00:00 committed by Georges Basile Stavracas Neto
parent 68f18f1fe9
commit bd7704f9e1
2 changed files with 9 additions and 9 deletions

View File

@ -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,

View File

@ -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);