Replace a lot of idle and timeout calls by the new gdk_threads api.

2006-12-22  Matthias Clasen  <mclasen@redhat.com>

        * *.c: Replace a lot of idle and timeout calls by
        the new gdk_threads api.
This commit is contained in:
Matthias Clasen
2006-12-22 19:10:43 +00:00
committed by Matthias Clasen
parent 7854bd1b6e
commit 721c3bc101
70 changed files with 197 additions and 461 deletions

View File

@ -755,8 +755,6 @@ gtk_path_bar_scroll_timeout (GtkPathBar *path_bar)
{
gboolean retval = FALSE;
GDK_THREADS_ENTER ();
if (path_bar->timer)
{
if (path_bar->scrolling_up)
@ -773,7 +771,7 @@ gtk_path_bar_scroll_timeout (GtkPathBar *path_bar)
path_bar->need_timer = FALSE;
path_bar->timer = g_timeout_add (timeout * SCROLL_DELAY_FACTOR,
path_bar->timer = gdk_threads_add_timeout (timeout * SCROLL_DELAY_FACTOR,
(GSourceFunc)gtk_path_bar_scroll_timeout,
path_bar);
}
@ -781,8 +779,6 @@ gtk_path_bar_scroll_timeout (GtkPathBar *path_bar)
retval = TRUE;
}
GDK_THREADS_LEAVE ();
return retval;
}
@ -828,7 +824,7 @@ gtk_path_bar_slider_button_press (GtkWidget *widget,
g_object_get (settings, "gtk-timeout-initial", &timeout, NULL);
path_bar->need_timer = TRUE;
path_bar->timer = g_timeout_add (timeout,
path_bar->timer = gdk_threads_add_timeout (timeout,
(GSourceFunc)gtk_path_bar_scroll_timeout,
path_bar);
}