summaryrefslogtreecommitdiff
path: root/gtk/gtkactionmuxer.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-07-19 01:55:13 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-07-20 08:24:53 -0400
commit9b294eb94edcd2e03212a4c5b5d93750d93d1d9d (patch)
tree2f96754b3b9e57c18e519a04b48df0453bb92c16 /gtk/gtkactionmuxer.c
parent96d42cf1ccfad99068efb81dd9eba3e9041657e5 (diff)
downloadgtk+-9b294eb94edcd2e03212a4c5b5d93750d93d1d9d.tar.gz
Add gtk_action_muxer_list_actions
This is needed to reinstate the actions support in the inspector.
Diffstat (limited to 'gtk/gtkactionmuxer.c')
-rw-r--r--gtk/gtkactionmuxer.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gtk/gtkactionmuxer.c b/gtk/gtkactionmuxer.c
index e08cc87c55..a1ad87326a 100644
--- a/gtk/gtkactionmuxer.c
+++ b/gtk/gtkactionmuxer.c
@@ -120,7 +120,6 @@ get_action_position (GtkWidgetAction *action)
return slot;
}
-#if 0
static void
gtk_action_muxer_append_group_actions (const char *prefix,
Group *group,
@@ -139,15 +138,13 @@ gtk_action_muxer_append_group_actions (const char *prefix,
g_strfreev (group_actions);
}
-static gchar **
-gtk_action_muxer_list_actions (GActionGroup *action_group)
+char **
+gtk_action_muxer_list_actions (GtkActionMuxer *muxer)
{
- GtkActionMuxer *muxer = GTK_ACTION_MUXER (action_group);
GHashTable *actions;
char **keys;
- actions = g_hash_table_new_full (g_str_hash, g_str_equal,
- g_free, NULL);
+ actions = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
for ( ; muxer != NULL; muxer = muxer->parent)
{
@@ -177,7 +174,6 @@ gtk_action_muxer_list_actions (GActionGroup *action_group)
return (char **)keys;
}
-#endif
static Group *
gtk_action_muxer_find_group (GtkActionMuxer *muxer,