Hi,<br><br>damn me!<br><br>&quot;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).&quot;<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 &lt;<a href="mailto:anidel@gmail.com">anidel@gmail.com</a>&gt; 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 &lt;<a href="mailto:anidel@gmail.com" target="_blank">anidel@gmail.com</a>&gt; 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 &lt;<a href="mailto:anidel@gmail.com" target="_blank">anidel@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am again bugging the list with another issue I am going to solve.<br>
&gt; This time with the help framework.<br>
&gt;<br>
&gt; I did write my xournal.xml help file, here is an excerpt of interest for the issue I am describing:<br>
&gt;<br>
&gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>
&gt; &lt;ossohelpsource&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;folder&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;Xournal&lt;/title&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;topic&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;topictitle&gt;1. Introduction&lt;/topictitle&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;context contextUID=&quot;help_introduction&quot;/&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;para&gt;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 &nbsp;and Gournal.&lt;/para&gt;<br>


&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/topic&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/folder&gt;<br>
&gt; &lt;/ossohelpsource&gt;<br>
&gt;<br>
&gt; This xournal.xml file is stored correctly into /usr/share/osso-help/en_GB and en_US<br>
&gt; (the tablet is set as en_US)<br>
&gt;<br>
&gt; main function:<br>
&gt;<br>
&gt; &nbsp; osso_context_t *ctx;<br>
&gt;<br>
&gt; &nbsp; ctx = osso_initialize (PACKAGE, VERSION, TRUE, NULL);<br>
&gt; &nbsp; g_assert (ctx);<br>
&gt;<br>
&gt; &nbsp; g_signal_connect (GTK_OBJECT(xournalHelp), &quot;activate&quot;,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; G_CALLBACK (on_HildonHelp_activate),<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;help_introduction&quot;);<br>
&gt; ...<br>
&gt; This is the code in the callback function (it is correctly called) on_HildonHelp_activate:<br>
&gt;<br>
&gt; on_HildonHelp_activate (GtkWidget *widget, gchar *help_id) {<br>
&gt; &nbsp;..<br>
&gt; &nbsp; retval = hildon_help_show(ctx, &nbsp; &nbsp; /* global osso_context */<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; help_id, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /* topic id */<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HILDON_HELP_SHOW_DIALOG);<br>
&gt; ..<br>
&gt; }<br>
&gt;<br>
&gt; where &quot;help_id&quot; is correctly passed as &quot;help_introduction&quot; from the menu item signal<br>
&gt; &nbsp;and the ctx is a global osso_context_t * pointer (the one returned by osso_initialize);<br>
&gt;<br>
&gt; Guess what ?<br>
&gt; No help widget is shown.<br>
&gt;<br>
&gt; Yeah, I know.. this is very similar to the Help Framework HOWTO, is it ? :)<br>
&gt;<br>
&gt; One more thing. I did also check the maemopad example, but its Makefile stores<br>
&gt; the help file in the /usr/share/hildon-help folder rather than osso-help, thus I guess<br>
&gt; that help is wrong or outdated.<br>
&gt; Anyway when the MaemoPad.xml was stored in the hildon-help folder, it behaved as<br>
&gt; &nbsp;Xournal. Click on the menu item and it doesn&#39;t show anything at all.<br>
&gt; If I copy the MaemoPad.xml file to the correct folder in osso-help (en_GB and en_US<br>
&gt; to be sure) a balloon appears telling me that that topic does not exist (even if it does, I checked).<br>
&gt;<br>
&gt; What&#39;s wrong ?<br>
&gt;<br>
&gt; --<br>
&gt; 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