[gnome-settings-daemon] keyboard: Don't print warnings when calls were cancelled
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] keyboard: Don't print warnings when calls were cancelled
- Date: Wed, 7 Nov 2012 09:08:37 +0000 (UTC)
commit 9a0945c3811b2169434b4076ee2708e7338a14d7
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 7 09:55:22 2012 +0100
keyboard: Don't print warnings when calls were cancelled
https://bugzilla.gnome.org/show_bug.cgi?id=687810
plugins/keyboard/gsd-keyboard-manager.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/plugins/keyboard/gsd-keyboard-manager.c b/plugins/keyboard/gsd-keyboard-manager.c
index 3e69f86..4968559 100644
--- a/plugins/keyboard/gsd-keyboard-manager.c
+++ b/plugins/keyboard/gsd-keyboard-manager.c
@@ -233,7 +233,8 @@ fetch_ibus_engines_result (GObject *object,
result,
&error);
if (!list && error) {
- g_warning ("Couldn't finish IBus request: %s", error->message);
+ if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ g_warning ("Couldn't finish IBus request: %s", error->message);
g_error_free (error);
clear_ibus (manager);
@@ -337,7 +338,8 @@ set_ibus_engine_finish (GObject *object,
result = ibus_bus_set_global_engine_async_finish (ibus, res, &error);
if (!result) {
- g_warning ("Couldn't set IBus engine: %s", error->message);
+ if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ g_warning ("Couldn't set IBus engine: %s", error->message);
g_error_free (error);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]