diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-08-11 06:58:09 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2009-08-11 06:58:09 +0000 |
commit | 88da59dbb4090dbcd8721706d186d9be0d47573b (patch) | |
tree | e986cf2d23d5dc9959c805c885ab24d836c4dd59 /libsylph/mbox.c | |
parent | d74842968bf33f5de49413bacdaa6ff7ecce2966 (diff) |
show progress bar on export. modified menu label and function names.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2205 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/mbox.c')
-rw-r--r-- | libsylph/mbox.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libsylph/mbox.c b/libsylph/mbox.c index cbc461d1..7ecae25c 100644 --- a/libsylph/mbox.c +++ b/libsylph/mbox.c @@ -448,6 +448,7 @@ gint export_to_mbox(FolderItem *src, const gchar *mbox) FILE *mbox_fp; gchar buf[BUFFSIZE]; PrefsAccount *cur_ac; + gint count = 0, length; g_return_val_if_fail(src != NULL, -1); g_return_val_if_fail(src->folder != NULL, -1); @@ -464,10 +465,15 @@ gint export_to_mbox(FolderItem *src, const gchar *mbox) cur_ac = account_get_current_account(); mlist = folder_item_get_msg_list(src, TRUE); + length = g_slist_length(mlist); for (cur = mlist; cur != NULL; cur = cur->next) { msginfo = (MsgInfo *)cur->data; + count++; + if (src->folder->ui_func) + src->folder->ui_func(src->folder, src, src->folder->ui_func_data ? src->folder->ui_func_data : GINT_TO_POINTER(count)); + msg_fp = procmsg_open_message(msginfo); if (!msg_fp) { procmsg_msginfo_free(msginfo); |