diff options
author | Matthias Clasen <mclasen@redhat.com> | 2013-04-06 10:35:26 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-04-06 10:48:56 -0400 |
commit | 720ca63c5d06bdbe1f58ef3256bda22dab79cc87 (patch) | |
tree | ac1efa43642341f8e1e926699d431076a76a8c6b | |
parent | 94fe6cf870410263a831565582d53365d5192ab5 (diff) | |
download | gtk+-720ca63c5d06bdbe1f58ef3256bda22dab79cc87.tar.gz |
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.
-rw-r--r-- | 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 68e69d8e41..5d4e12beab 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: |