aboutsummaryrefslogtreecommitdiff
path: root/src/compose.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/compose.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/compose.c')
-rw-r--r--src/compose.c27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/compose.c b/src/compose.c
index 3cd7ab74..82e1ad8c 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -821,8 +821,9 @@ Compose *compose_new(PrefsAccount *account, FolderItem *item,
if (prefs_common.enable_autosave && prefs_common.autosave_itv > 0)
compose->autosave_tag =
- g_timeout_add(prefs_common.autosave_itv * 60 * 1000,
- autosave_timeout, compose);
+ g_timeout_add_full(G_PRIORITY_LOW,
+ prefs_common.autosave_itv * 60 * 1000,
+ autosave_timeout, compose, NULL);
if (prefs_common.auto_exteditor)
compose_exec_ext_editor(compose);
@@ -937,8 +938,9 @@ void compose_reply(MsgInfo *msginfo, FolderItem *item, ComposeMode mode,
if (prefs_common.enable_autosave && prefs_common.autosave_itv > 0)
compose->autosave_tag =
- g_timeout_add(prefs_common.autosave_itv * 60 * 1000,
- autosave_timeout, compose);
+ g_timeout_add_full(G_PRIORITY_LOW,
+ prefs_common.autosave_itv * 60 * 1000,
+ autosave_timeout, compose, NULL);
if (prefs_common.auto_exteditor)
compose_exec_ext_editor(compose);
}
@@ -1080,8 +1082,9 @@ void compose_forward(GSList *mlist, FolderItem *item, gboolean as_attach,
if (prefs_common.enable_autosave && prefs_common.autosave_itv > 0)
compose->autosave_tag =
- g_timeout_add(prefs_common.autosave_itv * 60 * 1000,
- autosave_timeout, compose);
+ g_timeout_add_full(G_PRIORITY_LOW,
+ prefs_common.autosave_itv * 60 * 1000,
+ autosave_timeout, compose, NULL);
if (prefs_common.auto_exteditor)
compose_exec_ext_editor(compose);
}
@@ -1259,8 +1262,9 @@ void compose_reedit(MsgInfo *msginfo)
if (prefs_common.enable_autosave && prefs_common.autosave_itv > 0)
compose->autosave_tag =
- g_timeout_add(prefs_common.autosave_itv * 60 * 1000,
- autosave_timeout, compose);
+ g_timeout_add_full(G_PRIORITY_LOW,
+ prefs_common.autosave_itv * 60 * 1000,
+ autosave_timeout, compose, NULL);
if (prefs_common.auto_exteditor)
compose_exec_ext_editor(compose);
}
@@ -6121,9 +6125,10 @@ void compose_reflect_prefs_all(void)
prefs_common.autosave_itv > 0 &&
compose->mode != COMPOSE_REDIRECT)
compose->autosave_tag =
- g_timeout_add
- (prefs_common.autosave_itv * 60 * 1000,
- autosave_timeout, compose);
+ g_timeout_add_full
+ (G_PRIORITY_LOW,
+ prefs_common.autosave_itv * 60 * 1000,
+ autosave_timeout, compose, NULL);
}
}