[gnome-software] Destroy the sources dialog when it's closed



commit 5fc866d111cc35c0784a972b45bf26aa52203e81
Author: Kalev Lember <kalevlember gmail com>
Date:   Sun Oct 5 22:45:46 2014 +0200

    Destroy the sources dialog when it's closed

 src/gs-shell.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index db953fc..b2f79b1 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -710,6 +710,9 @@ gs_shell_show_sources (GsShell *shell)
        GtkWidget *dialog;
 
        dialog = gs_sources_dialog_new (priv->main_window, priv->plugin_loader);
+       g_signal_connect_swapped (dialog, "response",
+                                 G_CALLBACK (gtk_widget_destroy),
+                                 dialog);
        gtk_window_present (GTK_WINDOW (dialog));
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]