Better way to add menu items for plugins

Bug #1323947 reported by Timothy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Diodon
Fix Released
Medium
Oliver Sauder

Bug Description

Most plugins need two things, a keybinding, and a menu item beneath the separator. keybinding_manager.bind can be used for the keybinding but the menu item is more difficult. Currently to add a menu item you must watch for menu changes, find the separator, and then add the item to the underling menu manually. It an be done, but it would make a lot of sense to have functions to register/unregister menu items more easily.

Tags: plugins
Revision history for this message
Oliver Sauder (sao) wrote :

Certainly a good idea to have a register menu item function on the controller and shouldn't be too difficult to implement.

Changed in diodon:
status: New → Triaged
importance: Undecided → Medium
milestone: none → 1.2.0
Revision history for this message
Oliver Sauder (sao) wrote :

Following method added to the controller:
add_static_recent_menu_item
remove_static_recent_menu_item

change committed - will be soon available in daily ppa or included in next stable release 1.2.0

Changed in diodon:
status: Triaged → Fix Committed
assignee: nobody → Oliver Sauder (sao)
Oliver Sauder (sao)
Changed in diodon:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.