[go-nuts] Help creating a github.com/mattn/go-gtk/gtk.Image from image.Image?

2017-01-18 Thread James Ralphs
Hi, I'm trying to create an gtk.Image from a Go image.Image (or similar, image.RGBA would be fine too), and am stuck. It looks like I need to create a gdk.Pixbuf to feed to the GTK image widget, but I can't figure out how to use the gdk.Pixbuf, to create a useful picture. All the examples of

[go-nuts] Responsive boxes in go-gtk

2016-12-13 Thread James Ralphs
I'm writing a desktop application using the Go bindings for GTK at https://mattn.github.io/go-gtk/. I'm showing a set of widgets in a listing "view". I'd like to make it responsive - kind of like using the "float" property in CSS. So far I've looked at VBox, HBox, Table, and the Fixed Layout