Gnome2::Help example?



Hello,

Hopefully this isn't considered off-topic, but the Gnome2 bindings seem
to be more-or-less part of gtk2-perl and the folks on this list seem to
know what they're talking about.

I've been working on making a few of my programs conform to the GNOME
Human Interface Guidelines, and one step has been to implement the
Help->Contents menuitem to open up documentation in Yelp. I've been
trying to implement this with Gnome2::Help, but keep running into
problems and can't find sufficient documentation. I have made it this
far:

..
use Gnome2;
Gnome2::Program->init (
        $PROG_ID,
        $PROG_VERSION,
        'libgnomeui',
        'app-datadir'=>'/opt/GLOC',
);

..and later, a signal_connect to the proper menu item calling:

sub {
  Gnome2::Help->display('index.page')
}

but I'm still getting errors. Now it's: 

"Unable to find help paths /opt/GLOC/gnome/help/gloc
or /usr/share/gnome/help/gloc"

I created the apparently needed gnome/help/gloc structure under my app
directory, and moved my documentation files (written in Mallard:
http://www.projectmallard.org) to it, but I still get the same error. I
don't really want to put the files in /usr/share/gnome/... yet as the
program is in early development, and it seems to be looking in my own
directory anyway. Does anyone have advice or a working example? My docs
open up just fine using yelp directly, but is it a problem with using
Mallard instead of DocBook or do I just have something set up wrong?

Thanks in advance for any advice,

Jeremy







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