[gnome-builder] libide/core: fix parameter type for class actions
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide/core: fix parameter type for class actions
- Date: Thu, 28 Jul 2022 21:10:01 +0000 (UTC)
commit 6d2078f6d1a6ea9545d15b57cd42dc9678b1efe6
Author: Christian Hergert <chergert redhat com>
Date: Thu Jul 28 14:08:27 2022 -0700
libide/core: fix parameter type for class actions
src/libide/core/ide-action-muxer.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/libide/core/ide-action-muxer.c b/src/libide/core/ide-action-muxer.c
index 3a92ce5b6..743f92e24 100644
--- a/src/libide/core/ide-action-muxer.c
+++ b/src/libide/core/ide-action-muxer.c
@@ -713,6 +713,12 @@ ide_action_muxer_get_action_parameter_type (GActionGroup *group,
{
IdeActionMuxer *self = IDE_ACTION_MUXER (group);
+ for (const IdeAction *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]