How do I add Contents to the top of the help menu

Asked by Tony Byrne

I'm trying to add a Contents item to the Help menu but it appears at the bottom of the list. How do I get to appear at the top? How do I add F1 key accelerator key to this menu item ?

Question information

Language:
English Edit question
Status:
Solved
For:
Quickly Edit question
Assignee:
No assignee Edit question
Solved by:
Tony Byrne
Solved:
Last query:
Last reply:
Revision history for this message
Aruna Hewapathirane (aruna-hewapathirane) said :
#1

- Please click on the menu bar first in glade
- Then Right click and select edit
- You will see two tabs ( General / Hierachy ) select hierachy
- On the left in a treeview you will see your menu items
- Click help item
- Right click then choose add normal child item
- Now click the item you just added and change the label on the right pane to content
- Click and DRAG it to where you want - done !

How do I add F1 key accelerator key to this menu item ?

In the MAIN glade design window click the content menu item
- in the lower right you get four tab views ( General/Packing/Common/Signals)
- Click COMMON tab
- scroll down and click the small button with three dots next to where it says accerlerators
- in the pop-up click Gtk-Menuitem->activate
- Click where it says choose a key
- Now press F1 - Done !
-

Revision history for this message
Tony Byrne (tony-badwolf) said :
#2

Thanks Aruna

 There was one more step needed. In the file bin/project_name, line # 89
LaunchpadIntegration.add_items(helpmenu, 0, False, True)
I needed to change the 0 to a 1 to move the 3 launchpad items below the Contents