Updating branch refs/heads/master
         to a95036f97824c682ca2c10ed3deb99195ed3c4eb (commit)
       from 7904194c58633270be180e54f660dc62aea778a1 (commit)

commit a95036f97824c682ca2c10ed3deb99195ed3c4eb
Author: Enrico Tröger <enr...@xfce.org>
Date:   Sun Jan 17 23:59:00 2010 +0100

    Show an error message dialog if the file-manager command failed to execute

 src/window.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/window.c b/src/window.c
index d5decd4..00a1b28 100644
--- a/src/window.c
+++ b/src/window.c
@@ -551,8 +551,11 @@ static void action_open_cb(G_GNUC_UNUSED GtkAction 
*action, GigoloWindow *window
                        cmd = g_strconcat(file_manager, " \"", uri, "\"", NULL);
                        if (! g_spawn_command_line_async(cmd, &error))
                        {
-                               verbose("%s", error->message);
+                               gchar *msg = g_strdup_printf(_("The command 
'%s' failed"), cmd);
+                               gigolo_message_dialog((gpointer) window, 
GTK_MESSAGE_ERROR, _("Error"), msg, error->message);
+                               verbose("%s: %s", msg, error->message);
                                g_error_free(error);
+                               g_free(msg);
                        }
 
                        g_free(cmd);
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to