[gnome-builder/wip/gtk4-port: 1196/1774] libide/core: add helper to get action state
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port: 1196/1774] libide/core: add helper to get action state
- Date: Mon, 11 Jul 2022 22:31:38 +0000 (UTC)
commit 4edb972199dc1ac0886cebc70a7fe5113b46f95b
Author: Christian Hergert <chergert redhat com>
Date: Fri May 27 11:13:34 2022 -0700
libide/core: add helper to get action state
src/libide/core/ide-action-group.h | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/src/libide/core/ide-action-group.h b/src/libide/core/ide-action-group.h
index 97cc3e398..d60c63af4 100644
--- a/src/libide/core/ide-action-group.h
+++ b/src/libide/core/ide-action-group.h
@@ -96,6 +96,15 @@ _##prefix##_get_action_info (GActionGroup *group,
return info; \
} \
\
+static inline GVariant * \
+prefix##_get_action_state (Type *self, \
+ const gchar *name) \
+{ \
+ Type##ActionInfo *info = _##prefix##_get_action_info (G_ACTION_GROUP (self), \
+ name); \
+ return info->state; \
+} \
+ \
static inline void \
prefix##_set_action_state (Type *self, \
const gchar *name, \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]