[Commits] [SCM] claws branch, vfolder, updated. 3.10.1-186-g4098177
miras at claws-mail.org
miras at claws-mail.org
Mon Aug 18 23:52:40 CEST 2014
The branch, vfolder has been updated
via 4098177c5be536c9c8d116ef3b56246fb6da6830 (commit)
via a2c09af1056cc1be34fd31edb31dd431fc7d0db0 (commit)
via 9166dc63e4d2f3f4d62293b48706cfa9b9a0afc1 (commit)
via fa8fd46c1f9945fd21ab78e5eaeaf89fa6e9df15 (commit)
via 06165d299c68c18a4f332a062c77f18277ee47ed (commit)
via 2abdcb244e83a991a60435fead2dd1b87b26631c (commit)
from 565181dd0384e5dca7bf329761e6f636adf34dbd (commit)
Summary of changes:
src/etpan/imap-thread.c | 9 ++--
src/etpan/nntp-thread.c | 3 +-
src/plugins/python/accounttype.c | 12 ++++++
src/plugins/python/accounttype.h | 2 +
src/plugins/python/composewindowtype.c | 35 +++++++++++++++-
src/plugins/python/messageinfotype.c | 71 ++++++++++++++++++++++++++++----
src/plugins/rssyl/rssyl_cb_menu.c | 5 ++-
src/plugins/vfolder/vfolder.c | 11 +++++
src/plugins/vfolder/vfolder.h | 1 +
src/plugins/vfolder/vfolder_prop.c | 4 +-
10 files changed, 135 insertions(+), 18 deletions(-)
- Log -----------------------------------------------------------------
commit 4098177c5be536c9c8d116ef3b56246fb6da6830
Author: Michael Rasmussen <mir at datanom.net>
Date: Mon Aug 18 23:52:34 2014 +0200
Freeze summaryview and folderview when deleting all messages from a folder. Greately improves performance. Thanks go to Mones
diff --git a/src/plugins/vfolder/vfolder.c b/src/plugins/vfolder/vfolder.c
index e8bb1c8..2dbbf0b 100644
--- a/src/plugins/vfolder/vfolder.c
+++ b/src/plugins/vfolder/vfolder.c
@@ -44,6 +44,7 @@
#include "statusbar.h"
#include "mainwindow.h"
#include "folderview.h"
+#include "summaryview.h"
#include "vfolder.h"
#include "vfolder_gtk.h"
@@ -1135,3 +1136,13 @@ gchar* vfolder_compute_unique_id(VFolderItem* vitem) {
return key;
}
+
+void vfolder_folder_item_remove_all_msg(VFolderItem* vitem) {
+ MainWindow* main_window = mainwindow_get_mainwindow();
+
+ folder_item_update_freeze();
+ summary_freeze(main_window->summaryview);
+ folder_item_remove_all_msg(FOLDER_ITEM(vitem));
+ summary_thaw(main_window->summaryview);
+ folder_item_update_thaw();
+}
diff --git a/src/plugins/vfolder/vfolder.h b/src/plugins/vfolder/vfolder.h
index 5b9cf26..7bcb128 100644
--- a/src/plugins/vfolder/vfolder.h
+++ b/src/plugins/vfolder/vfolder.h
@@ -106,6 +106,7 @@ void vfolder_scan_source_folder_all();
VFolderItem* vfolder_folder_item_watch(FolderItem* item);
void vfolder_source_path_change(VFolderItem* vitem, FolderItem* newItem);
void vfolder_source_folder_remove(VFolderItem* vitem);
+void vfolder_folder_item_remove_all_msg(VFolderItem* vitem);
G_END_DECLS
diff --git a/src/plugins/vfolder/vfolder_prop.c b/src/plugins/vfolder/vfolder_prop.c
index 4692a35..ce55da8 100644
--- a/src/plugins/vfolder/vfolder_prop.c
+++ b/src/plugins/vfolder/vfolder_prop.c
@@ -604,7 +604,7 @@ gboolean vfolder_edit_item_dialog(VFolderItem** vitem_ptr, FolderItem* item) {
}
if (vitem->source) {
vitem->source = NULL;
- folder_item_remove_all_msg(FOLDER_ITEM(vitem));
+ vfolder_folder_item_remove_all_msg(vitem);
ok = TRUE;
}
} else {
@@ -631,7 +631,7 @@ gboolean vfolder_edit_item_dialog(VFolderItem** vitem_ptr, FolderItem* item) {
}
vitem->source_id = folder_item_get_identifier(vitem->source);
if (FOLDER_ITEM(vitem)->total_msgs > 0)
- folder_item_remove_all_msg(FOLDER_ITEM(vitem));
+ vfolder_folder_item_remove_all_msg(vitem);
if (! vitem->msg_filter_func)
vfolder_set_msgs_filter(vitem);
ok = TRUE;
commit a2c09af1056cc1be34fd31edb31dd431fc7d0db0
Merge: 565181d 9166dc6
Author: Michael Rasmussen <mir at datanom.net>
Date: Mon Aug 18 23:20:51 2014 +0200
Merge branch 'master' into vfolder
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list