# HG changeset patch # User Mark Doliner # Date 1138489873 0 # Node ID 1ef760c651749d8d66a24242708202459b403a6f # Parent 6332531e14a744fe2d7bba75cc8a64c3ade62c47 [gaim-migrate @ 15424] Make icons for popular status show up smaller when using the small list committer: Tailor Script diff -r 6332531e14a7 -r 1ef760c65174 src/gtkstatusbox.c --- a/src/gtkstatusbox.c Sat Jan 28 22:47:28 2006 +0000 +++ b/src/gtkstatusbox.c Sat Jan 28 23:11:13 2006 +0000 @@ -479,7 +479,8 @@ { GList *list, *cur; GtkIconSize icon_size; - GdkPixbuf *pixbuf, *emblem, *scale; + GdkPixbuf *pixbuf, *emblem; + int width, height; list = gaim_savedstatuses_get_popular(6); if (list == NULL) @@ -494,18 +495,15 @@ /* Create the icon to use for non-transient saved-statuses */ pixbuf = gtk_widget_render_icon(GTK_WIDGET(statusbox->vbox), GAIM_STOCK_STATUS_ONLINE, icon_size, "GtkGaimStatusBox"); - scale = gdk_pixbuf_scale_simple(pixbuf, 32, 32, GDK_INTERP_BILINEAR); - g_object_unref(G_OBJECT(pixbuf)); - pixbuf = scale; emblem = gtk_widget_render_icon(GTK_WIDGET(statusbox->vbox), GTK_STOCK_SAVE, icon_size, "GtkGaimStatusBox"); - scale = gdk_pixbuf_scale_simple(emblem, 15, 15, GDK_INTERP_BILINEAR); - g_object_unref(G_OBJECT(emblem)); - emblem = scale; + width = gdk_pixbuf_get_width(pixbuf) / 2; + height = gdk_pixbuf_get_height(pixbuf) / 2; - gdk_pixbuf_composite(emblem, pixbuf, 32-15, 32-15, 15, 15, 17, 17, 1, 1, - GDK_INTERP_BILINEAR, 255); + gdk_pixbuf_composite(emblem, pixbuf, width, height, + width, height, width, height, + 0.5, 0.5, GDK_INTERP_BILINEAR, 255); g_object_unref(G_OBJECT(emblem)); gtk_gaim_status_box_add_separator(statusbox);