See https://bugzilla.gnome.org/show_bug.cgi?id=619114

Signed-off-by: Graham Gower <[email protected]>
---
 recipes/gtk+/files/xkb-ifdef.patch |   24 ++++++++++++++++++++++++
 recipes/gtk+/gtk+_2.20.1.bb        |    1 +
 2 files changed, 25 insertions(+), 0 deletions(-)
 create mode 100644 recipes/gtk+/files/xkb-ifdef.patch

diff --git a/recipes/gtk+/files/xkb-ifdef.patch 
b/recipes/gtk+/files/xkb-ifdef.patch
new file mode 100644
index 0000000..b74d9c9
--- /dev/null
+++ b/recipes/gtk+/files/xkb-ifdef.patch
@@ -0,0 +1,24 @@
+commit eff1fe2500f07fa2b4683ff52fe92e39e6487b05
+Author: Matthias Clasen <[email protected]>
+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 ca5e197..f9367b7 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"
-- 
1.7.1


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Reply via email to