diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-08-12 05:48:10 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-08-12 05:48:10 +0000 |
commit | a55624e61426750cf33f0c1c49213caf85c3b704 (patch) | |
tree | 2bad0185684145040609ede87490a1f6ee2572bb | |
parent | 793ed5f674f642944b5c5f862e690f72999ca085 (diff) |
emit remove-msg signal after add-msg for speedup.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2209 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | libsylph/mh.c | 5 |
2 files changed, 8 insertions, 2 deletions
@@ -1,5 +1,10 @@ 2009-08-12 + * libsylph/mh.c: mh_do_move_msgs(): emit remove-msg signal after + add-msg for speedup. + +2009-08-12 + * src/import.c: removed 'eml (file)'. Update description label. 2009-08-11 diff --git a/libsylph/mh.c b/libsylph/mh.c index ae5475ac..11099f76 100644 --- a/libsylph/mh.c +++ b/libsylph/mh.c @@ -1,6 +1,6 @@ /* * LibSylph -- E-Mail client library - * Copyright (C) 1999-2007 Hiroyuki Yamamoto + * Copyright (C) 1999-2009 Hiroyuki Yamamoto * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -554,7 +554,7 @@ static gint mh_do_move_msgs(Folder *folder, FolderItem *dest, GSList *msglist) if (!destfile) break; srcfile = procmsg_get_message_file(msginfo); - g_signal_emit_by_name(syl_app_get(), "remove-msg", src, srcfile, msginfo->msgnum); + /* g_signal_emit_by_name(syl_app_get(), "remove-msg", src, srcfile, msginfo->msgnum); */ if (move_file(srcfile, destfile, FALSE) < 0) { g_free(srcfile); @@ -563,6 +563,7 @@ static gint mh_do_move_msgs(Folder *folder, FolderItem *dest, GSList *msglist) } g_signal_emit_by_name(syl_app_get(), "add-msg", dest, destfile, dest->last_num + 1); + g_signal_emit_by_name(syl_app_get(), "remove-msg", src, srcfile, msginfo->msgnum); g_free(srcfile); g_free(destfile); |