CinnamonEntry

CinnamonEntry

Functions

Functions

addContextMenu ()


addContextMenu (St.Entry              entry,
                object                params,
                PopupMenu.PopupMenu   parentMenu);

Parameters

entry

the entry to add a context menu to

 

params

optional parameters to pass to the _EntryMenu constructor. Currently supports isPassword (boolean) to add a show/hide text toggle.

 

parentMenu

optional parent menu. When the entry is inside an existing popup menu (e.g. an applet menu), pass the parent menu here so the context menu is registered as a child menu. This prevents the parent menu from closing when the context menu is interacted with. When omitted, a standalone PopupMenuManager is created for the context menu, which is appropriate for entries in dialogs or other non-menu contexts.