<br><br><div><span class="gmail_quote">2005/12/5, Kalle Vahlman <<a href="mailto:kalle.vahlman@gmail.com">kalle.vahlman@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm forwarding this to you since Ralf probably got us mixed up or just<br>misinterpeted the thread...<br><br>Just a confirmation of what was said really.<br><br>---------- Forwarded message ----------<br>From: Ralf Engels <
<a href="mailto:ralf-engels@gmx.de">ralf-engels@gmx.de</a>><br>Date: 5.12.2005 21:12<br>Subject: Re: [maemo-developers] GTK UI Manager and Maemo<br>To: <a href="mailto:zuh@iki.fi">zuh@iki.fi</a><br><br><br>Hi Kalle,<br>
<br>I had the same problem like you did. Sadly the UI-manager only wants<br>to create a menu-bar or a toolbar but not single menu-items.<br>So I did it like this:<br><br><br> menubar = GTK_WIDGET( hildon_appview_get_menu( HILDON_APPVIEW(box) ) );
<br><br> gtk_widget_reparent( gtk_ui_manager_get_widget(uiManager,<br>"/MainMenu/FileMenu"), menubar );<br> gtk_widget_reparent( gtk_ui_manager_get_widget(uiManager,<br>"/MainMenu/EditMenu"), menubar );
<br> gtk_widget_reparent( gtk_ui_manager_get_widget(uiManager,<br>"/MainMenu/ApparelMenu"), menubar );<br> gtk_widget_reparent( gtk_ui_manager_get_widget(uiManager,<br>"/MainMenu/ActionMenu"), menubar );
<br> gtk_widget_reparent( gtk_ui_manager_get_widget(uiManager,<br>"/MainMenu/SpecialMenu"), menubar );<br> gtk_widget_reparent( gtk_ui_manager_get_widget(uiManager,<br>"/MainMenu/MoveMenu"), menubar );
<br> gtk_widget_reparent( gtk_ui_manager_get_widget(uiManager,<br>"/MainMenu/HelpMenu"), menubar );<br><br><br>So I let the guiManager do his thing and then reparent the different menus.<br>Works like a charm.
<br><br>BR,<br>Ralf<br><br><br>[...] <br>
</blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">--<br>Kalle Vahlman, <a href="mailto:zuh@iki.fi">zuh@iki.fi</a><br>Powered by
<a href="http://movial.fi">http://movial.fi</a><br></blockquote></div><br>
Thanks a lot, it works flawlessly now!<br>
<br>
Luca Donaggio<br>