[gnome-settings-daemon/gnome-3-6] 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/gnome-3-6] keyboard: Don't print warnings when calls were cancelled
- Date: Wed, 7 Nov 2012 08:57:09 +0000 (UTC)
commit a882160bf26f6f7a5f509d9a11e8c62b256e2b9e
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 eec525f..e048046 100644
--- a/plugins/keyboard/gsd-keyboard-manager.c
+++ b/plugins/keyboard/gsd-keyboard-manager.c
@@ -232,7 +232,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);
@@ -413,7 +414,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]