[oe-commits] Graham Gower : gtk+_2.20.1.bb: Fix build with --disable-xkb.

git version control git at git.openembedded.org
Thu Sep 30 20:18:47 UTC 2010


Module: openembedded.git
Branch: master
Commit: 9730a28e669931fee601756e949bb210999b4b81
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=9730a28e669931fee601756e949bb210999b4b81

Author: Graham Gower <graham.gower at gmail.com>
Date:   Thu Sep 23 20:56:32 2010 +0000

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 <graham.gower at gmail.com>
Signed-off-by: Khem Raj <raj.khem at gmail.com>

---

 recipes/gtk+/files/xkb-ifdef.patch |   24 ++++++++++++++++++++++++
 recipes/gtk+/gtk+_2.20.1.bb        |    1 +
 2 files changed, 25 insertions(+), 0 deletions(-)

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 <mclasen at redhat.com>
+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"





More information about the Openembedded-commits mailing list