comparison src/prefs.c @ 2856:b1e300a85678

[gaim-migrate @ 2869] rewrote the html parser in gtkimhtml. yes, that's really all i did. the reason for the massive change is because i added a length argument, which then needed to be propogated down to everything that would ever receive anything that would get drawn to the window. the new parser isn't any faster. that wasn't my goal. it's much more understandable now (hopefully, anyway). committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 08 Dec 2001 09:48:52 +0000
parents 87d11d2a7d59
children 538c58b43eff
comparison
equal deleted inserted replaced
2855:19f786779b08 2856:b1e300a85678
1736 gtk_imhtml_clear(GTK_IMHTML(away_text)); 1736 gtk_imhtml_clear(GTK_IMHTML(away_text));
1737 1737
1738 /* Fill the text box with new message */ 1738 /* Fill the text box with new message */
1739 strcpy(buffer, a->message); 1739 strcpy(buffer, a->message);
1740 tmp = stylize(buffer, BUF_LONG); 1740 tmp = stylize(buffer, BUF_LONG);
1741 gtk_imhtml_append_text(GTK_IMHTML(away_text), tmp, GTK_IMHTML_NO_TITLE | 1741 gtk_imhtml_append_text(GTK_IMHTML(away_text), tmp, -1, GTK_IMHTML_NO_TITLE |
1742 GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_SCROLL); 1742 GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_SCROLL);
1743 gtk_imhtml_append_text(GTK_IMHTML(away_text), "<BR>", GTK_IMHTML_NO_TITLE | 1743 gtk_imhtml_append_text(GTK_IMHTML(away_text), "<BR>", -1, GTK_IMHTML_NO_TITLE |
1744 GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_SCROLL); 1744 GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_SCROLL);
1745 g_free(tmp); 1745 g_free(tmp);
1746 } 1746 }
1747 1747
1748 void remove_away_message(GtkWidget *widget, void *dummy) 1748 void remove_away_message(GtkWidget *widget, void *dummy)
1986 char buffer[BUF_LONG]; 1986 char buffer[BUF_LONG];
1987 char *tmp; 1987 char *tmp;
1988 a = (struct away_message *)awy->data; 1988 a = (struct away_message *)awy->data;
1989 g_snprintf(buffer, sizeof(buffer), "%s", a->message); 1989 g_snprintf(buffer, sizeof(buffer), "%s", a->message);
1990 tmp = stylize(buffer, BUF_LONG); 1990 tmp = stylize(buffer, BUF_LONG);
1991 gtk_imhtml_append_text(GTK_IMHTML(away_text), tmp, GTK_IMHTML_NO_TITLE | 1991 gtk_imhtml_append_text(GTK_IMHTML(away_text), tmp, -1, GTK_IMHTML_NO_TITLE |
1992 GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_SCROLL); 1992 GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_SCROLL);
1993 gtk_imhtml_append_text(GTK_IMHTML(away_text), "<BR>", GTK_IMHTML_NO_TITLE | 1993 gtk_imhtml_append_text(GTK_IMHTML(away_text), "<BR>", -1, GTK_IMHTML_NO_TITLE |
1994 GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_SCROLL); 1994 GTK_IMHTML_NO_COMMENTS | GTK_IMHTML_NO_SCROLL);
1995 g_free(tmp); 1995 g_free(tmp);
1996 } 1996 }
1997 1997
1998 while (awy) { 1998 while (awy) {