Mercurial > pidgin.yaz
changeset 549:39853e359a06
[gaim-migrate @ 559]
Added the legend back to the user info.
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Fri, 28 Jul 2000 20:55:59 +0000 |
parents | 0f73dbdcd71f |
children | 6bd2bbc1b6c8 |
files | ChangeLog TODO src/gtkhtml.c |
diffstat | 3 files changed, 29 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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)
--- 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
--- 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")) {