Login  Register

Re: Add menu item to Nautilus context menu on selected packages?

Posted by Benjamin Van Ryseghem (Pharo) on Nov 12, 2013; 3:03pm
URL: https://forum.world.st/Add-menu-item-to-Nautilus-context-menu-on-selected-packages-tp4721406p4721410.html

It is :)
And I would even say it is not complicated :P

Here is an example from Nautilus

AbstractNautilusUI class>>packagesMenu: aBuilder
<contextMenu>
<nautilusGlobalPackageMenu>
| package target |
target := aBuilder model.

(package := target selectedPackage) ifNil: [ ^ target ].
(aBuilder item: #'Browse scoped')
keyText: 'b, s' if: Nautilus useOldStyleKeys not;
action: [ target restrictedBrowsePackage ];
order: 1000;
help: 'Open a browser on a restricted view';
withSeparatorAfter.

:)

Ben

On 12 Nov 2013, at 15:41, MartinW <[hidden email]> wrote:

Hi,
i have a tool that works on packages.
So far i added a wizard to the world menu, but i would rather add a menu
item to the Nautilus context menu on selected packages - is this possible?

Best regards,
Martin.



--
View this message in context: http://forum.world.st/Add-menu-item-to-Nautilus-context-menu-on-selected-packages-tp4721406.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.