Ticket #1446 (closed enhancement: fixed)
PATCH: Provide some means for own menu entries in ContextMenu
| Reported by: | guest | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Plugins | Version: | trunk |
| Severity: | normal | Keywords: | |
| Cc: |
Description
Inspired by the DoubleClick plugin, I implemented some means to get my own entries into the ContextMenu. It is basically an object that contains arrays of menu-items in form of properties that match a tag name (e.g. { 'a' : [array of menu items], ... } )
The patch would make the plugin create such an (empty) object within the Xinha object. Upon menu generation, the plugin would then check for an array under the name of the current tag, and add any menu item it may find there to the context menu.
With this proposed patch, plugins could check for the existence of the container object, and if it does, easily add their own menu entries.
It was tested with 0.94, 0.95 and current trunk (rev1188).
The patch is against rev1188 (HEAD at the time of writing :-) )
