[mutter] meta-background-group: Report a paint volume



commit e4269002ce18ea5262db28f983ccdd21039ca7fc
Author: Adel Gadllah <adel gadllah gmail com>
Date:   Sat Mar 2 13:06:30 2013 +0100

    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

 src/compositor/meta-background-group.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/compositor/meta-background-group.c b/src/compositor/meta-background-group.c
index b26ed6a..52e8372 100644
--- a/src/compositor/meta-background-group.c
+++ b/src/compositor/meta-background-group.c
@@ -20,11 +20,20 @@ meta_background_group_dispose (GObject *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
 meta_background_group_class_init (MetaBackgroundGroupClass *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;
 
   g_type_class_add_private (klass, sizeof (MetaBackgroundGroupPrivate));


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