[gnome-control-center] shell: Correct "command-line" callback retval



commit d0d96529f2bf7042c9394e637ef65bfbc62ce524
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Oct 29 15:55:40 2010 +0100

    shell: Correct "command-line" callback retval

 shell/control-center.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/shell/control-center.c b/shell/control-center.c
index c29dd66..c3322c4 100644
--- a/shell/control-center.c
+++ b/shell/control-center.c
@@ -29,13 +29,14 @@
 #include <string.h>
 
 
-static void
+static int
 application_command_line_cb (GApplication  *application,
 			     GApplicationCommandLine  *command_line,
 			     GnomeControlCenter      *shell)
 {
   int argc;
   char **argv;
+  int retval = 0;
 
   argv = g_application_command_line_get_arguments (command_line, &argc);
   if (argc == 2)
@@ -49,6 +50,7 @@ application_command_line_cb (GApplication  *application,
         {
           g_warning ("Could not load setting panel \"%s\": %s", start_id,
                      (err) ? err->message : "Unknown error");
+          retval = 1;
           if (err)
             {
               g_error_free (err);
@@ -57,6 +59,7 @@ application_command_line_cb (GApplication  *application,
         }
     }
   g_strfreev (argv);
+  return retval;
 }
 
 static void



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