primary_menu


Description:

[ NoAccessorMethod ]
public Widget primary_menu { owned get; set; }

A Menu to use when requested by the remote monitor via a left (or primary) click.

When this property is not null, the menu will be automatically positioned and displayed during a primary button release.

When this property IS null, the activate will be sent for primary button presses.

In both cases, the button_press_event and button_release_events will be fired like normal.

Setting this will remove any floating reference to the menu and assume ownership. As a result, it is not necessary to maintain a reference to it in the parent application (or unref it when finished with it - if you wish to replace the menu, simply call this method again with a new menu.

The same Menu widget can be set as both the primary and secondary.