[gtk/wip/otte/matthiasc/popup2: 10/92] inspector: Show popups



commit 9998323e02ea1c306f3369e42d234b1c5fadff9c
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Feb 25 00:02:46 2019 -0500

    inspector: Show popups
    
    This is useful for debugging.

 gtk/inspector/object-tree.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtk/inspector/object-tree.c b/gtk/inspector/object-tree.c
index 9dae1d5183..9a763e22a5 100644
--- a/gtk/inspector/object-tree.c
+++ b/gtk/inspector/object-tree.c
@@ -56,6 +56,7 @@
 #include "gtksearchbar.h"
 #include "gtksearchentry.h"
 #include "gtkeventcontrollerkey.h"
+#include "gtkpopup.h"
 
 enum
 {
@@ -1144,6 +1145,7 @@ create_root_model (void)
                                          g_object_unref);
   gtk_filter_list_model_set_model (filter, gtk_window_get_toplevels ());
   g_list_store_append (list, filter);
+  g_list_store_append (list, gtk_popup_get_popups ());
   g_object_unref (filter);
 
   flatten = gtk_flatten_list_model_new (G_TYPE_OBJECT, G_LIST_MODEL (list));


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