[gnome-settings-daemon/gnome-3-2] common: Try to parse keycodes better
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-2] common: Try to parse keycodes better
- Date: Thu, 10 Nov 2011 14:26:34 +0000 (UTC)
commit f7ebf4f9de9a07fa0917ff7ad3ed4618d57c1dd7
Author: Bastien Nocera <hadess hadess net>
Date: Thu Nov 10 14:22:13 2011 +0000
common: Try to parse keycodes better
gdk_keyval_from_name() doesn't seem to work as it used to.
https://bugzilla.gnome.org/show_bug.cgi?id=642489
plugins/common/eggaccelerators.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plugins/common/eggaccelerators.c b/plugins/common/eggaccelerators.c
index 1122f33..c3950ac 100644
--- a/plugins/common/eggaccelerators.c
+++ b/plugins/common/eggaccelerators.c
@@ -347,7 +347,10 @@ egg_accelerator_parse_virtual (const gchar *accelerator,
}
else
{
- keyval = gdk_keyval_from_name (accelerator);
+ if (g_str_has_prefix (accelerator, "0x"))
+ keyval = 0;
+ else
+ keyval = gdk_keyval_from_name (accelerator);
if (keyval == GDK_KEY_VoidSymbol)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]