summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCody Russell <cody@jhu.edu>2008-10-13 15:15:23 +0000
committerCody Russell <bratsche@src.gnome.org>2008-10-13 15:15:23 +0000
commit9e3de2fe7f4240bf744cf2e8f27d3d743f417e9c (patch)
treee56827fa50aa57be8f6d3efad05b819010bfdcb1 /tests
parente74968f8ef28b7d1ae3957c278e0fe5af77e7b56 (diff)
downloadgtk+-9e3de2fe7f4240bf744cf2e8f27d3d743f417e9c.tar.gz
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
Diffstat (limited to 'tests')
-rw-r--r--tests/testfilechooser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testfilechooser.c b/tests/testfilechooser.c
index 57b27f8cbe..7c008055ee 100644
--- a/tests/testfilechooser.c
+++ b/tests/testfilechooser.c
@@ -491,7 +491,7 @@ main (int argc, char **argv)
char *backend = NULL;
GError *error = NULL;
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" },
{ "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 },