[glib] G_OPTION_FLAG_NO_ARG is only for callback options
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] G_OPTION_FLAG_NO_ARG is only for callback options
- Date: Wed, 18 Aug 2010 13:32:18 +0000 (UTC)
commit a35efb0939c05d572b3a601fb3de62c599d2cf9c
Author: Christian Persch <chpe gnome org>
Date: Wed Aug 18 01:02:22 2010 +0200
G_OPTION_FLAG_NO_ARG is only for callback options
Bug #627252.
glib/tests/option-context.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/glib/tests/option-context.c b/glib/tests/option-context.c
index ffb4d13..81096db 100644
--- a/glib/tests/option-context.c
+++ b/glib/tests/option-context.c
@@ -33,16 +33,14 @@ group_captions (void)
gchar *help_variants[] = { "--help", "--help-all", "--help-test" };
GOptionEntry main_entries[] = {
- { "main-switch", 0,
- G_OPTION_FLAG_NO_ARG,
+ { "main-switch", 0, 0,
G_OPTION_ARG_NONE, NULL,
"A switch that is in the main group", NULL },
{ NULL }
};
GOptionEntry group_entries[] = {
- { "test-switch", 0,
- G_OPTION_FLAG_NO_ARG,
+ { "test-switch", 0, 0,
G_OPTION_ARG_NONE, NULL,
"A switch that is in the test group", NULL },
{ NULL }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]