[libgd] gd-stack: set parent window when adding stack children



commit 3abc95da3c5b44484aeae3c69e3701da160bf057
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Mar 19 11:35:30 2013 -0400

    gd-stack: set parent window when adding stack children
    
    Or children added after realization won't be properly displayed by
    the stack.

 libgd/gd-stack.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libgd/gd-stack.c b/libgd/gd-stack.c
index 14e6628..9d0e82b 100644
--- a/libgd/gd-stack.c
+++ b/libgd/gd-stack.c
@@ -857,6 +857,7 @@ gd_stack_add (GtkContainer *container,
 
   priv->children = g_list_append (priv->children, child_info);
 
+  gtk_widget_set_parent_window (child, priv->bin_window);
   gtk_widget_set_parent (child, GTK_WIDGET (stack));
 
   g_signal_connect (child, "notify::visible",


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