summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-28 19:29:20 -0400
committerPietro Gagliardi <[email protected]>2014-08-28 19:29:20 -0400
commiteb2523bc1e83dfd9f5d0748b4d4f466d5197a406 (patch)
tree862cc31286c9398b0ae3892de0b0ed33fb1c6494
parentd18889b2d17d4e79e412c9263f28b24580b28a89 (diff)
Resolved image list icon sizing on GTK+.
-rw-r--r--redo/imagelist_unix.go3
1 files changed, 2 insertions, 1 deletions
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) {