问题
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.
回答1:
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.
来源:https://stackoverflow.com/questions/22219788/adding-custom-widget-to-glade