Warn if there already is a main group. (#170445, Jeff Franks)

2005-03-15  Matthias Clasen  <mclasen@redhat.com>

	* glib/goption.c (g_option_context_set_main_group): Warn
	if there already is a main group.  (#170445, Jeff Franks)
This commit is contained in:
Matthias Clasen 2005-03-15 13:24:22 +00:00 committed by Matthias Clasen
parent 3448a27829
commit 4faa0650e5
5 changed files with 27 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-03-15 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c (g_option_context_set_main_group): Warn
if there already is a main group. (#170445, Jeff Franks)
Sun Mar 13 22:01:17 2005 Manish Singh <yosh@gimp.org>
* tests/array-test.c: delete a bunch of dead code.

View File

@ -1,3 +1,8 @@
2005-03-15 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c (g_option_context_set_main_group): Warn
if there already is a main group. (#170445, Jeff Franks)
Sun Mar 13 22:01:17 2005 Manish Singh <yosh@gimp.org>
* tests/array-test.c: delete a bunch of dead code.

View File

@ -1,3 +1,8 @@
2005-03-15 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c (g_option_context_set_main_group): Warn
if there already is a main group. (#170445, Jeff Franks)
Sun Mar 13 22:01:17 2005 Manish Singh <yosh@gimp.org>
* tests/array-test.c: delete a bunch of dead code.

View File

@ -1,3 +1,8 @@
2005-03-15 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c (g_option_context_set_main_group): Warn
if there already is a main group. (#170445, Jeff Franks)
Sun Mar 13 22:01:17 2005 Manish Singh <yosh@gimp.org>
* tests/array-test.c: delete a bunch of dead code.

View File

@ -312,6 +312,13 @@ g_option_context_set_main_group (GOptionContext *context,
g_return_if_fail (context != NULL);
g_return_if_fail (group != NULL);
if (context->main_group)
{
g_warning ("This GOptionContext already has a main group");
return;
}
context->main_group = group;
}