Resolved image list icon sizing on GTK+.

This commit is contained in:
Pietro Gagliardi 2014-08-28 19:29:20 -04:00
parent d18889b2d1
commit eb2523bc1e
1 changed files with 2 additions and 1 deletions

View File

@ -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) {