--- src/gnome2/editor_menu.c.orig Fri Apr 2 17:28:07 2004 +++ src/gnome2/editor_menu.c Mon Feb 14 15:08:42 2005 @@ -29,11 +29,11 @@ #include #include #include #include #include -#include +//#include #include #include #include #include #include @@ -491,17 +491,33 @@ target = strchr(url, '#'); url_copy = target ? g_strndup(url, target - url) : g_strdup(url); new_link = + html_text_new(text, + GTK_HTML_FONT_STYLE_DEFAULT, + html_colorset_get_color(e-> + settings-> + color_set, + HTMLLinkColor)); + new_link = + html_object_set_link(new_link, + html_colorset_get_color(e-> + settings-> + color_set, + HTMLLinkColor), + url_copy, target); +/* + new_link = html_link_text_new(text, GTK_HTML_FONT_STYLE_DEFAULT, html_colorset_get_color(e-> settings-> color_set, HTMLLinkColor), url_copy, target); +*/ html_engine_paste_object(e, new_link, g_utf8_strlen(text, -1)); g_free(url_copy); } }