[gtk/inspector-actions] inspector: Show the default.activate action



commit cd5c39834d14fffbe508a707d23bc1d350e91b89
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu May 2 01:53:57 2019 +0000

    inspector: Show the default.activate action
    
    We were hardcoding that GtkApplicationWindow only
    has a single action group with prefix 'win', but
    that is no longer the case. Simply use the code
    for the general widget case that can handle multiple
    action groups.

 gtk/inspector/actions.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/gtk/inspector/actions.c b/gtk/inspector/actions.c
index c4ec553c27..67628d2421 100644
--- a/gtk/inspector/actions.c
+++ b/gtk/inspector/actions.c
@@ -216,11 +216,9 @@ gtk_inspector_actions_set_object (GtkInspectorActions *sl,
   g_hash_table_remove_all (sl->priv->groups);
   g_hash_table_remove_all (sl->priv->iters);
   gtk_list_store_clear (sl->priv->model);
-  
+
   if (GTK_IS_APPLICATION (object))
     add_group (sl, page, G_ACTION_GROUP (object), "app");
-  else if (GTK_IS_APPLICATION_WINDOW (object))
-    add_group (sl, page, G_ACTION_GROUP (object), "win");
   else if (GTK_IS_WIDGET (object))
     {
       const gchar **prefixes;


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