recognise urls that just begin with 'www'
authorPaul Mangan <paul@claws-mail.org>
Fri, 1 Mar 2002 17:16:42 +0000 (17:16 +0000)
committerPaul Mangan <paul@claws-mail.org>
Fri, 1 Mar 2002 17:16:42 +0000 (17:16 +0000)
ChangeLog.claws
configure.in
src/gtkutils.c
src/textview.c

index 660ea65e053ca1226028b4609938e57f1d134c36..613cf64d0acf991664220069aa5ba320b5887282 100644 (file)
@@ -1,3 +1,13 @@
+2002-03-01 [paul]      0.7.2claws22
+
+       * src/gtkutils.c
+         src/textview.c
+               recognise urls that that don't include 'http://' and
+               simply begin 'www.' 
+
+       * AUTHORS
+               remove duplicated name
+
 2002-02-28 [paul]      0.7.2claws21
 
        * src/mainwindow.c
index d7439f82521d0a92e750ee664fcfc27409bbdef8..8c52f9d8505601ba894dcdddc18cca5e77b86f0f 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=7
 MICRO_VERSION=2
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws21
+EXTRA_VERSION=claws22
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 7230a6fe06d19ca1909c24f2f0aa33380e64cca3..f2125788c150d734457c3aba5aab1fd213611cc2 100644 (file)
@@ -379,7 +379,8 @@ gboolean gtkut_stext_is_uri_string(GtkSText *text,
 {
        if (gtkut_stext_str_compare(text, start_pos, text_len, "http://") ||
            gtkut_stext_str_compare(text, start_pos, text_len, "ftp://")  ||
-           gtkut_stext_str_compare(text, start_pos, text_len, "https://"))
+           gtkut_stext_str_compare(text, start_pos, text_len, "https://")||
+           gtkut_stext_str_compare(text, start_pos, text_len, "www."))
                return TRUE;
 
        return FALSE;
index 9b03331ee78dd157a13a9542901a0bf8d38d2967..3c6e9dd50ee51659101d482ab2ac44123fbb1da8 100644 (file)
@@ -758,6 +758,7 @@ static void textview_make_clickable_parts(TextView *textview,
        static struct table parser[] = {
                {"http://",  strcasestr, get_uri_part,   make_uri_string},
                {"https://", strcasestr, get_uri_part,   make_uri_string},
+               {"www.",     strcasestr, get_uri_part,   make_uri_string},
                {"ftp://",   strcasestr, get_uri_part,   make_uri_string},
                {"mailto:",  strcasestr, get_uri_part,   make_uri_string},
                {"@",        strcasestr, get_email_part, make_email_string}