summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2014-08-30 13:53:34 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2014-08-30 13:53:34 +0200
commit5892e6110952ed87cf1ffb40af3705210a48562f (patch)
treede9ee516b69069db5e65f41743549be62f64d164
parentadf3ada81b8182cb535f06365ede576758df5777 (diff)
downloadgobject-introspection-5892e6110952ed87cf1ffb40af3705210a48562f.tar.gz
Update glib annotations from git master
-rw-r--r--gir/gio-2.0.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/gir/gio-2.0.c b/gir/gio-2.0.c
index 910e4c78..ba8a8eee 100644
--- a/gir/gio-2.0.c
+++ b/gir/gio-2.0.c
@@ -11294,6 +11294,35 @@
/**
+ * g_application_add_main_option:
+ * @application: the #GApplication
+ * @long_name: the long name of an option used to specify it in a commandline
+ * @short_name: the short name of an option
+ * @flags: flags from #GOptionFlags
+ * @arg: the type of the option, as a #GOptionArg
+ * @description: the description for the option in `--help` output
+ * @arg_description: (nullable): the placeholder to use for the extra argument
+ * parsed by the option in `--help` output
+ *
+ * Add an option to be handled by @application.
+ *
+ * Calling this function is the equivalent of calling
+ * g_application_add_main_option_entries() with a single #GOptionEntry
+ * that has its arg_data member set to %NULL.
+ *
+ * The parsed arguments will be packed into a #GVariantDict which
+ * is passed to #GApplication::handle-local-options. If
+ * %G_APPLICATION_HANDLES_COMMAND_LINE is set, then it will also
+ * be sent to the primary instance. See
+ * g_application_add_main_option_entries() for more details.
+ *
+ * See #GOptionEntry for more documentation of the arguments.
+ *
+ * Since: 2.42
+ */
+
+
+/**
* g_application_add_main_option_entries:
* @application: a #GApplication
* @entries: (array zero-terminated=1) (element-type GOptionEntry): a