diff 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
line wrap: on
line diff
--- a/src/multi.c	Fri Mar 29 04:13:57 2002 +0000
+++ b/src/multi.c	Fri Mar 29 13:28:55 2002 +0000
@@ -1074,27 +1074,8 @@
 	GdkPixmap *gdkpixmap;
 	GdkBitmap *mask;
 	GtkWidget *pixmap;
-	GtkStyle *style;
-	char **xpm = NULL; 
-	
-	style = gtk_widget_get_style( widget );
-	
-	if (gc->prpl->list_icon)
-		if (gc->prpl->protocol ==  PROTO_OSCAR) { 
-			/* This is such a bad hack to get the right icon
-			 * for OSCAR.  But it's pretty */
-			if (isdigit(*gc->username)) {
-				xpm = gc->prpl->list_icon(0);
-			} else {
-				xpm = gc->prpl->list_icon(0x10);
-			}
-		} else { 
-			xpm = gc->prpl->list_icon (0);
-		}
-	if (xpm == NULL)
-		xpm = (char **)no_icon_xpm;
-	
-	gdkpixmap = gdk_pixmap_create_from_xpm_d(widget->window, &mask, &style->bg[GTK_STATE_NORMAL], xpm);
+
+	create_prpl_icon (widget, gc, &gdkpixmap, &mask);
 			
 	pixmap = gtk_pixmap_new (gdkpixmap, mask);
 	gdk_pixmap_unref (gdkpixmap);