summaryrefslogtreecommitdiff
path: root/gtk/gtkspinbutton.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/gtkspinbutton.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/gtkspinbutton.c')
-rw-r--r--gtk/gtkspinbutton.c13
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
{