From eb2523bc1e83dfd9f5d0748b4d4f466d5197a406 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 28 Aug 2014 19:29:20 -0400 Subject: [PATCH] Resolved image list icon sizing on GTK+. --- redo/imagelist_unix.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/redo/imagelist_unix.go b/redo/imagelist_unix.go index 34947af..aeb7a13 100644 --- a/redo/imagelist_unix.go +++ b/redo/imagelist_unix.go @@ -21,7 +21,8 @@ func newImageList() ImageList { return new(imagelist) } -// this seems to be best (TODO see what other programs use) +// this is what GtkFileChooserWidget uses +// technically it uses max(width from that, height from that) if the call below fails and 16x16 otherwise, but we won't worry about that here (yet?) const scaleTo = C.GTK_ICON_SIZE_MENU func (i *imagelist) Append(img *image.RGBA) {