mattn
mattn
As log message is, you shouldn't call window.Realize(). go-gtk implement structure of gtk. So window inherit widget. But realize is a method of widget not window.
You MUST NOT call any gtk API from another thread without lock. please find this answer from internet resource ex stackoverflow. Sorry, I don't have enough time to teach you...
FYI, as same as the reason I mentioned at https://github.com/mattn/go-gtk/issues/327#issuecomment-304549318, you must not window.Destroy. Just call gtk.MainQuit.
As I mentioned in above, you MUST NOT call any APIs without lock. see https://github.com/mattn/go-gtk/blob/master/example/thread/thread.go#L42-L50
Please try to use MainIterationDo. https://github.com/mattn/go-gtk/blob/f1b522380f46233d2124399c1c7521400e2e9905/example/twitterstream/twitterstream.go#L244-L248
You've better to use dialog instead window
Probably, you may want to window which will close after showing for a while. Right? ```go package main import ( "fmt" "time" "github.com/mattn/go-gtk/glib" "github.com/mattn/go-gtk/gtk" ) func showPopup() bool { dialog...
> I checked a python implementation and it doesn't require to call Unref. Maybe it's indeed best to set finalizer Unref for all objects? Yes, currently you must call `runtime.SetFinalizer`...
GdkPixbuf is inherit GObject. So you can call pb.Ref() or pb.Unref().
No, if installed gtkgl package, you can get something flags for that with `pkg-config --cflags --libs gtkgl-2.0`