[gtk+/gtk-2-22] Make the !xkb build survive a little longer



commit a184432bafe4ede98b4d445364f9a0c850e2cb7f
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri May 21 12:13:05 2010 -0400

    Make the !xkb build survive a little longer
    
    This fixes bug 619114.
    (cherry picked from commit eff1fe2500f07fa2b4683ff52fe92e39e6487b05)

 gdk/x11/gdkdisplay-x11.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
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
 }
 
 /**



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]