On Mon, Aug 29, 2016 at 12:26 PM, Andrei Chis chisvasileandrei@gmail.com wrote:
Hi Peter.
Right now you can only add an action to the context menu by adding to the class side of GTPlayground a method annotated with <playgroundContextMenu> that takes a parameter and returns a list of glamour actions. The parameter will be the actual instance of the playground. You can find an example in #contextMenuBasicActionsFor:
GTPlayground class>>#customActions: aPlayground
<playgroundContextMenu> ^ { GLMGenericAction new action: [ self inform: 'action' ]; icon: GLMUIThemeExtraIcons glamorousBrowse; title: 'Action' }
Thanks, this is a good non-hacky solution for now. (besides, I am not going to use it that often so maybe it's better to be hidden in context menu).
Thanks!
Peter