GApplication: Add g_application_add_main_option
authorJonas Danielsson <jonas@threetimestwo.org>
Wed, 13 Aug 2014 11:06:36 +0000 (07:06 -0400)
committerJonas Danielsson <jonas@threetimestwo.org>
Wed, 20 Aug 2014 14:02:59 +0000 (16:02 +0200)
commitbf9c8625048d2adc5cbc5893fa27e7e9a3a9ba3e
treed0b992e750c19b7494a091459e3e3dc421aa3c90
parent4f775b7b7ff38581b110ce1664451381ca3d88b6
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
docs/reference/gio/gio-sections.txt
gio/gapplication.c
gio/gapplication.h