[gtk+/wip/simple-draw3] gtkcontainer: Don't stop propagation if no expose_window



commit 0ec74de37d8ea998963286e4fe95f0197b3108ce
Author: Alexander Larsson <alexl redhat com>
Date:   Tue Apr 30 15:02:38 2013 +0200

    gtkcontainer: Don't stop propagation if no expose_window
    
    We should always propagate to children in a plain gtk_widget_draw()
    call.

 gtk/gtkcontainer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index 5b9449a..ae2129c 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -3392,7 +3392,7 @@ gtk_container_propagate_draw (GtkContainer   *container,
     child_in_window = gdk_window_get_parent (gtk_widget_get_window (child));
   else
     child_in_window = gtk_widget_get_window (child);
-  if (child_in_window != event_window)
+  if (event_window != NULL && child_in_window != event_window)
     return;
 
   cairo_save (cr);


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