comparison src/multi.c @ 3111:319a66fc131f

[gaim-migrate @ 3125] Now you can tell of which protocol you're editing buddies on. Thanks Christian Hammond. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 29 Mar 2002 13:28:55 +0000
parents c0928d7fdcf9
children 332df87cf3d6
comparison
equal deleted inserted replaced
3110:13e5dc68efbc 3111:319a66fc131f
1072 GtkWidget* create_meter_pixmap (GtkWidget *widget, struct gaim_connection *gc) 1072 GtkWidget* create_meter_pixmap (GtkWidget *widget, struct gaim_connection *gc)
1073 { 1073 {
1074 GdkPixmap *gdkpixmap; 1074 GdkPixmap *gdkpixmap;
1075 GdkBitmap *mask; 1075 GdkBitmap *mask;
1076 GtkWidget *pixmap; 1076 GtkWidget *pixmap;
1077 GtkStyle *style; 1077
1078 char **xpm = NULL; 1078 create_prpl_icon (widget, gc, &gdkpixmap, &mask);
1079
1080 style = gtk_widget_get_style( widget );
1081
1082 if (gc->prpl->list_icon)
1083 if (gc->prpl->protocol == PROTO_OSCAR) {
1084 /* This is such a bad hack to get the right icon
1085 * for OSCAR. But it's pretty */
1086 if (isdigit(*gc->username)) {
1087 xpm = gc->prpl->list_icon(0);
1088 } else {
1089 xpm = gc->prpl->list_icon(0x10);
1090 }
1091 } else {
1092 xpm = gc->prpl->list_icon (0);
1093 }
1094 if (xpm == NULL)
1095 xpm = (char **)no_icon_xpm;
1096
1097 gdkpixmap = gdk_pixmap_create_from_xpm_d(widget->window, &mask, &style->bg[GTK_STATE_NORMAL], xpm);
1098 1079
1099 pixmap = gtk_pixmap_new (gdkpixmap, mask); 1080 pixmap = gtk_pixmap_new (gdkpixmap, mask);
1100 gdk_pixmap_unref (gdkpixmap); 1081 gdk_pixmap_unref (gdkpixmap);
1101 gdk_bitmap_unref (mask); 1082 gdk_bitmap_unref (mask);
1102 return pixmap; 1083 return pixmap;