From 71ca9c1327e29052758f1b85d35cc64fab80114d Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Mon, 22 Jul 2019 13:25:12 +0800 Subject: Stop propagate error --- capplets/accessibility/at-properties/main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'capplets/accessibility') diff --git a/capplets/accessibility/at-properties/main.c b/capplets/accessibility/at-properties/main.c index b2d68e87..4f5a3be2 100644 --- a/capplets/accessibility/at-properties/main.c +++ b/capplets/accessibility/at-properties/main.c @@ -132,7 +132,7 @@ get_sm_proxy (void) } static gboolean -do_logout (GError **err) +do_logout (void) { GDBusProxy *sm_proxy; GError *error = NULL; @@ -151,7 +151,8 @@ do_logout (GError **err) NULL, &error); if (ret == NULL) { - g_propagate_error (err, error); + g_warning ("Could not call Logout by dbus: %s\n", error->message); + g_error_free (error); } else { g_variant_unref (ret); res = TRUE; @@ -174,8 +175,8 @@ cb_dialog_response (GtkDialog *dialog, gint response_id) else { g_message ("CLOSE AND LOGOUT!"); - if (!do_logout (NULL)) - gtk_main_quit (); + if (!do_logout ()) + gtk_main_quit (); } } -- cgit v1.2.1