summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-03-13 20:45:15 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-03-13 20:45:15 +0000
commit38bb62c43da21a826f50d7f94db4cae7b51b01d4 (patch)
tree0dc12d852af66d19240925d9d682d0d1a6427d10 /gtk/gtkwindow.c
parentb1b58fe3df6eade4df98bdee0c55549d71bd5c78 (diff)
downloadgdk-pixbuf-38bb62c43da21a826f50d7f94db4cae7b51b01d4.tar.gz
Remove the window from the toplevel_list here rather in destroy. While
Sat Mar 13 15:19:17 2004 Owen Taylor <otaylor@redhat.com> * gtk/gtkwindow.c (gtk_window_destroy): Remove the window from the toplevel_list here rather in destroy. While this is theoretically speaking wrong, it fits in better with the current reality that destroyed widgets are not reusable. (#126808, Michael Natterer)
Diffstat (limited to 'gtk/gtkwindow.c')
-rw-r--r--gtk/gtkwindow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 83d8c1cb7..f80833d44 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -3500,6 +3500,8 @@ gtk_window_destroy (GtkObject *object)
{
GtkWindow *window = GTK_WINDOW (object);
+ toplevel_list = g_slist_remove (toplevel_list, window);
+
if (window->transient_parent)
gtk_window_set_transient_for (window, NULL);
@@ -3551,8 +3553,6 @@ gtk_window_finalize (GObject *object)
{
GtkWindow *window = GTK_WINDOW (object);
- toplevel_list = g_slist_remove (toplevel_list, window);
-
g_free (window->title);
g_free (window->wmclass_name);
g_free (window->wmclass_class);