diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2003-02-05 23:48:11 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2003-02-05 23:48:11 +0000 |
commit | b414adc89751bdf24eb4d29c63395d7d3b767c6a (patch) | |
tree | 2bb46061805eef9dac10f2c0d36c7a583c71e430 /gtk/gtkspinbutton.c | |
parent | 5fbf845d5cf155e0034c8ad81ffdd70229442705 (diff) | |
download | gtk+-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/gtkspinbutton.c')
-rw-r--r-- | gtk/gtkspinbutton.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c index 8063511e5d..654f73f5ec 100644 --- a/gtk/gtkspinbutton.c +++ b/gtk/gtkspinbutton.c @@ -996,7 +996,7 @@ gtk_spin_button_stop_spinning (GtkSpinButton *spin) { if (spin->timer) { - gtk_timeout_remove (spin->timer); + g_source_remove (spin->timer); spin->timer = 0; spin->timer_calls = 0; spin->need_timer = FALSE; @@ -1022,8 +1022,9 @@ start_spinning (GtkSpinButton *spin, { spin->timer_step = step; spin->need_timer = TRUE; - spin->timer = gtk_timeout_add (SPIN_BUTTON_INITIAL_TIMER_DELAY, - (GtkFunction) gtk_spin_button_timer, (gpointer) spin); + spin->timer = g_timeout_add (SPIN_BUTTON_INITIAL_TIMER_DELAY, + (GtkFunction) gtk_spin_button_timer, + (gpointer) spin); } spin_button_redraw (spin); @@ -1175,9 +1176,9 @@ gtk_spin_button_timer (GtkSpinButton *spin_button) if (spin_button->need_timer) { spin_button->need_timer = FALSE; - spin_button->timer = gtk_timeout_add - (SPIN_BUTTON_TIMER_DELAY, (GtkFunction) gtk_spin_button_timer, - (gpointer) spin_button); + spin_button->timer = g_timeout_add (SPIN_BUTTON_TIMER_DELAY, + (GtkFunction) gtk_spin_button_timer, + (gpointer) spin_button); } else { |