diff options
| author | Pietro Gagliardi <[email protected]> | 2015-02-17 23:33:25 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-02-17 23:33:25 -0500 |
| commit | 366460a46e981ea402067f2b96fd15226417e3db (patch) | |
| tree | 40d75118ad1ecc611a743e680ca3804fc9078aa1 /image_unix.go | |
| parent | 2e4c2783012cb386b29b04237e2a198fbcfe5e4d (diff) | |
Finished migrating the GTK+ Table to not use ImageList.
Diffstat (limited to 'image_unix.go')
| -rw-r--r-- | image_unix.go | 5 |
1 files changed, 2 insertions, 3 deletions
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) |
