background-group: Subclass ClutterActor, not ClutterGroup
We use the new Clutter Actor API in the shell, so we really shouldn't be using ClutterGroup. https://bugzilla.gnome.org/show_bug.cgi?id=695881
This commit is contained in:
parent
1f905bd0e2
commit
0bb8d29be4
@ -7,7 +7,7 @@
|
|||||||
#include "meta-background-actor-private.h"
|
#include "meta-background-actor-private.h"
|
||||||
#include "meta-background-group-private.h"
|
#include "meta-background-group-private.h"
|
||||||
|
|
||||||
G_DEFINE_TYPE (MetaBackgroundGroup, meta_background_group, CLUTTER_TYPE_GROUP);
|
G_DEFINE_TYPE (MetaBackgroundGroup, meta_background_group, CLUTTER_TYPE_ACTOR);
|
||||||
|
|
||||||
struct _MetaBackgroundGroupPrivate
|
struct _MetaBackgroundGroupPrivate
|
||||||
{
|
{
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
/**
|
/**
|
||||||
* MetaBackgroundGroup:
|
* MetaBackgroundGroup:
|
||||||
*
|
*
|
||||||
* This class is a subclass of ClutterGroup with special handling for
|
* This class is a subclass of ClutterActor with special handling for
|
||||||
* MetaBackgroundActor when painting the group. It makes sure to only
|
* MetaBackgroundActor when painting the group. It makes sure to only
|
||||||
* draw the parts of the backgrounds not occluded by opaque windows.
|
* draw the parts of the backgrounds not occluded by opaque windows.
|
||||||
*
|
*
|
||||||
@ -29,12 +29,12 @@ typedef struct _MetaBackgroundGroupPrivate MetaBackgroundGroupPrivate;
|
|||||||
|
|
||||||
struct _MetaBackgroundGroupClass
|
struct _MetaBackgroundGroupClass
|
||||||
{
|
{
|
||||||
ClutterGroupClass parent_class;
|
ClutterActorClass parent_class;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _MetaBackgroundGroup
|
struct _MetaBackgroundGroup
|
||||||
{
|
{
|
||||||
ClutterGroup parent;
|
ClutterActor parent;
|
||||||
|
|
||||||
MetaBackgroundGroupPrivate *priv;
|
MetaBackgroundGroupPrivate *priv;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user