[gnome-shell] StImText: add get_paint_volume()



commit 6b723ed72af31b80364b319fe34f545f25f911b1
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Sat Nov 13 07:59:41 2010 -0500

    StImText: add get_paint_volume()
    
    Since StImText isn't a StWidget, it needs it's own implementation
    of get_paint_volume() to enable clipped redraws.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=630932

 src/st/st-im-text.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/st/st-im-text.c b/src/st/st-im-text.c
index 5f00abf..2b3f0fd 100644
--- a/src/st/st-im-text.c
+++ b/src/st/st-im-text.c
@@ -181,6 +181,13 @@ st_im_text_paint (ClutterActor *actor)
     update_im_cursor_location (self);
 }
 
+static gboolean
+st_im_text_get_paint_volume (ClutterActor       *self,
+                             ClutterPaintVolume *volume)
+{
+  return clutter_paint_volume_set_from_allocation (volume, self);
+}
+
 /* Returns a new reference to window */
 static GdkWindow *
 window_for_actor (ClutterActor *actor)
@@ -440,6 +447,7 @@ st_im_text_class_init (StIMTextClass *klass)
   object_class->dispose = st_im_text_dispose;
 
   actor_class->paint = st_im_text_paint;
+  actor_class->get_paint_volume = st_im_text_get_paint_volume;
   actor_class->realize = st_im_text_realize;
   actor_class->unrealize = st_im_text_unrealize;
 



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