使用GTK-Parasite与Go-GTK有什么想法吗?

huangapple go评论86阅读模式
英文:

Any idea how to use GTK-Parasite with Go-GTK?

问题

我在开发C GTK或Vala GTK应用程序时经常使用parasite。使用方法非常简单(至少对于Vala和C而言):

$ GTK_MODULES=gtkparasite app-binary

但是我找不到一种方法来在Go-GTK绑定中使用它。有什么想法吗?

英文:

I always use parasite when developing C GTK or Vala GTK apps. Usage is really straight forward (at least with Vala and C):

$ GTK_MODULES=gtkparasite app-binary

But I couldn't find a way to work it out with Go-GTK bindings. Any ideas?

答案1

得分: 3

好的,以下是翻译好的内容:

好的,使用https://github.com/mattn/go-gtk包没有成功,但是使用https://github.com/conformal/gotk3却按预期工作:

$ go get -tags gtk_3_10 github.com/conformal/gotk3/gtk

所以我的建议是,如果你想使用Parasite,目前最好切换到https://github.com/conformal/gotk3,并跳过其他的Go GTK绑定包。

英文:

Ok, it didn't worked with https://github.com/mattn/go-gtk package, but turns out it worked as expected with https://github.com/conformal/gotk3:

$ go get -tags gtk_3_10 github.com/conformal/gotk3/gtk

So my advice is, for now, to switch to https://github.com/conformal/gotk3 and skip the others GTK biding packages for Go if you want to use Parasite.

huangapple
  • 本文由 发表于 2014年12月3日 14:52:26
  • 转载请务必保留本文链接:https://go.coder-hub.com/27265405.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定