aboutsummaryrefslogtreecommitdiff
path: root/src/inc.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-12-21 09:12:27 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-12-21 09:12:27 +0000
commit1f15209ddcf907f57eec2a168418a0a70727150a (patch)
tree9437b4b7d5ae28515eb2262fafa47c37be8da049 /src/inc.c
parentee1788593bb8f61ce3e189e4942211e6d659bd47 (diff)
changed deprecated gtk_timeout_add() to g_timeout_add(_full)(). Use G_PRIORITY_LOW for long timeout interval.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2764 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/inc.c')
-rw-r--r--src/inc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/inc.c b/src/inc.c
index 759b6868..b62e2676 100644
--- a/src/inc.c
+++ b/src/inc.c
@@ -1629,8 +1629,9 @@ static void inc_autocheck_timer_set_interval(guint interval)
inc_autocheck_timer_remove();
if (prefs_common.autochk_newmail && autocheck_data) {
- autocheck_timer = gtk_timeout_add
- (interval, inc_autocheck_func, autocheck_data);
+ autocheck_timer = g_timeout_add_full
+ (G_PRIORITY_LOW, interval, inc_autocheck_func,
+ autocheck_data, NULL);
debug_print("added timer = %d\n", autocheck_timer);
}
}
@@ -1644,7 +1645,7 @@ void inc_autocheck_timer_remove(void)
{
if (autocheck_timer) {
debug_print("removed timer = %d\n", autocheck_timer);
- gtk_timeout_remove(autocheck_timer);
+ g_source_remove(autocheck_timer);
autocheck_timer = 0;
}
}