Updating branch refs/heads/jannis/port-to-udev
         to e35b49c8cdb645365db3c98c5bd556d6255a9ac6 (commit)
       from 26fdff383a1e2f94265599954ef7c70058bcc226 (commit)

commit e35b49c8cdb645365db3c98c5bd556d6255a9ac6
Author: Jannis Pohlmann <[email protected]>
Date:   Wed Jul 21 14:33:04 2010 +0200

    Fix command line option handling (add code for --version).

 thunar-volman/main.c |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/thunar-volman/main.c b/thunar-volman/main.c
index 96f16dd..2943c88 100644
--- a/thunar-volman/main.c
+++ b/thunar-volman/main.c
@@ -105,6 +105,19 @@ main (int    argc,
       return EXIT_FAILURE;
     }
 
+  /* check if we should print version information */
+  if (opt_version)
+    {
+      g_print ("%s %s (Xfce %s)\n\n", PACKAGE_NAME, PACKAGE_VERSION, 
+               xfce_version_string ());
+      g_print ("%s\n", "Copyright (c) 2004-2007 Benedikt Meurer 
<[email protected]>");
+      g_print ("%s\n", "Copyright (c)      2010 Jannis Pohlmann 
<[email protected]>");
+      g_print ("\n%s\n\n", _("All rights reserved."));
+      g_print (_("Please report bugs to <%s>."), PACKAGE_BUGREPORT);
+      g_print ("\n");
+      return EXIT_SUCCESS;
+    }
+
   /* initialize xfconf */
   if (!xfconf_init (&error))
     {
@@ -114,7 +127,7 @@ main (int    argc,
     }
 
   /* check if we should print the version information */
-  if (opt_version)
+  if (opt_configure)
     {
       /* the --configure/-c option of thunar-volman exists for 
backwards-compatibility
        * reasons only. what we really do here is spawning 
thunar-volman-settings */
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to