summaryrefslogtreecommitdiff
path: root/gtk/gtklist.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2003-02-05 23:48:11 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2003-02-05 23:48:11 +0000
commitb414adc89751bdf24eb4d29c63395d7d3b767c6a (patch)
tree2bb46061805eef9dac10f2c0d36c7a583c71e430 /gtk/gtklist.c
parent5fbf845d5cf155e0034c8ad81ffdd70229442705 (diff)
downloadgtk+-b414adc89751bdf24eb4d29c63395d7d3b767c6a.tar.gz
Replace uses of gtk_timeout_* and gtk_idle_* by their non-deprecated
GLib counterparts. Fully deprecate gtk_timeout_* and gtk_idle_*.
Diffstat (limited to 'gtk/gtklist.c')
-rw-r--r--gtk/gtklist.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/gtklist.c b/gtk/gtklist.c
index a234e3f397..1ec1471dc8 100644
--- a/gtk/gtklist.c
+++ b/gtk/gtklist.c
@@ -552,7 +552,7 @@ gtk_list_motion_notify (GtkWidget *widget,
{
if (list->htimer == 0)
{
- list->htimer = gtk_timeout_add
+ list->htimer = g_timeout_add
(SCROLL_TIME, (GtkFunction) gtk_list_horizontal_timeout, widget);
if (!((x < adj->value && adj->value <= 0) ||
@@ -600,9 +600,9 @@ gtk_list_motion_notify (GtkWidget *widget,
if (!((y < 0 && focus_row == 0) ||
(y > widget->allocation.height && focus_row >= length - 1)))
- list->vtimer = gtk_timeout_add (SCROLL_TIME,
- (GtkFunction) gtk_list_vertical_timeout,
- list);
+ list->vtimer = g_timeout_add (SCROLL_TIME,
+ (GtkFunction) gtk_list_vertical_timeout,
+ list);
if (row != focus_row)
gtk_widget_grab_focus (item);
@@ -1591,12 +1591,12 @@ gtk_list_end_drag_selection (GtkList *list)
if (list->htimer)
{
- gtk_timeout_remove (list->htimer);
+ g_source_remove (list->htimer);
list->htimer = 0;
}
if (list->vtimer)
{
- gtk_timeout_remove (list->vtimer);
+ g_source_remove (list->vtimer);
list->vtimer = 0;
}
}