[maemo-developers] [maemo-developers] GTK UI Manager and Maemo
From: Luca Donaggio donaggio at gmail.comDate: Tue Dec 6 09:54:11 EET 2005
- Previous message: [maemo-developers] GStreamer 0.10.0 is out!
- Next message: [maemo-developers] bluetooth keyboard
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2005/12/5, Kalle Vahlman <kalle.vahlman at gmail.com>: > > I'm forwarding this to you since Ralf probably got us mixed up or just > misinterpeted the thread... > > Just a confirmation of what was said really. > > ---------- Forwarded message ---------- > From: Ralf Engels <ralf-engels at gmx.de> > Date: 5.12.2005 21:12 > Subject: Re: [maemo-developers] GTK UI Manager and Maemo > To: zuh at iki.fi > > > Hi Kalle, > > I had the same problem like you did. Sadly the UI-manager only wants > to create a menu-bar or a toolbar but not single menu-items. > So I did it like this: > > > menubar = GTK_WIDGET( hildon_appview_get_menu( HILDON_APPVIEW(box) > ) ); > > gtk_widget_reparent( gtk_ui_manager_get_widget(uiManager, > "/MainMenu/FileMenu"), menubar ); > gtk_widget_reparent( gtk_ui_manager_get_widget(uiManager, > "/MainMenu/EditMenu"), menubar ); > gtk_widget_reparent( gtk_ui_manager_get_widget(uiManager, > "/MainMenu/ApparelMenu"), menubar ); > gtk_widget_reparent( gtk_ui_manager_get_widget(uiManager, > "/MainMenu/ActionMenu"), menubar ); > gtk_widget_reparent( gtk_ui_manager_get_widget(uiManager, > "/MainMenu/SpecialMenu"), menubar ); > gtk_widget_reparent( gtk_ui_manager_get_widget(uiManager, > "/MainMenu/MoveMenu"), menubar ); > gtk_widget_reparent( gtk_ui_manager_get_widget(uiManager, > "/MainMenu/HelpMenu"), menubar ); > > > So I let the guiManager do his thing and then reparent the different > menus. > Works like a charm. > > BR, > Ralf > > > [...] > -- > Kalle Vahlman, zuh at iki.fi > Powered by http://movial.fi > Thanks a lot, it works flawlessly now! Luca Donaggio -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20051206/c86e0f7b/attachment.htm
- Previous message: [maemo-developers] GStreamer 0.10.0 is out!
- Next message: [maemo-developers] bluetooth keyboard
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]