Updating branch refs/heads/master
         to 3927d0454a4052671408045dd39439fe97ed9277 (commit)
       from afdb5bdb85a84e199c14ee2cdafea752c4e40235 (commit)

commit 3927d0454a4052671408045dd39439fe97ed9277
Author: Landry Breuil <[email protected]>
Date:   Tue Apr 10 20:51:32 2012 +0200

    Properly display error dialog if xfce_spawn_command_line_on_screen() 
returned 1

 panel-plugin/devices.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/panel-plugin/devices.c b/panel-plugin/devices.c
index 8c99d01..a6b35fa 100644
--- a/panel-plugin/devices.c
+++ b/panel-plugin/devices.c
@@ -264,9 +264,9 @@ disk_mount (t_disk *pdisk, char *on_mount_cmd, char* 
mount_command, gboolean eje
             cmd = g_strconcat (cmd, " '", NULL);
 
         val = xfce_spawn_command_line_on_screen(gdk_screen_get_default(), cmd, 
FALSE, TRUE, &error);
-        DBG("cmd: '%s', returned %d \n", tmp, val);
-        if (!val)
-            xfce_dialog_show_error (NULL, error, "%s", _("Mount Plugin: Error 
executing command."));
+        DBG("cmd: '%s', returned %d \n", cmd, val);
+        if (val)
+            xfce_dialog_show_error (NULL, error, _("Mount Plugin: Error 
executing command."));
 
         g_free(cmd);
         g_free(tmp);
@@ -309,8 +309,8 @@ disk_umount (t_disk *pdisk, char* umount_command, gboolean 
synchronous, gboolean
         val = xfce_spawn_command_line_on_screen(gdk_screen_get_default(), tmp, 
FALSE, TRUE, &error);
         DBG("cmd: '%s', returned %d \n", tmp, val);
 
-        if  (!val) {
-            xfce_dialog_show_error (NULL, error, "%s", _("Mount Plugin: Error 
executing command."));
+        if  (val) {
+            xfce_dialog_show_error (NULL, error, _("Mount Plugin: Error 
executing command."));
             retval = ERROR;
         }
 
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to