Hi,<br><br>damn me!<br><br>"The context string is defined by the
attribute <span class="codefrag">contextUID</span> and must follow the format <span class="codefrag">xxx_filename_yyy</span>,
where <span class="codefrag">filename</span> must be exactly the name of the XML file (without the
extension)."<br><br>Works.<br>Sorry to bother :)<br><br>--<br>anidel<br><br><div class="gmail_quote">On Wed, Apr 16, 2008 at 7:53 PM, Aniello Del Sorbo <<a href="mailto:anidel@gmail.com">anidel@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>I am back home and playing with the Help framework again.<br>Forget the second mail. Osso help is old stuff (and is still in the How To write new application howto!).<br>
I only have hildon-help.h and no osso help.<br>
<br>So playing with it now...<br>But, now one here that knows how to hint me ?<br><br>--<br>anidel<div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Wed, Apr 16, 2008 at 4:09 PM, Aniello Del Sorbo <<a href="mailto:anidel@gmail.com" target="_blank">anidel@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
looks like the on-line documentation needs a lot of work on it.<br>
the Maemo Help Framework howto is outdated, so is the maemopad package.<br>
<br>
while waiting before the lesson i decided to go read other pieces of<br>
the on-line documentation.<br>
<br>
the<br>
How to Write New Applications in maemo 4.0<br>
<br>
document states I should use the ossohelp_show function and even<br>
redirects me to the former help framework howto!!<br>
<br>
I will check later if this helps.<br>
<br>
--<br>
anidel<br>
<div><div></div><div><br>
On 4/16/08, Aniello Del Sorbo <<a href="mailto:anidel@gmail.com" target="_blank">anidel@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I am again bugging the list with another issue I am going to solve.<br>
> This time with the help framework.<br>
><br>
> I did write my xournal.xml help file, here is an excerpt of interest for the issue I am describing:<br>
><br>
> <?xml version="1.0" encoding="utf-8"?><br>
> <ossohelpsource><br>
> <folder><br>
> <title>Xournal</title><br>
> <topic><br>
> <topictitle>1. Introduction</topictitle><br>
> <context contextUID="help_introduction"/><br>
> <para>Xournal is an application for notetaking, sketching, keeping a journal using a stylus. It is free software (GNU GPL) and runs on Maemo, desktop Linux (recent distributions) and other GTK+/Gnome platforms. It is similar to Microsoft Windows Journal or to other alternatives such as Jarnal and Gournal.</para><br>
> </topic><br>
> </folder><br>
> </ossohelpsource><br>
><br>
> This xournal.xml file is stored correctly into /usr/share/osso-help/en_GB and en_US<br>
> (the tablet is set as en_US)<br>
><br>
> main function:<br>
><br>
> osso_context_t *ctx;<br>
><br>
> ctx = osso_initialize (PACKAGE, VERSION, TRUE, NULL);<br>
> g_assert (ctx);<br>
><br>
> g_signal_connect (GTK_OBJECT(xournalHelp), "activate",<br>
> G_CALLBACK (on_HildonHelp_activate),<br>
> "help_introduction");<br>
> ...<br>
> This is the code in the callback function (it is correctly called) on_HildonHelp_activate:<br>
><br>
> on_HildonHelp_activate (GtkWidget *widget, gchar *help_id) {<br>
> ..<br>
> retval = hildon_help_show(ctx, /* global osso_context */<br>
> help_id, /* topic id */<br>
> HILDON_HELP_SHOW_DIALOG);<br>
> ..<br>
> }<br>
><br>
> where "help_id" is correctly passed as "help_introduction" from the menu item signal<br>
> and the ctx is a global osso_context_t * pointer (the one returned by osso_initialize);<br>
><br>
> Guess what ?<br>
> No help widget is shown.<br>
><br>
> Yeah, I know.. this is very similar to the Help Framework HOWTO, is it ? :)<br>
><br>
> One more thing. I did also check the maemopad example, but its Makefile stores<br>
> the help file in the /usr/share/hildon-help folder rather than osso-help, thus I guess<br>
> that help is wrong or outdated.<br>
> Anyway when the MaemoPad.xml was stored in the hildon-help folder, it behaved as<br>
> Xournal. Click on the menu item and it doesn't show anything at all.<br>
> If I copy the MaemoPad.xml file to the correct folder in osso-help (en_GB and en_US<br>
> to be sure) a balloon appears telling me that that topic does not exist (even if it does, I checked).<br>
><br>
> What's wrong ?<br>
><br>
> --<br>
> anidel<br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
anidel<br>
</font></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>anidel
</font></blockquote></div><br><br clear="all"><br>-- <br>anidel