diff options
author | Matthias Clasen <mclasen@redhat.com> | 2017-12-14 23:57:54 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-12-14 23:57:54 -0500 |
commit | fd85ff0c7a8798703ccb6d7bce17cfee21a5479e (patch) | |
tree | ec62cfa222485f55c0dfee5c77f8ec568e787448 /gdk/gdkkeyuni.c | |
parent | 9194ee4973de9f3ff2a68d7135bf79d8c0e56ca3 (diff) | |
download | gtk+-fd85ff0c7a8798703ccb6d7bce17cfee21a5479e.tar.gz |
Drop gdk_keymap_get_default()
It is better to use the explicit keymap getter - the
default display may not even use the current gdk backend.
Diffstat (limited to 'gdk/gdkkeyuni.c')
-rw-r--r-- | gdk/gdkkeyuni.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/gdkkeyuni.c b/gdk/gdkkeyuni.c index 4bf77b22d8..d5dce13fd0 100644 --- a/gdk/gdkkeyuni.c +++ b/gdk/gdkkeyuni.c @@ -907,7 +907,7 @@ gdk_keyval_to_unicode (guint keyval) if (GDK_IS_WIN32_DISPLAY (gdk_display_get_default ()) && keyval == 0xffae) { - GdkWin32Keymap *keymap = GDK_WIN32_KEYMAP (gdk_keymap_get_default ()); + GdkWin32Keymap *keymap = GDK_WIN32_KEYMAP (gdk_keymap_get_for_display (gdk_display_get_default ())); return (guint32) _gdk_win32_keymap_get_decimal_mark (keymap); } |