[gtk+] Keep XF86 keysym names working
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Keep XF86 keysym names working
- Date: Sat, 20 Apr 2013 00:11:59 +0000 (UTC)
commit c4a17c88959c7f0e26c5737c0dfbbb94b47eaa22
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Apr 19 19:29:13 2013 -0400
Keep XF86 keysym names working
These names are unfortunately stored in gsettings around
the world, so we can't really stop supporting them.
gdk/gdkkeynames.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gdk/gdkkeynames.c b/gdk/gdkkeynames.c
index 3767e29..f8dfc1e 100644
--- a/gdk/gdkkeynames.c
+++ b/gdk/gdkkeynames.c
@@ -90,7 +90,10 @@ _gdk_keyval_from_name (const gchar *keyval_name)
gdk_key *found;
g_return_val_if_fail (keyval_name != NULL, 0);
-
+
+ if (strncmp (keyval_name,"XF86", 4) == 0)
+ keyval_name += 4;
+
found = bsearch (keyval_name, gdk_keys_by_name,
GDK_NUM_KEYS, sizeof (gdk_key),
gdk_keys_name_compare);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]