summaryrefslogtreecommitdiff
path: root/gtk/gtkplug.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2009-01-23 05:57:36 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2009-01-23 05:57:36 +0000
commit4569b49bedfc4f42188a6d16f053a343867ee7af (patch)
tree7fcfc6e5af1c4319e236ece170818003684b292c /gtk/gtkplug.c
parent5c99971a6715cfcf4c79394932f0a011d1eef14b (diff)
downloadgtk+-4569b49bedfc4f42188a6d16f053a343867ee7af.tar.gz
Keep GtkPlug in sync with the global list of toplevels.
Patch by Federico Mena Quintero * gtk/gtkwindow.h: * gtk/gtkwindow.c (_gtk_window_set_is_toplevel): New internal function used when a GtkPlug parents/unparents itself by an in-process GtkSocket. This keeps the plug's GTK_TOPLEVEL flag in sync with the global toplevel_list. * gtk/gtkplug.c (gtk_plug_set_is_child): Call _gtk_window_set_is_toplevel() to keep the toplevel list updated, instead of just setting/unsetting the GTK_TOPLEVEL flag. svn path=/trunk/; revision=22191
Diffstat (limited to 'gtk/gtkplug.c')
-rw-r--r--gtk/gtkplug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkplug.c b/gtk/gtkplug.c
index a692de8be3..4c31ea70d6 100644
--- a/gtk/gtkplug.c
+++ b/gtk/gtkplug.c
@@ -220,7 +220,7 @@ gtk_plug_set_is_child (GtkPlug *plug,
if (GTK_WIDGET_MAPPED (plug))
gtk_widget_unmap (GTK_WIDGET (plug));
- GTK_WIDGET_UNSET_FLAGS (plug, GTK_TOPLEVEL);
+ _gtk_window_set_is_toplevel (GTK_WINDOW (plug), FALSE);
gtk_container_set_resize_mode (GTK_CONTAINER (plug), GTK_RESIZE_PARENT);
_gtk_widget_propagate_hierarchy_changed (GTK_WIDGET (plug), GTK_WIDGET (plug));
@@ -235,7 +235,7 @@ gtk_plug_set_is_child (GtkPlug *plug,
plug->modality_group = gtk_window_group_new ();
gtk_window_group_add_window (plug->modality_group, GTK_WINDOW (plug));
- GTK_WIDGET_SET_FLAGS (plug, GTK_TOPLEVEL);
+ _gtk_window_set_is_toplevel (GTK_WINDOW (plug), TRUE);
gtk_container_set_resize_mode (GTK_CONTAINER (plug), GTK_RESIZE_QUEUE);
_gtk_widget_propagate_hierarchy_changed (GTK_WIDGET (plug), NULL);