Mercurial > pidgin
diff src/gtkhtml.c @ 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 | 872d68495410 |
children | 0aca48e1baa7 |
line wrap: on
line diff
--- 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")) {