[gnome-settings-daemon] media-keys: Print warning for real errors
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] media-keys: Print warning for real errors
- Date: Sat, 29 Oct 2011 18:49:36 +0000 (UTC)
commit d11557f069e820a0cd9bae1b35be705c33d76e5c
Author: Bastien Nocera <hadess hadess net>
Date: Wed Oct 26 17:49:00 2011 +0100
media-keys: Print warning for real errors
We don't really care if the keysym isn't in the keymap, it's not
that much of an error.
plugins/media-keys/gsd-media-keys-manager.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
index 591a3b0..79b4455 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -396,10 +396,12 @@ init_kbd (GsdMediaKeysManager *manager)
key = g_new0 (Key, 1);
ret = egg_accelerator_parse_virtual (tmp, &key->keysym, &key->keycodes, &key->state);
if (ret != EGG_PARSE_ERROR_NONE) {
- if (keys[i].settings_key != NULL)
- g_debug ("Unable to parse key '%s' for GSettings entry '%s' (%d)", tmp, keys[i].settings_key, ret);
- else
- g_debug ("Unable to parse hard-coded key '%s' (%d)", keys[i].hard_coded, ret);
+ if (ret != EGG_PARSE_ERROR_NOT_IN_KEYMAP) {
+ if (keys[i].settings_key != NULL)
+ g_debug ("Unable to parse key '%s' for GSettings entry '%s' (%d)", tmp, keys[i].settings_key, ret);
+ else
+ g_debug ("Unable to parse hard-coded key '%s' (%d)", keys[i].hard_coded, ret);
+ }
g_free (tmp);
g_free (key);
continue;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]