From: Graham Gower Date: Thu, 23 Sep 2010 20:56:32 +0000 (+0000) Subject: gtk+_2.20.1.bb: Fix build with --disable-xkb. X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9730a28e669931fee601756e949bb210999b4b81;p=openembedded.git gtk+_2.20.1.bb: Fix build with --disable-xkb. See https://bugzilla.gnome.org/show_bug.cgi?id=619114 Signed-off-by: Graham Gower Signed-off-by: Khem Raj --- diff --git a/recipes/gtk+/files/xkb-ifdef.patch b/recipes/gtk+/files/xkb-ifdef.patch new file mode 100644 index 0000000000..b74d9c9639 --- /dev/null +++ b/recipes/gtk+/files/xkb-ifdef.patch @@ -0,0 +1,24 @@ +commit eff1fe2500f07fa2b4683ff52fe92e39e6487b05 +Author: Matthias Clasen +Date: Fri May 21 12:13:05 2010 -0400 + + Make the !xkb build survive a little longer + + This fixes bug 619114. + +diff --git a/gdk/x11/gdkdisplay-x11.c b/gdk/x11/gdkdisplay-x11.c +index c0cbc99..6cded79 100644 +--- a/gdk/x11/gdkdisplay-x11.c ++++ b/gdk/x11/gdkdisplay-x11.c +@@ -690,7 +690,11 @@ gdk_display_beep (GdkDisplay *display) + { + g_return_if_fail (GDK_IS_DISPLAY (display)); + ++#ifdef HAVE_XKB + XkbBell (GDK_DISPLAY_XDISPLAY (display), None, 0, None); ++#else ++ XBell (GDK_DISPLAY_XDISPLAY (display), 0); ++#endif + } + + /** diff --git a/recipes/gtk+/gtk+_2.20.1.bb b/recipes/gtk+/gtk+_2.20.1.bb index ca5e1974a6..f9367b7794 100644 --- a/recipes/gtk+/gtk+_2.20.1.bb +++ b/recipes/gtk+/gtk+_2.20.1.bb @@ -4,6 +4,7 @@ SRC_URI_append_virtclass-native = " file://no-demos.patch \ " SRC_URI_append = "file://gtk-dnd-grab-deadlock-fix.patch \ file://cross-nm.patch \ + file://xkb-ifdef.patch \ " SRC_URI[gtk.md5sum] = "53e6f3a93bd22934878fc4a4a34c68aa"