diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-12-22 19:10:43 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-12-22 19:10:43 +0000 |
commit | 721c3bc10182cacf1a98baddde3c94e59797ddb7 (patch) | |
tree | 78b2e3ae3c00133a58f09653aff664e4ab0305e9 /gtk/gtkpathbar.c | |
parent | 7854bd1b6e6102aff426bf6a48606c4a9b12b7c2 (diff) | |
download | gtk+-721c3bc10182cacf1a98baddde3c94e59797ddb7.tar.gz |
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.
Diffstat (limited to 'gtk/gtkpathbar.c')
-rw-r--r-- | gtk/gtkpathbar.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk/gtkpathbar.c b/gtk/gtkpathbar.c index c695ba5b04..8be9848f9d 100644 --- a/gtk/gtkpathbar.c +++ b/gtk/gtkpathbar.c @@ -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); } |