--- ../gnome-panel/gnome-panel/menu.c 2005-01-19 16:16:53.000000000 -0800 +++ gnome-panel/menu.c 2005-01-21 17:43:26.961879568 -0800 @@ -416,10 +416,18 @@ (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); - g_object_unref (G_OBJECT (pb)); - pb = pb2; + 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){ + 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; + } } if (loaded) {