]> Pileus Git - ~andy/gtk/blobdiff - gdk/directfb/gdkwindow-directfb.c
Replace a lot of idle and timeout calls by the new gdk_threads api.
[~andy/gtk] / gdk / directfb / gdkwindow-directfb.c
index edbc3901a2cfaf0c175af6b6d7601ce6f169d43f..0a683de033157b9e5a684354a5e509ae82905ee6 100644 (file)
@@ -100,9 +100,7 @@ gdk_window_directfb_process_all_updates (void)
 static gboolean
 gdk_window_update_idle (gpointer data)
 {
-  GDK_THREADS_ENTER ();
   gdk_window_directfb_process_all_updates ();
-  GDK_THREADS_LEAVE ();
   
   return FALSE;
 }
@@ -115,7 +113,7 @@ gdk_window_schedule_update (GdkWindow *window)
 
   if (!update_idle)
     {
-      update_idle = g_idle_add_full (GDK_PRIORITY_REDRAW,
+      update_idle = gdk_threads_add_idle (GDK_PRIORITY_REDRAW,
                                     gdk_window_update_idle, NULL, NULL);
     }
 }
@@ -2990,6 +2988,12 @@ gdk_window_impl_directfb_paintable_init (GdkPaintableIface *iface)
   iface->process_updates = gdk_window_impl_directfb_process_updates;
 }
 
+void
+gdk_window_beep (GdkWindow *window)
+{
+  gdk_display_beep (gdk_display_get_default());
+}
+
 #define __GDK_WINDOW_X11_C__
 #include "gdkaliasdef.c"