[gtk+/client-side-decorations: 89/92] Fix so we can't set the parent on icon_event_box after its parent is already set.



commit 5e1a2666f8ad5a4d55eb23b2edd6d6588f309ddb
Author: Cody Russell <bratsche gnome org>
Date:   Fri Dec 18 12:01:45 2009 +0100

    Fix so we can't set the parent on icon_event_box after its parent is already set.

 gtk/gtkwindow.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index fe10f67..09f7408 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -3791,11 +3791,10 @@ ensure_title_icon (GtkWindow *window)
                         "button-press-event",
                         G_CALLBACK (icon_button_press),
                         window);
-    }
-
-  gtk_widget_set_parent (priv->icon_event_box, GTK_WIDGET (window));
 
-  gtk_widget_show_all (priv->icon_event_box);
+      gtk_widget_set_parent (priv->icon_event_box, GTK_WIDGET (window));
+      gtk_widget_show_all (priv->icon_event_box);
+    }
 
   if (GTK_WIDGET_VISIBLE (window))
     {



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