get_context_menu


Description:

public virtual Menu? get_context_menu ()

Invoked when the item is secondary-clicked or when the usual menu keys are pressed.

Note that since Granite 5.0, right clicking on an item no longer selects/activates it, so any context menu items should be actioned on the item instance rather than the selected item in the SourceList

Returns:

A Gtk.Menu or null if nothing should be displayed.

Since:

0.2