# HG changeset patch # User Rob Flynn # Date 964817759 0 # Node ID 39853e359a06be6cd96be26a9e9b2984a38e68fb # Parent 0f73dbdcd71f38840652573fb01a1c0ebf582727 [gaim-migrate @ 559] Added the legend back to the user info. committer: Tailor Script diff -r 0f73dbdcd71f -r 39853e359a06 ChangeLog --- a/ChangeLog Fri Jul 28 20:14:31 2000 +0000 +++ b/ChangeLog Fri Jul 28 20:55:59 2000 +0000 @@ -4,7 +4,7 @@ * New Smiley Faces and Pixmaps added. * Smiley faces now properly wrap in the conversation windows. * Fixed 0-byte file segfault. - + version 0.9.20 (07/14/2000): * More plugin events, more plugin features * French (fr), Spanish (es), Simplified Chinese (zh_CN), Korean (kr) diff -r 0f73dbdcd71f -r 39853e359a06 TODO --- a/TODO Fri Jul 28 20:14:31 2000 +0000 +++ b/TODO Fri Jul 28 20:55:59 2000 +0000 @@ -3,9 +3,5 @@ Add "Group Add" button Third sound option for people without soundcards who still want sound events. Make a PC Speaker Beep (^G / Char 7) - I guess we'll stick those legend icons back in the info - window. I forget why we took them out now. I think - it was because we were going to add minimal IMG tag - support to gtkhtml and never did. Save Buddy Pounces (how did I forget this) Save Buddy Chats diff -r 0f73dbdcd71f -r 39853e359a06 src/gtkhtml.c --- a/src/gtkhtml.c Fri Jul 28 20:14:31 2000 +0000 +++ b/src/gtkhtml.c Fri Jul 28 20:55:59 2000 +0000 @@ -39,6 +39,10 @@ #include "gaim.h" #include "gtkhtml.h" +#include "pixmaps/aol_icon.xpm" +#include "pixmaps/admin_icon.xpm" +#include "pixmaps/free_icon.xpm" +#include "pixmaps/dt_icon.xpm" #define MAX_SIZE 7 #define MIN_HTML_WIDTH_LINES 20 #define MIN_HTML_HEIGHT_LINES 10 @@ -3220,7 +3224,30 @@ title = 0; else if (!strncasecmp(tag, "IMG", 3)) { - + GdkPixmap *legend_i; + GdkBitmap *legend_m; + + if (strstr(tag, "SRC=\"aol_icon.gif\"") != NULL) + { + legend_i = gdk_pixmap_create_from_xpm_d(GTK_WIDGET(html)->window, &legend_m, NULL, aol_icon_xpm); + gtk_html_add_pixmap(html, legend_i, 0, 0); + } + + if (strstr(tag, "SRC=\"admin_icon.gif\"") != NULL) + { + legend_i = gdk_pixmap_create_from_xpm_d(GTK_WIDGET(html)->window, &legend_m, NULL, admin_icon_xpm); + gtk_html_add_pixmap(html, legend_i, 0, 0); + } + if (strstr(tag, "SRC=\"dt_icon.gif\"") != NULL) + { + legend_i = gdk_pixmap_create_from_xpm_d(GTK_WIDGET(html)->window, &legend_m, NULL, dt_icon_xpm); + gtk_html_add_pixmap(html, legend_i, 0, 0); + } + if (strstr(tag, "SRC=\"free_icon.gif\"") != NULL) + { + legend_i = gdk_pixmap_create_from_xpm_d(GTK_WIDGET(html)->window, &legend_m, NULL, free_icon_xpm); + gtk_html_add_pixmap(html, legend_i, 0, 0); + } } else if (!strcasecmp(tag, "H3")) {