Re: Gnome2::Help example?
- From: jeremy ds volkening <volkening mailshack com>
- To: gtk-perl-list gnome org
- Subject: Re: Gnome2::Help example?
- Date: Sat, 30 Jan 2010 15:42:37 -0500
Okay, sorry, I figured out the issue. For future interest, I needed to
create the locale directories under the app help directory (or in this
case just the default 'C' locale). Then I fed the file argument an empty
string in the Gnome2::Help->display call. So,
<app-datadir>/gnome/help/<app-name>/C/[Mallard help files]
and then,
Gnome2::Help->display('');
I don't know if this is the best way to do it, but it works for testing
purposes.
Jeremy
On Sat, 2010-01-30 at 15:10 -0500, jeremy ds volkening wrote:
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
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list
[
Date Prev][Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]