[gnome-session] [capplet] Make g-s-p return 0 when using --version



commit 863e6a05dbc1be0d4145acc44a81daba04a782b6
Author: Vincent Untz <vuntz gnome org>
Date:   Tue Jun 23 14:27:48 2009 +0200

    [capplet] Make g-s-p return 0 when using --version
    
    Returning 1 doesn't make sense, since there's no error.

 capplet/main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/capplet/main.c b/capplet/main.c
index 410cf6d..c8829a0 100644
--- a/capplet/main.c
+++ b/capplet/main.c
@@ -88,12 +88,12 @@ main (int argc, char *argv[])
         if (! gtk_init_with_args (&argc, &argv, " - GNOME Session Properties", options, GETTEXT_PACKAGE, &error)) {
                 g_warning ("Unable to start: %s", error->message);
                 g_error_free (error);
-                exit (1);
+                return 1;
         }
 
         if (show_version) {
                 g_print ("%s %s\n", argv [0], VERSION);
-                exit (1);
+                return 0;
         }
 
         dialog = gsm_properties_dialog_new ();



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