[libpanel] action-muxer: fix parameter type for class actions



commit c7b5ebe3c552290915534854834f1dda7d00ce09
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jul 28 14:09:13 2022 -0700

    action-muxer: fix parameter type for class actions

 src/panel-action-muxer.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/panel-action-muxer.c b/src/panel-action-muxer.c
index 1ac0d98..af00649 100644
--- a/src/panel-action-muxer.c
+++ b/src/panel-action-muxer.c
@@ -711,6 +711,12 @@ panel_action_muxer_get_action_parameter_type (GActionGroup *group,
 {
   PanelActionMuxer *self = PANEL_ACTION_MUXER (group);
 
+  for (const PanelAction *iter = self->actions; iter; iter = iter->next)
+    {
+      if (g_strcmp0 (iter->name, action_name) == 0)
+        return iter->parameter_type;
+    }
+
   for (guint i = 0; i < self->action_groups->len; i++)
     {
       const PrefixedActionGroup *pag = g_ptr_array_index (self->action_groups, i);


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