2005-07-13 [paul] 1.9.12cvs44
authorPaul Mangan <paul@claws-mail.org>
Wed, 13 Jul 2005 07:56:26 +0000 (07:56 +0000)
committerPaul Mangan <paul@claws-mail.org>
Wed, 13 Jul 2005 07:56:26 +0000 (07:56 +0000)
* configure.ac
add large file support
* src/html.c
fix bug #763 where href attribute was not
the very first attribute of a link
patch by Thomas Gilgin

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

index 4351964..f1f31a8 100644 (file)
@@ -1,3 +1,12 @@
+2005-07-13 [paul]      1.9.12cvs44
+
+       * configure.ac
+               add large file support
+       * src/html.c
+               fix bug #763 where href attribute was not
+               the very first attribute of a link
+               patch by Thomas Gilgin
+
 2005-07-13 [colin]     1.9.12cvs43
 
        * src/gtk/pluginwindow.c
index 83f8185..e1c3f37 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.1.2.18 -r 1.1.2.19 src/plugins/pgpmime/pgpmime.c;  cvs diff -u -r 1.1.2.9 -r 1.1.2.10 src/plugins/pgpmime/sgpgme.c;  ) > 1.9.12cvs41.patchset
 ( cvs diff -u -r 1.1.2.10 -r 1.1.2.11 src/plugins/pgpmime/sgpgme.c;  ) > 1.9.12cvs42.patchset
 ( cvs diff -u -r 1.5.2.16 -r 1.5.2.17 src/gtk/pluginwindow.c;  ) > 1.9.12cvs43.patchset
+( cvs diff -u -r 1.654.2.678 -r 1.654.2.679 configure.ac;  cvs diff -u -r 1.12.2.7 -r 1.12.2.8 src/html.c;  ) > 1.9.12cvs44.patchset
index 0887322..ce0ec5d 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=12
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=43
+EXTRA_VERSION=44
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
@@ -237,6 +237,9 @@ AC_TYPE_PID_T
 AC_TYPE_SIZE_T
 AC_STRUCT_TM
 
+AC_SYS_LARGEFILE
+AC_FUNC_FSEEKO
+
 dnl AC_CHECK_TYPE(wint_t, unsigned int) does not work because wint_t
 dnl may be defined only in wchar.h (this happens with gcc-2.96).
 dnl So we need to use this extended macro.
index 0cdd01f..790697a 100644 (file)
@@ -419,12 +419,14 @@ static HTMLState html_parse_tag(HTMLParser *parser)
                html_append_char(parser, '\n');
                parser->state = HTML_BR;
        } else if (!strcmp(tag->name, "a")) {
-               if (tag->attr && tag->attr->data &&
-                   !strcmp(((HTMLAttr *)tag->attr->data)->name, "href")) {
-                       g_free(parser->href);
-                       parser->href =
-                               g_strdup(((HTMLAttr *)tag->attr->data)->value);
-                       parser->state = HTML_HREF_BEG;
+               GList *cur;
+               for (cur = tag->attr; cur != NULL; cur = cur->next) {
+                       if (cur->data && !strcmp(((HTMLAttr *)cur->data)->name, "href")) {
+                               g_free(parser->href);
+                               parser->href = g_strdup(((HTMLAttr *)cur->data)->value);
+                               parser->state = HTML_HREF_BEG;
+                               break;
+                       }
                }
        } else if (!strcmp(tag->name, "/a")) {
                parser->state = HTML_HREF;