fix messageview remembering old position
authorColin Leroy <colin@colino.net>
Mon, 19 Jul 2004 14:06:57 +0000 (14:06 +0000)
committerColin Leroy <colin@colino.net>
Mon, 19 Jul 2004 14:06:57 +0000 (14:06 +0000)
ChangeLog-gtk2.claws
PATCHSETS
configure.ac
src/messageview.c
src/textview.c

index fd15a221c12620c5c52872a1d5a1451b354790f4..3f3ff6467204a3f04e13813393e19870a76d4db7 100644 (file)
@@ -1,3 +1,11 @@
+2004-07-19 [colin]     0.9.12cvs33.2
+
+       * src/messageview.c
+       * src/textview.c
+               Fix messageview remembering the previous
+               scroll position when loading a new message
+               Patch by Alfons
+
 2004-07-19 [colin]     0.9.12cvs33.1
 
        * src/folder.h
index 6337671ae02c2ffb53cdbebd576e367569269616..eeec79fd31769b8fff485231a9ab2fe5fb0889ef 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
@@ -55,3 +55,4 @@
 ( cvs diff -u -r 1.204.2.15 -r 1.204.2.16 src/prefs_common.c; ) > 0.9.12cvs32.5.patchset
 ( cvs diff -u -r 1.395.2.21 -r 1.395.2.22 src/summaryview.c; ) > 0.9.12cvs32.6.patchset
 ( cvs diff -u -r 1.87.2.8 -r 1.87.2.9 src/folder.h; cvs diff -u -r 1.207.2.9 -r 1.207.2.10 src/folderview.c; cvs diff -u -r 1.395.2.22 -r 1.395.2.23 src/summaryview.c; ) > 0.9.12cvs33.1.patchset
+( cvs diff -u -r 1.94.2.21 -r 1.94.2.22 src/messageview.c; cvs diff -u -r 1.96.2.13 -r 1.96.2.14 src/textview.c; ) > 0.9.12cvs33.2.patchset
index b0af0d1cae5ac304b66dc2e0545909d5b65e1658..80e0d4ab2cc10fa3c8e9bfd31aa51a3739d54bfe 100644 (file)
@@ -13,7 +13,7 @@ INTERFACE_AGE=0
 BINARY_AGE=0
 EXTRA_VERSION=33
 EXTRA_RELEASE=
-EXTRA_GTK2_VERSION=.1
+EXTRA_GTK2_VERSION=.2
 
 if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}${EXTRA_RELEASE}${EXTRA_GTK2_VERSION}
index b27acc9cf357b12311638924fba38d418f583a14..3f611d7db329f4e0071d752d19c423ade3d7ade9 100644 (file)
@@ -725,6 +725,7 @@ gint messageview_show(MessageView *messageview, MsgInfo *msginfo,
        textview_set_all_headers(messageview->mimeview->textview, all_headers);
 
        mimeview_show_message(messageview->mimeview, mimeinfo, file);
+       messageview_set_position(messageview, 0);
 
        if (messageview->msginfo->partial_recv)
                partial_recv_show(messageview->noticeview, 
index 4cc9552cb05275bfd17f8f170a52a211472b7fc5..b7e2477fef8c92f69cb915ef0bb1220bf51dccd2 100644 (file)
@@ -1352,6 +1352,7 @@ void textview_set_position(TextView *textview, gint pos)
 
        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);
 }
 
 static GPtrArray *textview_scan_header(TextView *textview, FILE *fp)