From 6a11c59290000b604ab6c0f7da1bed11147be221 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 3 Jan 2011 13:11:55 -0500 Subject: [PATCH] Release GtkApplication earlier GtkWindow was only releasing the application in finalize, causing problems for language bindings. Now we release it already in destroy (and then again in finalize for good measure). https://bugzilla.gnome.org/show_bug.cgi?id=638580 --- gtk/gtkwindow.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 78a2a62bf5..a81ac65a88 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -4513,6 +4513,8 @@ gtk_window_destroy (GtkWidget *widget) GtkWindow *window = GTK_WINDOW (widget); GtkWindowPrivate *priv = window->priv; + gtk_window_release_application (window); + toplevel_list = g_slist_remove (toplevel_list, window); if (priv->transient_parent) @@ -4520,7 +4522,7 @@ gtk_window_destroy (GtkWidget *widget) /* frees the icons */ gtk_window_set_icon_list (window, NULL); - + if (priv->has_user_ref_count) { priv->has_user_ref_count = FALSE;