diff options
author | Ryan Lortie <desrt@desrt.ca> | 2014-01-12 18:14:30 -0500 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2014-02-06 12:02:53 +0000 |
commit | 0e671286fc59b4a68e8640b955c07bd874486dd5 (patch) | |
tree | 22a89e185eaceef4c2e10c745a8053e60c31d4dd /docs/reference/gio/gio-sections.txt | |
parent | 7f36233042691d942982c4e6c4ea16f7e27aeb6b (diff) | |
download | glib-0e671286fc59b4a68e8640b955c07bd874486dd5.tar.gz glib-0e671286fc59b4a68e8640b955c07bd874486dd5.tar.bz2 glib-0e671286fc59b4a68e8640b955c07bd874486dd5.zip |
GApplication: parse command line options
Add support for parsing command line options with GApplication.
You can add GOptionGroup and GOptionEntry using two new APIs:
g_application_add_option_group() and
g_application_add_main_option_entries().
Also add a "handle-local-options" signal that allows handling of
commandline arguments in the local process without having to override
local_command_line.
As a special feature, you can have a %NULL @arg_data in a GOptionEntry
which will cause the argument to be stored in a GVariantDict. This
dictionary is available for inspection and modification by the
"handle-local-options" signal and can be forwarded to the primary
instance in cases of command line invocation (where it can be fetched
using g_application_command_line_get_options()).
https://bugzilla.gnome.org/show_bug.cgi?id=721977
Diffstat (limited to 'docs/reference/gio/gio-sections.txt')
-rw-r--r-- | docs/reference/gio/gio-sections.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/reference/gio/gio-sections.txt b/docs/reference/gio/gio-sections.txt index 679adfd04..86e7447f6 100644 --- a/docs/reference/gio/gio-sections.txt +++ b/docs/reference/gio/gio-sections.txt @@ -3020,6 +3020,9 @@ g_application_send_notification g_application_withdraw_notification <SUBSECTION> g_application_run +g_application_add_main_option_entries +g_application_add_option_group +<SUBSECTION> g_application_set_default g_application_get_default <SUBSECTION> |