Re: Adding widget types to [Glade|Gazpacho|libGlade]



On Sat, 2007-07-21 at 11:41 -0500, David Hagood wrote:
I'm looking to create some custom widgets for use in a libGlade program,
and I'd like to be able to correctly automatically instantiate those
widgets as well as lay them out in Glade or Gazpacho.

Ok I'll try to answer all the questions I can in the short amount
of time I have...

Glade 3 docs here are helpful but out of date:
   http://glade.gnome.org/docs/index.html

Come to #glade3 irc.gnome.org in the week and I'll be around
(and Juan and Vincent too...)... we can easily help you through the
steps of setting up an xml file to have your widget(s) recognized
by glade (also look at plugins/gtk+/ directory of the glade tarball
to see the gtk+ plugin for an example, it huge because it includes
all gtk+ widgets & support code but at least you can get references).

1) Both Glade3 and Gazpacho allow for the addition of widget sets by
creating a catalog file + any needed handler files.
2) Glade2 does NOT have this capability.
3) Gazpacho looks in /usr/share/gazpacho/catalog for its catalogs
4) As of yet, Glade3 is NOT a "standard" part of Fedora, nor Debian (at
least I've not been able to find appropriate packages in any of the
repositories for those two environments) - as such I don't know where
Glade3 would look for extra catalogs.

The directory is exported by a .pc file, it could depend on where
the vendor decided to install glade, probably /usr/share/glade3/...


Now, what I'd like to know is: Is there any way to have a "local"
catalog for Gazpacho|Glade to allow it to understand custom widgets,
rather than having to add the catalog to /usr/share/gazpacho/catalog? As
I am developing the widgets I'd like to NOT have to place them into the
system directories: I'd rather have them either in some sub-directory in
my home directory, or better still in the directory containing their
support code until such time as I am read to do a release.

User defined catalogs in home dirs could be easily doable, maybe
by adding a simple env var "GLADE_CATALOG_DIRS" or such, you're
welcome to send us a patch ofcourse or at least a bugzilla entry :)


Also, are there any plans on bringing the gazpacho and Glade catalog
directories together, such that an install package for these files would
go into one place only?

These are 2 different programs, I dont see why they would try to
install files in the same place.

Cheers,
                     -Tristan






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