[Xfce4-commits] [xfce/xfdesktop] 03/05: Drop warning when D-Bus timeout error occurs (Bug #11283)

noreply at xfce.org noreply at xfce.org
Thu Mar 26 04:30:13 CET 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository xfce/xfdesktop.

commit b0388120725ff485e5ae40fde4017aa8c7efb9cf
Author: Thaddaeus Tintenfisch <thad.fisch at gmail.com>
Date:   Sun Mar 1 23:42:52 2015 +0100

    Drop warning when D-Bus timeout error occurs (Bug #11283)
    
    Signed-off-by: Eric Koegel <eric.koegel at gmail.com>
---
 src/xfdesktop-file-utils.c |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/xfdesktop-file-utils.c b/src/xfdesktop-file-utils.c
index 8494387..5295ed3 100644
--- a/src/xfdesktop-file-utils.c
+++ b/src/xfdesktop-file-utils.c
@@ -679,11 +679,14 @@ xfdesktop_file_utils_async_cb(DBusGProxy *proxy, GError *error, gpointer userdat
     GtkWindow *parent = GTK_WINDOW(userdata);
 
     if(error != NULL) {
-        xfce_message_dialog(parent,
-                            _("Error"), GTK_STOCK_DIALOG_ERROR,
-                            _("The requested operation could not be completed"),
-                            error->message, GTK_STOCK_CLOSE, GTK_RESPONSE_ACCEPT,
-                            NULL);
+        /* ignore dbus timeout error (bug #11283) */
+        if(error->code != DBUS_GERROR_NO_REPLY) {
+            xfce_message_dialog(parent,
+                                _("Error"), GTK_STOCK_DIALOG_ERROR,
+                                _("The requested operation could not be completed"),
+                                error->message, GTK_STOCK_CLOSE, GTK_RESPONSE_ACCEPT,
+                                NULL);
+        }
         g_error_free(error);
     }
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list