--- ../gnome-panel/gnome-panel/menu.c 2005-01-19 16:16:53.000000000 -0800 +++ gnome-panel/menu.c 2005-01-21 17:34:10.347497816 -0800 @@ -416,8 +416,16 @@ (gdk_pixbuf_get_width (pb) != size || gdk_pixbuf_get_height (pb) != size)) { GdkPixbuf *pb2; - pb2 = gdk_pixbuf_scale_simple (pb, size, size, - GDK_INTERP_BILINEAR); + int width = gdk_pixbuf_get_width (pb), + height = gdk_pixbuf_get_height (pb); + + pb2 = gdk_pixbuf_new (GDK_COLORSPACE_RGB, TRUE, 8, size, size); + if (pb2 == NULL) + return NULL; + gdk_pixbuf_fill (pb2, 0); + gdk_pixbuf_copy_area (pb, 0, 0, width, height, pb2, + (size - width) / 2, + (size - height) / 2); g_object_unref (G_OBJECT (pb)); pb = pb2; }