pidgin/gtklog.c

changeset 15500
86b86eab98a4
parent 15497
92f02f4bd5ee
child 15562
8c8249fe5e3c
--- a/pidgin/gtklog.c	Sat Jan 27 17:46:52 2007 +0000
+++ b/pidgin/gtklog.c	Sun Jan 28 01:24:15 2007 +0000
@@ -365,18 +365,15 @@
 
 	/* Icon *************/
 	if (pixbuf != NULL) {
-		GdkPixbuf *scale;
 		GtkWidget *icon;
 
 		title_box = gtk_hbox_new(FALSE, GAIM_HIG_BOX_SPACE);
 		gtk_container_set_border_width(GTK_CONTAINER(title_box), GAIM_HIG_BOX_SPACE);
 		gtk_box_pack_start(GTK_BOX(GTK_DIALOG(lv->window)->vbox), title_box, FALSE, FALSE, 0);
 
-		scale = gdk_pixbuf_scale_simple(pixbuf, 16, 16, GDK_INTERP_BILINEAR);
-		icon = gtk_image_new_from_pixbuf(scale);
+		icon = gtk_image_new_from_pixbuf(pixbuf);
 		gtk_box_pack_start(GTK_BOX(title_box), icon, FALSE, FALSE, 0);
 		g_object_unref(G_OBJECT(pixbuf));
-		g_object_unref(G_OBJECT(scale));
 	} else
 		title_box = GTK_DIALOG(lv->window)->vbox;
 
@@ -503,7 +500,8 @@
 	}
 
 	display_log_viewer(ht, gaim_log_get_logs(type, screenname, account),
-			title, gaim_gtk_create_prpl_icon(account, 0.5), gaim_log_get_total_size(type, screenname, account));
+			title, gaim_gtk_create_prpl_icon(account, PIDGIN_PRPL_ICON_MEDIUM), 
+			gaim_log_get_total_size(type, screenname, account));
 	g_free(title);
 }
 

mercurial