mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-28 10:30:03 +01:00
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:
parent
3448a27829
commit
4faa0650e5
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user