commit 00f51a67e4f0843f57773295dcbf897e087bcc6a
parent 5f96d4892366a100e38c371017e298b93bf6877d
Author: Andrej Kacian <ticho@claws-mail.org>
Date: Fri, 22 Jul 2016 20:46:54 +0200
Remove last outside gtk_cmclist_freeze/thaw for summaryview&folderview ctrees.
More code maintenance to isolate summaryview and folderview
widgets' internals behind an API.
Diffstat:
2 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/src/news_gtk.c b/src/news_gtk.c
@@ -149,7 +149,6 @@ static FolderItem *news_find_child_item(FolderItem *item, const gchar *path)
static void subscribe_newsgroup_cb(GtkAction *action, gpointer data)
{
FolderView *folderview = (FolderView *)data;
- GtkCMCTree *ctree = GTK_CMCTREE(folderview->ctree);
Folder *folder;
FolderItem *item;
FolderItem *rootitem;
@@ -196,7 +195,7 @@ static void subscribe_newsgroup_cb(GtkAction *action, gpointer data)
gnode = next;
}
- gtk_cmclist_freeze(GTK_CMCLIST(ctree));
+ folderview_freeze(folderview);
/* add subscribed newsgroups */
for (cur = new_subscr; cur != NULL; cur = cur->next) {
@@ -216,7 +215,7 @@ static void subscribe_newsgroup_cb(GtkAction *action, gpointer data)
hooks_invoke(FOLDER_UPDATE_HOOKLIST, &hookdata);
}
- gtk_cmclist_thaw(GTK_CMCLIST(ctree));
+ folderview_thaw(folderview);
slist_free_strings_full(new_subscr);
diff --git a/src/plugins/att_remover/att_remover.c b/src/plugins/att_remover/att_remover.c
@@ -173,7 +173,7 @@ static void remove_attachments_cb(GtkWidget *widget, AttRemover *attremover)
}
main_window_cursor_wait(mainwin);
- gtk_cmclist_freeze(GTK_CMCLIST(summaryview->ctree));
+ summary_freeze(summaryview);
folder_item_update_freeze();
inc_lock();
@@ -242,7 +242,7 @@ static void remove_attachments_cb(GtkWidget *widget, AttRemover *attremover)
inc_unlock();
folder_item_update_thaw();
- gtk_cmclist_thaw(GTK_CMCLIST(summaryview->ctree));
+ summary_thaw(summaryview);
main_window_cursor_normal(mainwin);
if (msgnum > 0)
@@ -423,7 +423,7 @@ static void remove_attachments(GSList *msglist)
return;
main_window_cursor_wait(summaryview->mainwin);
- gtk_cmclist_freeze(GTK_CMCLIST(summaryview->ctree));
+ summary_freeze(summaryview);
folder_item_update_freeze();
inc_lock();
@@ -452,7 +452,7 @@ static void remove_attachments(GSList *msglist)
inc_unlock();
folder_item_update_thaw();
- gtk_cmclist_thaw(GTK_CMCLIST(summaryview->ctree));
+ summary_thaw(summaryview);
main_window_cursor_normal(summaryview->mainwin);
if (msgnum > 0) {