[hafqa] [hafqa] [Bug 2281] Accelerator Labels not shown in menus created with GtkUIManager
From: bugzilla-daemon at lists.maemo.org bugzilla-daemon at lists.maemo.orgDate: Wed Feb 13 03:00:57 EET 2008
- Previous message: [hafqa] [Bug 2673] N800 Power up Drama
- Next message: [hafqa] [Bug 2281] Accelerator Labels not shown in menus created with GtkUIManager
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
https://bugs.maemo.org/show_bug.cgi?id=2281 ------- Comment #7 from mike_morrison at alumni.uvic.ca 2008-02-13 03:00 GMT+3 ------- (In reply to comment #6) > How exactly do you create the menu? Can you paste both the ui manager XML > and the code that actually uses the XML and puts the menu into the > window? > you'll have to excuse me, i'm on vacation (until friday) and only have my n810 so this may be incomplete. first i create the ui manager: gtk_ui_manager_new gtk_ui_manager_set_add_tearoffs then i add my ui definitions: gtk_ui_manager_add_ui_from_string then add the corrisponding actions: gtk_action_group_new gtk_action_group_add_actions gtk_ui_manager_insert_action_group then i add the accel group to the window: gtk_window_add_accel_group(..., gtk_ui_manager_get_accel_group(...)); and finally get the menu and add it to the hildon program: menu = gtk_ui_manager_get_widget(...); hildon_program_set_common_menu (program, GTK_MENU(menu)); -- Configure bugmail: https://bugs.maemo.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
- Previous message: [hafqa] [Bug 2673] N800 Power up Drama
- Next message: [hafqa] [Bug 2281] Accelerator Labels not shown in menus created with GtkUIManager
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]