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/gtkclist.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/gtkclist.c')
-rw-r--r-- | gtk/gtkclist.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c index 22129cd3b7..652c2e9ff9 100644 --- a/gtk/gtkclist.c +++ b/gtk/gtkclist.c @@ -5264,7 +5264,7 @@ gtk_clist_motion (GtkWidget *widget, if (clist->htimer) return FALSE; - clist->htimer = g_timeout_add + clist->htimer = gdk_threads_add_timeout (SCROLL_TIME, (GSourceFunc) horizontal_timeout, clist); if (!((x < 0 && clist->hadjustment->value == 0) || @@ -5296,7 +5296,7 @@ gtk_clist_motion (GtkWidget *widget, if (clist->vtimer) return FALSE; - clist->vtimer = g_timeout_add (SCROLL_TIME, + clist->vtimer = gdk_threads_add_timeout (SCROLL_TIME, (GSourceFunc) vertical_timeout, clist); if (clist->drag_button && @@ -7039,26 +7039,18 @@ do_fake_motion (GtkWidget *widget) static gint horizontal_timeout (GtkCList *clist) { - GDK_THREADS_ENTER (); - clist->htimer = 0; do_fake_motion (GTK_WIDGET (clist)); - GDK_THREADS_LEAVE (); - return FALSE; } static gint vertical_timeout (GtkCList *clist) { - GDK_THREADS_ENTER (); - clist->vtimer = 0; do_fake_motion (GTK_WIDGET (clist)); - GDK_THREADS_LEAVE (); - return FALSE; } |