summaryrefslogtreecommitdiff
path: root/gtk/gtkcalendar.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2003-06-05 00:38:37 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2003-06-05 00:38:37 +0000
commit1fd7856d8f5173c72ac2644c6faed6aed421740f (patch)
tree484626ddba95ad0fb37ab95882550e59b663a4ed /gtk/gtkcalendar.c
parentf114b14ac330458b7e4a8c35b1b28e50765a498f (diff)
downloadgdk-pixbuf-1fd7856d8f5173c72ac2644c6faed6aed421740f.tar.gz
Replace deprecated gtk_timeout_* functions by their GLib counterparts.
* gtk/gtkcalendar.c (calendar_timer): (stop_spinning): Replace deprecated gtk_timeout_* functions by their GLib counterparts. (#114429)
Diffstat (limited to 'gtk/gtkcalendar.c')
-rw-r--r--gtk/gtkcalendar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c
index b79627a2a..0823651bd 100644
--- a/gtk/gtkcalendar.c
+++ b/gtk/gtkcalendar.c
@@ -2472,9 +2472,9 @@ calendar_timer (GtkCalendar *calendar)
if (private_data->need_timer)
{
private_data->need_timer = FALSE;
- private_data->timer = gtk_timeout_add (CALENDAR_TIMER_DELAY,
- (GtkFunction) calendar_timer,
- (gpointer) calendar);
+ private_data->timer = g_timeout_add (CALENDAR_TIMER_DELAY,
+ (GtkFunction) calendar_timer,
+ (gpointer) calendar);
}
else
retval = TRUE;
@@ -2511,7 +2511,7 @@ stop_spinning (GtkWidget *widget)
if (private_data->timer)
{
- gtk_timeout_remove (private_data->timer);
+ g_source_remove (private_data->timer);
private_data->timer = 0;
private_data->need_timer = FALSE;
}