register_menu


Description:

public void register_menu (Menu menu)

Register a menu that is about to popup.

This will make sure the panel will properly handle its autohide behaviour. You have to call this function every time the menu is opened (e.g. using popup_at_widget).

If you want to open the menu aligned to the side of the panel (and the plugin), you should use popup_menu. This function will take care of calling register_menu as well.

See also: popup_menu and block_autohide.

Parameters:

this

an PanelPlugin.

menu

a Menu that will be opened