CVS: sylpheed-claws/src summaryview.c,1.395.2.195,1.395.2.196

Paul Mangan <[email protected]>
Newsgroups gmane.mail.sylpheed.claws.cvs
Message-ID <[email protected]>
Update of /cvsroot/sylpheed-claws/sylpheed-claws/src
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31287/src

Modified Files:
      Tag: gtk2
	summaryview.c 
Log Message:
2006-05-12 [paul]	2.2.0cvs6

	* src/summaryview.c
		always obey 'confirm before marking all
		mails read' option 

Index: summaryview.c
===================================================================
RCS file: /cvsroot/sylpheed-claws/sylpheed-claws/src/summaryview.c,v
retrieving revision 1.395.2.195
retrieving revision 1.395.2.196
diff -u -r1.395.2.195 -r1.395.2.196
--- summaryview.c	12 May 2006 17:42:48 -0000	1.395.2.195
+++ summaryview.c	12 May 2006 18:10:00 -0000	1.395.2.196
@@ -3150,7 +3150,21 @@
 {
 	GtkCTree *ctree = GTK_CTREE(summaryview->ctree);
 	GtkCTreeNode *node;
+	AlertValue val;
 
+	if (prefs_common.ask_mark_all_read) {
+		val = alertpanel_full(_("Mark all as read"),
+			_("Do you really want to mark all mails in this "
+			  "folder as read ?"), GTK_STOCK_NO, GTK_STOCK_YES, NULL,
+			  TRUE, NULL, ALERT_QUESTION, G_ALERTALTERNATE);
+
+		if (val == G_ALERTDEFAULT ||
+		    val == (G_ALERTDEFAULT|G_ALERTDISABLE))
+			return;
+		else if (val == (G_ALERTALTERNATE|G_ALERTDISABLE))
+			prefs_common.ask_mark_all_read = FALSE;
+	}
+	
 	START_LONG_OPERATION(summaryview);
 	folder_item_set_batch(summaryview->folder_item, TRUE);
 	for (node = GTK_CTREE_NODE(GTK_CLIST(ctree)->row_list); node != NULL;



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.