summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorEric Le Bihan <eric.le.bihan.dev@free.fr>2014-10-23 13:00:54 +0200
committerMatthias Clasen <mclasen@redhat.com>2015-03-07 18:42:27 -0500
commit8ecc51ad8aa07ecad64d7732caa5fd78d9f43f4d (patch)
tree23922f891e4a4d26eb5ccd65b36e88a1ab0e6489 /gdk
parent4938aa9c6b7da48f9c313fc545191733cb8a7ec1 (diff)
downloadgtk+-8ecc51ad8aa07ecad64d7732caa5fd78d9f43f4d.tar.gz
Fix undefined reference to get_xkb()
When configuring Gtk+ with --disable-xkb, the build fails because of an undefined reference to get_xkb(). This patch fixes this issue. Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> https://bugzilla.gnome.org/show_bug.cgi?id=739070
Diffstat (limited to 'gdk')
-rw-r--r--gdk/x11/gdkkeys-x11.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/x11/gdkkeys-x11.c b/gdk/x11/gdkkeys-x11.c
index a83ec150b1..25df963f62 100644
--- a/gdk/x11/gdkkeys-x11.c
+++ b/gdk/x11/gdkkeys-x11.c
@@ -1499,8 +1499,10 @@ gdk_x11_keymap_map_virtual_modifiers (GdkKeymap *keymap,
int i, j;
gboolean retval;
+#ifdef HAVE_XKB
if (KEYMAP_USE_XKB (keymap))
get_xkb (keymap_x11);
+#endif
retval = TRUE;