[mutter/tintou/context-annotation] context: Add some missing introspection data
- From: Corentin Noël <corentinnoel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/tintou/context-annotation] context: Add some missing introspection data
- Date: Thu, 26 Aug 2021 10:43:46 +0000 (UTC)
commit 79f1e662c5455b508389160a1db1079cc2422d4d
Author: Corentin Noël <corentin noel collabora com>
Date: Thu Aug 26 12:42:31 2021 +0200
context: Add some missing introspection data
Allows to use option groups/entries from the introspection.
src/core/meta-context.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
---
diff --git a/src/core/meta-context.c b/src/core/meta-context.c
index 7bb0e5f460..65c0a955a5 100644
--- a/src/core/meta-context.c
+++ b/src/core/meta-context.c
@@ -78,6 +78,14 @@ typedef struct _MetaContextPrivate
G_DEFINE_TYPE_WITH_PRIVATE (MetaContext, meta_context, G_TYPE_OBJECT)
+/**
+ * meta_context_add_option_entries:
+ * @context: a #MetaContext
+ * @entries: (array zero-terminated=1): a %NULL-terminated array of #GOptionEntrys
+ * @translation_domain: (nullable): a translation domain to use, or %NULL
+ *
+ * See g_option_context_add_main_entries() for more details.
+ **/
void
meta_context_add_option_entries (MetaContext *context,
const GOptionEntry *entries,
@@ -92,6 +100,14 @@ meta_context_add_option_entries (MetaContext *context,
translation_domain);
}
+/**
+ * meta_context_add_option_group:
+ * @context: a #MetaContext
+ * @group: (transfer full): the group to add
+ *
+ * See g_option_context_add_group() for more details.
+ **/
+
void
meta_context_add_option_group (MetaContext *context,
GOptionGroup *group)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]