[Glade-users] adding custom widgets



On Tue, Apr 21, 2009 at 2:00 PM, Gerald Britton
<gerald.britton at gmail.com> wrote:
I'm just reading through:

http://glade.gnome.org/docs/catalog.html

After reading the three pages under this heading and trying a few
things out, its obvious to me that I have no idea what I'm doing. ?My
goal is to be able to design and use custom widgets using Glade-3 for
my gtk-builder applications. ?So, I thought I just play the dummy and
do what is in the documentation by rote to see what happened. ?I got
to the part about "Validating and installing" and hit some snags right
away:

The command:

? ?xmllint --dtdvalid glade-catalog.dtd --noout my-catalog.xml

failed because I can't find glade-catalog.dtd on my system. ?Any idea
where to get it or what package it might be in?

Its in the tarball, but current versions are out of date for the catalog DTD
(I've actually never used it...) but someone has written a patch against
the current DTD here http://bugzilla.gnome.org/show_bug.cgi?id=578465,
which just needs a little work since it defines an ordering of tag which
is not mandatory (with an updated DTD, I'll introduce it to our Makefiles
so that our catalogs get validated at build time).

If you are creating custom virtual properties by way of the catalog
(i.e. in the case you may be faking a class purely by catalog without
loading the actual widget type into Glade), then please look at
plugins/gtk+/gtk+.xml.in for better examples, we have better support
for that now but I havent yet brought the docs up to date in that respect.


The command:

? ?pkg-config --variable=catalogdir gladeui-1.0

just exits without printing any directory. ?Guess I'm missing
something here as well. Same thing with the other pkg-config commands.

Do you have Glade headers and pc files installed ? if you built from sources;
where did you install Glade ? if you installed Glade in /opt for instance,
you will need to set PKG_CONFIG_PATH=/opt/lib/pkgconfig:/usr/lib/pkgconfig

Alternatively you can just set GLADE_CATALOG_PATH=~/catalogs when
firing up Glade and it should pickup any catalogs you put in ~/catalogs

Cheers,
         -Tristan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]