mirror of
https://github.com/brl/mutter.git
synced 2025-01-22 17:38:56 +00:00
meta-background-group: Report a paint volume
We never paint outside of the allocation so we can simply use clutter_paint_volume_set_from_allocation. https://bugzilla.gnome.org/show_bug.cgi?id=694988
This commit is contained in:
parent
4f2bb583bf
commit
e4269002ce
@ -20,11 +20,20 @@ meta_background_group_dispose (GObject *object)
|
|||||||
G_OBJECT_CLASS (meta_background_group_parent_class)->dispose (object);
|
G_OBJECT_CLASS (meta_background_group_parent_class)->dispose (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static gboolean
|
||||||
|
meta_background_group_get_paint_volume (ClutterActor *actor,
|
||||||
|
ClutterPaintVolume *volume)
|
||||||
|
{
|
||||||
|
return clutter_paint_volume_set_from_allocation (volume, actor);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
meta_background_group_class_init (MetaBackgroundGroupClass *klass)
|
meta_background_group_class_init (MetaBackgroundGroupClass *klass)
|
||||||
{
|
{
|
||||||
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
||||||
|
ClutterActorClass *actor_class = CLUTTER_ACTOR_CLASS (klass);
|
||||||
|
|
||||||
|
actor_class->get_paint_volume = meta_background_group_get_paint_volume;
|
||||||
object_class->dispose = meta_background_group_dispose;
|
object_class->dispose = meta_background_group_dispose;
|
||||||
|
|
||||||
g_type_class_add_private (klass, sizeof (MetaBackgroundGroupPrivate));
|
g_type_class_add_private (klass, sizeof (MetaBackgroundGroupPrivate));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user