From 6b723ed72af31b80364b319fe34f545f25f911b1 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Sat, 13 Nov 2010 07:59:41 -0500 Subject: [PATCH] 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 file changed, 8 insertions(+) diff --git a/src/st/st-im-text.c b/src/st/st-im-text.c index 5f00abfca..2b3f0fd21 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;