[gtk+] wayland: Return NULL as the keyval name for 0
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] wayland: Return NULL as the keyval name for 0
- Date: Sat, 6 Apr 2013 14:56:05 +0000 (UTC)
commit 720ca63c5d06bdbe1f58ef3256bda22dab79cc87
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Apr 6 10:35:26 2013 -0400
wayland: Return NULL as the keyval name for 0
This is what the X11 backend does, and it makes the "NoSymbol"
disappear from menuitems that don't have an accelerator.
gdk/wayland/gdkdisplaymanager-wayland.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/wayland/gdkdisplaymanager-wayland.c b/gdk/wayland/gdkdisplaymanager-wayland.c
index 68e69d8..5d4e12b 100644
--- a/gdk/wayland/gdkdisplaymanager-wayland.c
+++ b/gdk/wayland/gdkdisplaymanager-wayland.c
@@ -181,6 +181,8 @@ gdk_wayland_display_manager_get_keyval_name (GdkDisplayManager *manager,
switch (keyval)
{
+ case 0:
+ return NULL;
case GDK_KEY_Page_Up:
return "Page_Up";
case GDK_KEY_Page_Down:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]