[gnome-shell] generic-container: Queue a redraw in skip_paint()



commit bed063eea16b0e43ae7e6166e6786769f4f06c2a
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jan 13 23:48:51 2011 +0100

    generic-container: Queue a redraw in skip_paint()
    
    When changing a child's visibility with skip_paint(), the change
    will not be visible until a redraw is triggered. Queue a redraw,
    so that the function has an immediate effect.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=639461

 src/shell-generic-container.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/shell-generic-container.c b/src/shell-generic-container.c
index 8be3a96..c54ebf2 100644
--- a/src/shell-generic-container.c
+++ b/src/shell-generic-container.c
@@ -233,6 +233,8 @@ shell_generic_container_set_skip_paint (ShellGenericContainer  *self,
     g_hash_table_remove (self->priv->skip_paint, child);
   else
     g_hash_table_insert (self->priv->skip_paint, child, child);
+
+  clutter_actor_queue_redraw (CLUTTER_ACTOR (self));
 }
 
 static void



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