[Commits] gtkutils.c 1.5.2.100 1.5.2.101

pawel at claws-mail.org pawel at claws-mail.org
Mon Oct 31 19:57:52 CET 2011


Update of /home/claws-mail/claws/src/gtk
In directory claws-mail:/tmp/cvs-serv30092/src/gtk

Modified Files:
      Tag: gtk2
	gtkutils.c 
Log Message:
2011-10-31 [pawel]	3.7.10cvs64

	* src/summaryview.c
	* src/gtk/gtkutils.c
		Fix bug #2303 'Next unread message enables message view'
		Don't show previously hidden message view in main window
		when user reads messages in external window

Index: gtkutils.c
===================================================================
RCS file: /home/claws-mail/claws/src/gtk/gtkutils.c,v
retrieving revision 1.5.2.100
retrieving revision 1.5.2.101
diff -u -d -r1.5.2.100 -r1.5.2.101
--- gtkutils.c	22 Oct 2011 17:09:04 -0000	1.5.2.100
+++ gtkutils.c	31 Oct 2011 18:57:50 -0000	1.5.2.101
@@ -532,6 +532,7 @@
 {
 	GtkTextBuffer *buffer;
 	GtkTextIter iter;
+	GtkTextMark *mark;
 
 	cm_return_if_fail(text != NULL);
 
@@ -539,7 +540,8 @@
 
 	gtk_text_buffer_get_iter_at_offset(buffer, &iter, pos);
 	gtk_text_buffer_place_cursor(buffer, &iter);
-	gtk_text_view_scroll_to_iter(text, &iter, 0.0, FALSE, 0.0, 0.0);
+	mark = gtk_text_buffer_create_mark(buffer, NULL, &iter, TRUE);
+	gtk_text_view_scroll_to_mark(text, mark, 0.0, FALSE, 0.0, 0.0);
 }
 
 gboolean gtkut_text_view_search_string(GtkTextView *text, const gchar *str,



More information about the Commits mailing list