diff options
author | Bastien Nocera <hadess@hadess.net> | 2013-10-30 02:04:54 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-10-30 03:22:35 +0800 |
commit | bc0d5d40ed39c92dcdf62ae891a2e99c25237d74 (patch) | |
tree | a07763eeaa20602bd4c0620b2fe67c443c52d29c /calendar/gui/gnome-cal.c | |
parent | d3e0f96c73dde49acde92f6347b9e362d85e94aa (diff) | |
download | gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.gz gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.bz2 gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.lz gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.xz gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.tar.zst gsoc2013-evolution-bc0d5d40ed39c92dcdf62ae891a2e99c25237d74.zip |
Bug 710797 - Name all the timeouts added with g_timeout_add()
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r-- | calendar/gui/gnome-cal.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index a686dc26bd..591153023c 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -1470,12 +1470,14 @@ update_task_and_memo_views (GnomeCalendar *gcal) } static gboolean -update_marcus_bains_line_cb (GnomeCalendar *gcal) +update_marcus_bains_line_cb (gpointer user_data) { + GnomeCalendar *gcal; GnomeCalendarViewType view_type; ECalendarView *view; time_t now, day_begin; + gcal = GNOME_CALENDAR (user_data); view_type = gnome_calendar_get_view (gcal); view = gnome_calendar_get_calendar_view (gcal, view_type); @@ -1518,9 +1520,10 @@ setup_widgets (GnomeCalendar *gcal) #endif /* The Marcus Bains line */ - priv->update_marcus_bains_line_timeout = g_timeout_add_full ( - G_PRIORITY_LOW, 60000, (GSourceFunc) - update_marcus_bains_line_cb, gcal, NULL); + priv->update_marcus_bains_line_timeout = + e_named_timeout_add_seconds_full ( + G_PRIORITY_LOW, 60, + update_marcus_bains_line_cb, gcal, NULL); /* update_memo_view (gcal); */ } |