GApplication: Add g_application_add_main_option

This function adds a single main option entry to be handeled by
GApplication. The option entry has it arg_data field set to NULL
and will be added to the applications packed_options.

The rationale for this is that bindings will be able to add
command line options even when they can't use the un-boxed struct
GOptionEntry.

https://bugzilla.gnome.org/show_bug.cgi?id=727455
This commit is contained in:
Jonas Danielsson
2014-08-13 07:06:36 -04:00
parent 4f775b7b7f
commit bf9c862504
3 changed files with 75 additions and 2 deletions

View File

@@ -3040,6 +3040,7 @@ g_application_withdraw_notification
<SUBSECTION>
g_application_run
g_application_add_main_option_entries
g_application_add_main_option
g_application_add_option_group
<SUBSECTION>
g_application_set_default