[Commits] [SCM] claws branch, master, updated. 3.13.2-196-g00f51a6

ticho at claws-mail.org ticho at claws-mail.org
Fri Jul 22 20:51:07 CEST 2016


The branch, master has been updated
       via  00f51a67e4f0843f57773295dcbf897e087bcc6a (commit)
      from  5f96d4892366a100e38c371017e298b93bf6877d (commit)

Summary of changes:
 src/news_gtk.c                        |    5 ++---
 src/plugins/att_remover/att_remover.c |    8 ++++----
 2 files changed, 6 insertions(+), 7 deletions(-)


- Log -----------------------------------------------------------------
commit 00f51a67e4f0843f57773295dcbf897e087bcc6a
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Fri Jul 22 20:46:54 2016 +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.

diff --git a/src/news_gtk.c b/src/news_gtk.c
index b5d3fe1..e49c2b8 100644
--- 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
index c1cec12..a76f2a8 100644
--- 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) {

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list