[gtk+/client-side-decorations] Fix so we can't set the parent on icon_event_box after its parent is already set.
- From: Cody Russell <bratsche src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/client-side-decorations] Fix so we can't set the parent on icon_event_box after its parent is already set.
- Date: Fri, 18 Dec 2009 11:02:01 +0000 (UTC)
commit 02fe2c4c6dc092df1da919a314ca2a4eabb6f3ef
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 c2c7450..f9a9154 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -3760,11 +3760,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]