2004-11-11 [colin] 0.9.12cvs144.2
authorColin Leroy <colin@colino.net>
Thu, 11 Nov 2004 21:20:04 +0000 (21:20 +0000)
committerColin Leroy <colin@colino.net>
Thu, 11 Nov 2004 21:20:04 +0000 (21:20 +0000)
* src/textview.c
Fix URI range selection (patch by Alfons)

ChangeLog-gtk2.claws
PATCHSETS
configure.ac
src/textview.c

index cd210733513e45d570a5b9f437ed3e17a8f8e7fe..40cabc32c7b8e6991d0e3087fa7f2920e8309b3c 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-11 [colin]     0.9.12cvs144.2
+
+       * src/textview.c
+               Fix URI range selection (patch by Alfons)
+
 2004-11-09 [colin]     0.9.12cvs144.1
 
        * ChangeLog.claws
index 143b4bd6a11608292ee41eab7b0ea19469db80af..f348358cf7ff9842017db6e9f14711d6a42926d3 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.382.2.60 -r 1.382.2.61 src/compose.c; ) > 0.9.12cvs142.2.patchset
 ( cvs diff -u -r 1.395.2.37 -r 1.395.2.38 src/summaryview.c; ) > 0.9.12cvs143.1.patchset
 ( cvs diff -u -r 1.2504.2.30 -r 1.2504.2.31 ChangeLog.claws; cvs diff -u -r 1.382.2.61 -r 1.382.2.62 src/compose.c; cvs diff -u -r 1.213.2.19 -r 1.213.2.20 src/folder.c; cvs diff -u -r 1.2.2.3 -r 1.2.2.4 src/folder_item_prefs.c; cvs diff -u -r 1.105.2.10 -r 1.105.2.11 src/prefs_account.c; cvs diff -u -r 1.49.2.5 -r 1.49.2.6 src/prefs_account.h; cvs diff -u -r 1.1.2.8 -r 1.1.2.9 src/plugins/pgpmime/pgpmime.c; ) > 0.9.12cvs144.1.patchset
+( cvs diff -u -r 1.96.2.30 -r 1.96.2.31 src/textview.c; ) > 0.9.12cvs144.2.patchset
index 73e6fb85dcf43709c05204f2002d0e57ea85df6e..ccdd310801b5e26ec4e3a004cb37b6ee9c8b9a44 100644 (file)
@@ -13,7 +13,7 @@ INTERFACE_AGE=0
 BINARY_AGE=0
 EXTRA_VERSION=144
 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 aaa9c7eb0b4d8345e3c06c2b275f1fd7351f930e..8e412670775a3c7311f88e38cccbff4378a0042a 100644 (file)
@@ -2000,18 +2000,18 @@ static gboolean textview_get_uri_range(TextView *textview,
 {
        GtkTextIter _start_iter, _end_iter;
 
-       _start_iter = *iter;
-       if(!gtk_text_iter_backward_to_tag_toggle(&_start_iter, tag)) {
-               debug_print("Can't find start.");
-               return FALSE;
-       }
-
        _end_iter = *iter;
        if(!gtk_text_iter_forward_to_tag_toggle(&_end_iter, tag)) {
                debug_print("Can't find end");
                return FALSE;
        }
 
+       _start_iter = _end_iter;
+       if(!gtk_text_iter_backward_to_tag_toggle(&_start_iter, tag)) {
+               debug_print("Can't find start.");
+               return FALSE;
+       }
+
        *start_iter = _start_iter;
        *end_iter = _end_iter;