Fix option parsing so that -a and --action work correctly.
2008-10-13 Cody Russell <cody@jhu.edu> * test/testfilechooser.c: Fix option parsing so that -a and --action work correctly. svn path=/trunk/; revision=21645
This commit is contained in:

committed by
Cody Russell

parent
e74968f8ef
commit
9e3de2fe7f
@ -1,3 +1,8 @@
|
|||||||
|
2008-10-13 Cody Russell <cody@jhu.edu>
|
||||||
|
|
||||||
|
* test/testfilechooser.c: Fix option parsing so that -a and
|
||||||
|
--action work correctly.
|
||||||
|
|
||||||
2008-10-13 Christian Persch <chpe@gnome.org>
|
2008-10-13 Christian Persch <chpe@gnome.org>
|
||||||
|
|
||||||
Bug 555386 – format not a string literal and no format arguments
|
Bug 555386 – format not a string literal and no format arguments
|
||||||
|
@ -491,7 +491,7 @@ main (int argc, char **argv)
|
|||||||
char *backend = NULL;
|
char *backend = NULL;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
GOptionEntry options[] = {
|
GOptionEntry options[] = {
|
||||||
{ "action", 'a', 0, G_OPTION_ARG_STRING, &action, "Filechooser action", "ACTION" },
|
{ "action", 'a', 0, G_OPTION_ARG_STRING, &action_arg, "Filechooser action", "ACTION" },
|
||||||
{ "backend", 'b', 0, G_OPTION_ARG_STRING, &backend, "Filechooser backend (default: gtk+)", "BACKEND" },
|
{ "backend", 'b', 0, G_OPTION_ARG_STRING, &backend, "Filechooser backend (default: gtk+)", "BACKEND" },
|
||||||
{ "multiple", 'm', 0, G_OPTION_ARG_NONE, &multiple, "Select-multiple", NULL },
|
{ "multiple", 'm', 0, G_OPTION_ARG_NONE, &multiple, "Select-multiple", NULL },
|
||||||
{ "right-to-left", 'r', 0, G_OPTION_ARG_NONE, &force_rtl, "Force right-to-left layout.", NULL },
|
{ "right-to-left", 'r', 0, G_OPTION_ARG_NONE, &force_rtl, "Force right-to-left layout.", NULL },
|
||||||
|
Reference in New Issue
Block a user