From 366460a46e981ea402067f2b96fd15226417e3db Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 17 Feb 2015 23:33:25 -0500 Subject: Finished migrating the GTK+ Table to not use ImageList. --- image_unix.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'image_unix.go') diff --git a/image_unix.go b/image_unix.go index 3f13d2a..4c66375 100644 --- a/image_unix.go +++ b/image_unix.go @@ -40,10 +40,9 @@ func toIconSizedGdkPixbuf(img *image.RGBA) *C.GdkPixbuf { panic(fmt.Errorf("gtk_icon_size_lookup() failed in ImageList.Append() (no reason available)")) } if int(width) == img.Rect.Dx() && int(height) == img.Rect.Dy() { - // just add the base pixbuf; we're good - i.list = append(i.list, basepixbuf) + // just return the base pixbuf; we're good C.cairo_surface_destroy(surface) - return + return basepixbuf } // else scale pixbuf := C.gdk_pixbuf_scale_simple(basepixbuf, C.int(width), C.int(height), C.GDK_INTERP_NEAREST) -- cgit v1.2.3