将自定义小部件添加到GLADE [英] Adding custom widget to GLADE

查看:246
本文介绍了将自定义小部件添加到GLADE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在使用gtk3和glade 3.14 ...我想添加一个自定义小部件,以便我可以轻松地将其添加到我的用户界面。



我发现旋钮小部件在林间空地中失踪,我在

找到了旋钮小部件 http://sourceforge.net/projects/giw/



我下载并安装了测试小部件,但它不会被添加到Glade中。



旋风小部件在glade中可用。



我试过使用knob.c和knob.h文件并尝试使用示例并得到了一些工作的例子,但无法将它们整合到gade中。

解决方案

glade目录文件,它描述你的小部件属性,目录名称和其他一些东西。您还可能需要在编辑>下添加其他目录路径。如果目录位于默认查找路径之外,则在额外目录路径对话框部分中的首选项



有关如何创建目录的详细信息,请阅读catalogintro。


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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆