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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>&lt;ossohelpsource&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;folder&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;title&gt;Xournal&lt;/title&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;topic&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;topictitle&gt;1. Introduction&lt;/topictitle&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;context contextUID=&quot;help_introduction&quot;/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/topic&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/folder&gt;<br>&lt;/ossohelpsource&gt;<br clear="all"><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>&nbsp; osso_context_t *ctx;<br><br>&nbsp; ctx = osso_initialize (PACKAGE, VERSION, TRUE, NULL);<br>&nbsp; g_assert (ctx);<br><br>&nbsp; g_signal_connect (GTK_OBJECT(xournalHelp), &quot;activate&quot;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; G_CALLBACK (on_HildonHelp_activate),<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;help_introduction&quot;);<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>&nbsp; retval = hildon_help_show(ctx,&nbsp;&nbsp;&nbsp;&nbsp; /* global osso_context */<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; help_id,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* topic id */<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HILDON_HELP_SHOW_DIALOG);<br>..<br>}<br><br>where &quot;help_id&quot; is correctly passed as &quot;help_introduction&quot; 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&#39;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&#39;s wrong ?<br><br>-- <br>anidel