diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-12-06 16:44:31 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-12-06 16:44:31 +0000 |
commit | 73696ef8be895797cd84d86c6f85ea2fdc5a7a3d (patch) | |
tree | 0398bf261fc815178d4d1bd8544cace823f2cea6 /gdk/gdk.c | |
parent | 83344dae857acd2b4d70d1f1677a2e09b400517f (diff) | |
download | gtk+-73696ef8be895797cd84d86c6f85ea2fdc5a7a3d.tar.gz |
Don't ignore errors from g_option_context_parse().
2005-12-06 Matthias Clasen <mclasen@redhat.com>
* gdk/gdk.c (gdk_parse_args):
* gtk/gtkmain.c (gtk_parse_args): Don't ignore errors
from g_option_context_parse().
Diffstat (limited to 'gdk/gdk.c')
-rw-r--r-- | gdk/gdk.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -201,6 +201,7 @@ gdk_parse_args (int *argc, { GOptionContext *option_context; GOptionGroup *option_group; + GError *error = NULL; if (gdk_initialized) return; @@ -216,7 +217,11 @@ gdk_parse_args (int *argc, g_option_group_add_entries (option_group, gdk_args); g_option_group_add_entries (option_group, _gdk_windowing_args); - g_option_context_parse (option_context, argc, argv, NULL); + if (g_option_context_parse (option_context, argc, argv, &error)) + { + g_warning ("%s", error->message); + g_error_free (error); + } g_option_context_free (option_context); GDK_NOTE (MISC, g_message ("progname: \"%s\"", g_get_prgname ())); |