Pass context down the implementation to check for the main_group. Bug
authorLoïc Minier <lool@dooz.org>
Fri, 25 Jan 2008 17:49:53 +0000 (17:49 +0000)
committerLoic Minier <lminier@src.gnome.org>
Fri, 25 Jan 2008 17:49:53 +0000 (17:49 +0000)
commit64c2dc4a06861f360c80691357dbf2692c528838
tree1972f9a28b30e887340d90065682a4309d047838
parent1f331ffde8812d016c7524f27fd72cc72c7aa21d
Pass context down the implementation to check for the main_group. Bug

2008-01-25  Loïc Minier  <lool@dooz.org>

       * glib/goption.c: (group_has_visible_entries),
       (group_list_has_visible_entires), (g_option_context_get_help): Pass
       context down the implementation to check for the main_group.
       Bug #510292.
       * glib/tests/option-context.c:
       Don't set G_OPTION_FLAG_IN_MAIN in main_entries
       (group_captions): only create group when actually adding it to the
       context; add an exit(0) to make sure the test succeeds.

svn path=/trunk/; revision=6377
ChangeLog
glib/goption.c
glib/tests/option-context.c