[Xfce4-commits] <xfce4-panel:master> Revert "Do not double-expose the window child (bug #6872)."

Nick Schermer noreply at xfce.org
Sun Nov 28 21:24:01 CET 2010


Updating branch refs/heads/master
         to 94b85e0a8eee985dbe8b2b6fcf5f135bc3116a0a (commit)
       from d055d221836c4b5425d37cc8a98992068059d200 (commit)

commit 94b85e0a8eee985dbe8b2b6fcf5f135bc3116a0a
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Nov 28 21:21:31 2010 +0100

    Revert "Do not double-expose the window child (bug #6872)."
    
    We don't chin up because the function is not a signal, this should
    fix bug #6889.

 panel/panel-window.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/panel/panel-window.c b/panel/panel-window.c
index 7a9788e..cb24128 100644
--- a/panel/panel-window.c
+++ b/panel/panel-window.c
@@ -696,6 +696,7 @@ panel_window_expose_event (GtkWidget      *widget,
   gint          xs, xe, ys, ye;
   gint          handle_w, handle_h;
   gdouble       alpha = 1.00;
+  GtkWidget    *child;
 
   /* expose the background and borders handled in PanelBaseWindow */
   (*GTK_WIDGET_CLASS (panel_window_parent_class)->expose_event) (widget, event);
@@ -770,6 +771,11 @@ panel_window_expose_event (GtkWidget      *widget,
   cairo_destroy (cr);
 
 end:
+  /* send the expose event to the child */
+  child = gtk_bin_get_child (GTK_BIN (widget));
+  if (G_LIKELY (child != NULL))
+    gtk_container_propagate_expose (GTK_CONTAINER (widget), child, event);
+
   return FALSE;
 }
 



More information about the Xfce4-commits mailing list