[gnome-control-center] keyboard: Try to parse keycodes better
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] keyboard: Try to parse keycodes better
- Date: Thu, 27 Oct 2011 15:41:58 +0000 (UTC)
commit b70c5d64fe5ddecfe2a9089e5a9d08073f0fee83
Author: Bastien Nocera <hadess hadess net>
Date: Wed Feb 16 18:36:53 2011 +0000
keyboard: 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
panels/common/eggaccelerators.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/panels/common/eggaccelerators.c b/panels/common/eggaccelerators.c
index 71f2433..a27c286 100644
--- a/panels/common/eggaccelerators.c
+++ b/panels/common/eggaccelerators.c
@@ -345,7 +345,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 == 0)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]