On Wed, 2005-06-15 at 14:22 -0400, Rouslan Solomakhin wrote: > Hello, > > I have to questions, answers for which I could not find neither on > Google nor on http://www.pygtk.org : > > 1) How do I call yelp out of my on_help() method? > If you're writing a gnome program you need at least the following code:
import gnome
props = { gnome.PARAM_APP_DATADIR : '/usr/share'}
prog = gnome.program_init('eog', '1.0', properties=props)
gnome.help_display('eog')
The 'eog' in gnome.program_init() will determine which subdirectory
of /usr/share/gnome/help will be looked in.
The 'eog' in gnome.help_display() determines the filename (in this case,
eog.xml)
The C API is documented here:
http://developer.gnome.org/doc/API/2.0/libgnome/libgnome-gnome-help.html
> 2) Where should I store my help document so that yelp finds it?
So in this example the documentation is installed
into /usr/share/gnome/help/eog/C/eog.xml
(The 'C' is the locale. If you're working on Spanish documentation you
would use 'es' instead and so forth.)
I believe that gnome will find it with just this. However, for yelp to
find the documentation when browsing (Invoking yelp from the command
line and then browsing the categories to find documentation on your
program) you need to register the documentation through scrollkeper.
I believe scrollkeeper-update is all you need there.
The gnome-common package (ftp.gnome.org) has some Makefiles and scripts
that aid in this process.
-Toshio
signature.asc
Description: This is a digitally signed message part
_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
