[gnome-control-center] shell: Don't pass invalid option flags



commit ace6fb930964978ad44aeb5cfe254af6e7e16278
Author: Christian Persch <chpe gnome org>
Date:   Wed Feb 2 20:35:54 2011 +0100

    shell: Don't pass invalid option flags
    
    G_OPTION_FLAG_OPTIONAL_ARG is only valid for callback options.
    
    Bug #641290.

 shell/control-center.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/shell/control-center.c b/shell/control-center.c
index 684fc37..1a589a7 100644
--- a/shell/control-center.c
+++ b/shell/control-center.c
@@ -44,8 +44,8 @@ static gboolean show_overview = FALSE;
 
 const GOptionEntry all_options[] = {
   { "version", 0, G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK, option_version_cb, NULL, NULL },
-  { "overview", 'o', G_OPTION_FLAG_NO_ARG | G_OPTION_FLAG_OPTIONAL_ARG, G_OPTION_ARG_NONE, &show_overview, N_("Show the overview"), NULL },
-  { G_OPTION_REMAINING, '\0', G_OPTION_FLAG_OPTIONAL_ARG, G_OPTION_ARG_FILENAME_ARRAY, &start_panels, N_("Panel to display"), NULL },
+  { "overview", 'o', 0, G_OPTION_ARG_NONE, &show_overview, N_("Show the overview"), NULL },
+  { G_OPTION_REMAINING, '\0', 0, G_OPTION_ARG_FILENAME_ARRAY, &start_panels, N_("Panel to display"), NULL },
   { NULL } /* end the list */
 };
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]