[Glade-users] How to write a catalog for use in glade 3.3.4
Germán Diago
germandiago at gmail.com
Thu Sep 6 13:51:03 EDT 2007
Hello. I'm trying to write a glade catalog. When looking at the gnome
2.20features page
I read there's no need to write a supporting source code plugin to define a
catalog, so
I tried this:
<?xml version="1.0" encoding="UTF-8"?>
<glade-catalog name="myappcatalog" icon-prefix="gtk" library="gladegtk"
domain="glade3" book="gtk">
<glade-widget-classes>
<glade-widget-class name="sdlwidget" generic-name="sdlwidget"
title="SDL Widget">
<properties>
<property id="handle-position">
<displayable-values>
<value id="GTK_POS_LEFT" name="Left"></value>
<value id="GTK_POS_RIGHT" name="Right"></value>
<value id="GTK_POS_TOP" name="Top"></value>
<value id="GTK_POS_BOTTOM" name="Bottom"></value>
</displayable-values>
</property>
</properties>
</glade-widget-class>
</glade-widget-classes>
<glade-widget-group name="ftr" title="Follow the rabbit">
<glade-widget-class-ref name="SdlWidget"/>
</glade-widget-group>
</glade-catalog>
But glade 3.3.4 reports something like this:
(glade-3:32637): GladeUI-WARNING **: Couldn't find type «sdlwidget_get_type»
(glade-3:32637): GladeUI-WARNING **: Could not obtain type of de «sdlwidget»
(glade-3:32637): GladeUI-WARNING **: Failed to load the GType for
'sdlwidget'
(glade-3:32637): GladeUI-WARNING **: Tried to include undefined widget class
'SdlWidget' in a widget group
I looked at the documentation but I don't know what I'm missing so that my
widget is shown in
the glade palette. What should I do?
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20070906/f8d8e9ae/attachment.html
More information about the Glade-users
mailing list