[gnome-control-center/gnome-3-2] common: Fix parsing of keycodes (again)
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-2] common: Fix parsing of keycodes (again)
- Date: Thu, 10 Nov 2011 14:26:46 +0000 (UTC)
commit dde513438df748c8e3998872c34854f528e1255a
Author: Bastien Nocera <hadess hadess net>
Date: Thu Nov 10 14:25:02 2011 +0000
common: Fix parsing of keycodes (again)
0 != GDK_KEY_VoidSymbol
panels/common/eggaccelerators.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/common/eggaccelerators.c b/panels/common/eggaccelerators.c
index c3950ac..f16cbca 100644
--- a/panels/common/eggaccelerators.c
+++ b/panels/common/eggaccelerators.c
@@ -348,12 +348,13 @@ egg_accelerator_parse_virtual (const gchar *accelerator,
else
{
if (g_str_has_prefix (accelerator, "0x"))
- keyval = 0;
+ keyval = GDK_KEY_VoidSymbol;
else
keyval = gdk_keyval_from_name (accelerator);
if (keyval == GDK_KEY_VoidSymbol)
{
+ keyval = 0;
/* If keyval is 0, then maybe it's a keycode. Check for 0x## */
if (len >= 4 && is_keycode (accelerator))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]