[the-board] [tb] Change TbBox to advantage of Clutter's clipped-redraws



commit c97746b16b4c8882ca71f29f7c6487b1a44a93cc
Author: Lucas Rocha <lucasr gnome org>
Date:   Thu Jan 13 16:23:11 2011 +0000

    [tb] Change TbBox to advantage of Clutter's clipped-redraws

 src/tb/tb-box.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/tb/tb-box.c b/src/tb/tb-box.c
index 467087d..5dba45e 100644
--- a/src/tb/tb-box.c
+++ b/src/tb/tb-box.c
@@ -1810,6 +1810,13 @@ tb_box_pick (ClutterActor       *actor,
     }
 }
 
+static gboolean
+tb_box_get_paint_volume (ClutterActor       *actor,
+                         ClutterPaintVolume *volume)
+{
+  return clutter_paint_volume_set_from_allocation (volume, actor);
+}
+
 static void
 tb_box_class_init (TbBoxClass *klass)
 {
@@ -1825,6 +1832,7 @@ tb_box_class_init (TbBoxClass *klass)
 
   actor_class->get_preferred_width = tb_box_get_preferred_width;
   actor_class->get_preferred_height = tb_box_get_preferred_height;
+  actor_class->get_paint_volume = tb_box_get_paint_volume;
   actor_class->allocate = tb_box_allocate;
   actor_class->paint = tb_box_paint;
   actor_class->pick  = tb_box_pick;



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