summaryrefslogtreecommitdiff
path: root/capplets/accessibility/at-properties/main.c
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-07-22 13:25:12 +0800
committerVictor Kareh <[email protected]>2019-07-23 11:34:57 -0400
commit71ca9c1327e29052758f1b85d35cc64fab80114d (patch)
tree3e7547226815b29f4332d894ec078b9a6aaa0c9b /capplets/accessibility/at-properties/main.c
parentc26383120f4570810dc7ed3bf1068b3258c3cba2 (diff)
downloadmate-control-center-71ca9c1327e29052758f1b85d35cc64fab80114d.tar.bz2
mate-control-center-71ca9c1327e29052758f1b85d35cc64fab80114d.tar.xz
Stop propagate error
Diffstat (limited to 'capplets/accessibility/at-properties/main.c')
-rw-r--r--capplets/accessibility/at-properties/main.c9
1 files changed, 5 insertions, 4 deletions
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 ();
}
}