]> Pileus Git - ~andy/gtk/blobdiff - tests/testtext.c
Replace a lot of idle and timeout calls by the new gdk_threads api.
[~andy/gtk] / tests / testtext.c
index 5ad9304bcac6f79acfc6274432b28394a595d168..b1f6f532a037f47d616b972c5b6639329b6f740b 100644 (file)
@@ -2460,7 +2460,7 @@ buffer_set_colors (Buffer  *buffer,
   gdouble hue = 0.0;
 
   if (enabled && buffer->color_cycle_timeout == 0)
-    buffer->color_cycle_timeout = g_timeout_add (200, color_cycle_timeout, buffer);
+    buffer->color_cycle_timeout = gdk_threads_add_timeout (200, color_cycle_timeout, buffer);
   else if (!enabled && buffer->color_cycle_timeout != 0)
     {
       g_source_remove (buffer->color_cycle_timeout);