英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论