[gtk/matthiasc/for-master: 8/8] inspector: Allow disposing the inspector



commit facf78a5b6fdc4dda59751bda708a9f573f9d488
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jul 17 23:15:42 2020 -0400

    inspector: Allow disposing the inspector
    
    We were hiding the inspector when the window
    is closed, but that has the side-effect of
    keeping references to application windows,
    so we would keep them artificially alive,
    which can have side-effects.
    
    So, make the inspector go away when closed.

 gtk/inspector/window.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/gtk/inspector/window.c b/gtk/inspector/window.c
index 665e4c4c18..ff865a3b79 100644
--- a/gtk/inspector/window.c
+++ b/gtk/inspector/window.c
@@ -226,8 +226,6 @@ gtk_inspector_window_init (GtkInspectorWindow *iw)
                                iw,
                                NULL);
 
-  gtk_window_set_hide_on_close (GTK_WINDOW (iw), TRUE);
-
   gtk_window_group_add_window (gtk_window_group_new (), GTK_WINDOW (iw));
 
   extension_point = g_io_extension_point_lookup ("gtk-inspector-page");


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