? docs/tools/.deps
? docs/tools/.libs
? gdk/x11/.gdkwindow-x11.c.swp
? gdk/x11/.gdkwindow-x11.h.swp
? gtk/patch
? gtk/theme-bits/.deps
? gtk/theme-bits/.libs
? gtk/xdgmime/.deps
? gtk/xdgmime/.libs
? gtk/xdgmime/libxdgmime.la
? gtk/xdgmime/xdgmime.lo
? gtk/xdgmime/xdgmimealias.lo
? gtk/xdgmime/xdgmimecache.lo
? gtk/xdgmime/xdgmimeglob.lo
? gtk/xdgmime/xdgmimeint.lo
? gtk/xdgmime/xdgmimemagic.lo
? gtk/xdgmime/xdgmimeparent.lo
? modules/engines/ms-windows/.deps
? modules/printbackends/cups/.deps
? modules/printbackends/file/.deps
? modules/printbackends/file/.libs
? modules/printbackends/lpr/.deps
? modules/printbackends/lpr/.libs
? modules/printbackends/lpr/gtkprintbackendlpr.lo
? modules/printbackends/lpr/libprintbackend-lpr.la
? perf/.deps
? perf/.libs
? tests/testrichtext
Index: gdk/gdkwindow.h
===================================================================
RCS file: /cvs/gnome/gtk+/gdk/gdkwindow.h,v
retrieving revision 1.59
diff -U5 -r1.59 gdkwindow.h
--- gdk/gdkwindow.h	25 Apr 2006 14:27:28 -0000	1.59
+++ gdk/gdkwindow.h	29 Aug 2006 18:54:41 -0000
@@ -550,10 +550,11 @@
 					  GdkWMFunction	   functions);
 #ifndef GDK_MULTIHEAD_SAFE
 GList *       gdk_window_get_toplevels   (void);
 #endif
 
+void          gdk_window_beep            (GdkWindow       *window);
 void          gdk_window_iconify         (GdkWindow       *window);
 void          gdk_window_deiconify       (GdkWindow       *window);
 void          gdk_window_stick           (GdkWindow       *window);
 void          gdk_window_unstick         (GdkWindow       *window);
 void          gdk_window_maximize        (GdkWindow       *window);
Index: gdk/directfb/gdkwindow-directfb.c
===================================================================
RCS file: /cvs/gnome/gtk+/gdk/directfb/gdkwindow-directfb.c,v
retrieving revision 1.9
diff -U5 -r1.9 gdkwindow-directfb.c
--- gdk/directfb/gdkwindow-directfb.c	11 Aug 2006 05:44:46 -0000	1.9
+++ gdk/directfb/gdkwindow-directfb.c	29 Aug 2006 18:54:42 -0000
@@ -2988,8 +2988,14 @@
 
   iface->invalidate_maybe_recurse = gdk_window_impl_directfb_invalidate_maybe_recurse;
   iface->process_updates = gdk_window_impl_directfb_process_updates;
 }
 
+void
+gdk_window_beep (GdkWindow *window)
+{
+  gdk_beep ()
+}
+
 #define __GDK_WINDOW_X11_C__
 #include "gdkaliasdef.c"
 
Index: gdk/linux-fb/gdkwindow-fb.c
===================================================================
RCS file: /cvs/gnome/gtk+/gdk/linux-fb/gdkwindow-fb.c,v
retrieving revision 1.63
diff -U5 -r1.63 gdkwindow-fb.c
--- gdk/linux-fb/gdkwindow-fb.c	15 Aug 2005 12:35:03 -0000	1.63
+++ gdk/linux-fb/gdkwindow-fb.c	29 Aug 2006 18:54:42 -0000
@@ -2373,5 +2373,11 @@
 
 void
 gdk_window_configure_finished (GdkWindow *window)
 {
 }
+
+void
+gdk_window_beep (GdkWindow *window)
+{
+  gdk_beep ();
+}
Index: gdk/quartz/gdkwindow-quartz.c
===================================================================
RCS file: /cvs/gnome/gtk+/gdk/quartz/gdkwindow-quartz.c,v
retrieving revision 1.24
diff -U5 -r1.24 gdkwindow-quartz.c
--- gdk/quartz/gdkwindow-quartz.c	15 Aug 2006 20:13:13 -0000	1.24
+++ gdk/quartz/gdkwindow-quartz.c	29 Aug 2006 18:54:43 -0000
@@ -1991,5 +1991,11 @@
 {
   /* FIXME: Implement. We should call this from -[GdkQuartzWindow dealloc] or
    * -[GdkQuartzView dealloc], although I suspect that currently they leak
    * anyway. */
 }
+
+void 
+gdk_window_beep (GdkWindow *window)
+{
+  gdk_beep ();
+}
Index: gdk/win32/gdkwindow-win32.c
===================================================================
RCS file: /cvs/gnome/gtk+/gdk/win32/gdkwindow-win32.c,v
retrieving revision 1.153
diff -U5 -r1.153 gdkwindow-win32.c
--- gdk/win32/gdkwindow-win32.c	20 Feb 2006 10:08:37 -0000	1.153
+++ gdk/win32/gdkwindow-win32.c	29 Aug 2006 18:54:43 -0000
@@ -3398,5 +3398,11 @@
 void
 gdk_window_configure_finished (GdkWindow *window)
 {
   g_return_if_fail (GDK_IS_WINDOW (window));
 }
+
+void
+gdk_window_beep (GdkWindow *window)
+{
+  gdk_beep ();
+}
Index: gdk/x11/gdkwindow-x11.c
===================================================================
RCS file: /cvs/gnome/gtk+/gdk/x11/gdkwindow-x11.c,v
retrieving revision 1.267
diff -U5 -r1.267 gdkwindow-x11.c
--- gdk/x11/gdkwindow-x11.c	23 Aug 2006 00:25:10 -0000	1.267
+++ gdk/x11/gdkwindow-x11.c	29 Aug 2006 18:54:45 -0000
@@ -27,10 +27,15 @@
 #include <config.h>
 
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
 #include <X11/Xatom.h>
+
+#ifdef HAVE_XKB
+#include <X11/XKBlib.h>
+#endif
+
 #include <netinet/in.h>
 #include <unistd.h>
 
 #include "gdk.h"
 
@@ -6306,10 +6311,33 @@
 			   toplevel->current_counter_value);
 	  
 	  XSyncIntToValue (&toplevel->current_counter_value, 0);
 	}
     }
+#endif
+}
+
+/**
+ * gdk_window_beep:
+ * @window: a toplevel #GdkWindow
+ *
+ * Emits a short beep associated to @window in the appropriate
+ * display, if supported. Otherwise, emits a short beep on
+ * the display just as gdk_display_beep().
+ *
+ * Since: 2.12
+ **/
+void
+gdk_window_beep (GdkWindow *window)
+{
+#ifdef HAVE_XKB
+  XkbBell (GDK_WINDOW_XDISPLAY (window),
+           GDK_WINDOW_XID (window),
+           0,
+           None);
+#else
+  gdk_display_beep (GDK_WINDOW_DISPLAY (window));
 #endif
 }
 
 #define __GDK_WINDOW_X11_C__
 #include "gdkaliasdef.c"
