diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2011-06-10 09:16:02 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2011-06-10 09:16:02 +0000 |
commit | 0a585bfc2bd775a576de8368a6d819cdfbd2173d (patch) | |
tree | 476a4914a75a5c2b4c9f48ddf446c670b4fdbd9e /src | |
parent | 5bef52f7bf1d934509370e88da0a6b820bc3e303 (diff) |
changed the spec of compose-send signal because the previous one prohibited sending if the signal is not used.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2894 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r-- | src/compose.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/compose.c b/src/compose.c index 32858e15..ee574610 100644 --- a/src/compose.c +++ b/src/compose.c @@ -3444,7 +3444,7 @@ static gint compose_send(Compose *compose) { gchar tmp[MAXPATHLEN + 1]; gint ok = 0; - gboolean ack = TRUE; + gboolean cancel = FALSE; if (compose->lock_count > 0) return 1; @@ -3495,8 +3495,8 @@ static gint compose_send(Compose *compose) } syl_plugin_signal_emit("compose-send", compose, compose->mode, 0, - tmp, compose->to_list, &ack); - if (ack == FALSE) { + tmp, compose->to_list, &cancel); + if (cancel) { g_unlink(tmp); compose_unlock(compose); return -1; @@ -7213,7 +7213,7 @@ static void compose_send_later_cb(gpointer data, guint action, Compose *compose = (Compose *)data; FolderItem *queue; gchar tmp[MAXPATHLEN + 1]; - gboolean ack = TRUE; + gboolean cancel = FALSE; if (compose_check_entries(compose) == FALSE) return; @@ -7253,8 +7253,8 @@ static void compose_send_later_cb(gpointer data, guint action, } syl_plugin_signal_emit("compose-send", compose, compose->mode, 1, - tmp, compose->to_list, &ack); - if (ack == FALSE) { + tmp, compose->to_list, &cancel); + if (cancel) { g_unlink(tmp); return; } |