问题描述
您好,我正在使用gtk3和glade 3.14 ...我想添加一个自定义小部件,以便我可以轻松地将其添加到我的用户界面。
我发现旋钮小部件在林间空地中失踪,我在
找到了旋钮小部件
我下载并安装了测试小部件,但它不会被添加到Glade中。
旋风小部件在glade中可用。
我试过使用knob.c和knob.h文件并尝试使用示例并得到了一些工作的例子,但无法将它们整合到gade中。
glade目录文件,它描述你的小部件属性,目录名称和其他一些东西。您还可能需要在编辑>下添加其他目录路径。如果目录位于默认查找路径之外,则在
。额外目录路径
对话框部分中的首选项
Hi am using gtk3 and glade 3.14...I want to add a custom widget to glade so that i can add that to my user interface easily.
I found knob widget is missing in glade and i found knob widget in
http://sourceforge.net/projects/giw/
I downloaded and installed instrumentation widgets but it wont get added to Glade.
Is a knob widget available in glade.
I tried using the knob.c and knob.h file and tried example and got some examples working but couldn't integrate them to gade.
What you need is a glade catalog file
which describes your widgets properties, the catalog name and a few other things. You may also have to add an additional catalog path under Edit > Preferences
in the dialog section where it says Extra Catalog Paths
if the catalog resides outside of the default lookup paths.
For details on how to create a catalog, read the catalogintro.
这篇关于将自定义小部件添加到GLADE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!