mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 05:20:17 +00:00
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)
This commit is contained in:
parent
b1b58fe3df
commit
38bb62c43d
@ -1,3 +1,11 @@
|
||||
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)
|
||||
|
||||
Sat Mar 13 21:47:47 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcellview.c (gtk_cell_view_expose): Don't do anything
|
||||
|
@ -1,3 +1,11 @@
|
||||
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)
|
||||
|
||||
Sat Mar 13 21:47:47 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcellview.c (gtk_cell_view_expose): Don't do anything
|
||||
|
@ -1,3 +1,11 @@
|
||||
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)
|
||||
|
||||
Sat Mar 13 21:47:47 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcellview.c (gtk_cell_view_expose): Don't do anything
|
||||
|
@ -1,3 +1,11 @@
|
||||
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)
|
||||
|
||||
Sat Mar 13 21:47:47 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcellview.c (gtk_cell_view_expose): Don't do anything
|
||||
|
@ -1,3 +1,11 @@
|
||||
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)
|
||||
|
||||
Sat Mar 13 21:47:47 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gtk/gtkcellview.c (gtk_cell_view_expose): Don't do anything
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user