Emitted when a context menu is about to be displayed to give the application a chance to customize the proposed menu, prevent the menu from being displayed, or build its own context menu.
context_menu,
move_item to reorder existing items, or
remove to remove an existing item. The signal handler should return
false, and the menu represented by context_menu will be shown.The event parameter is now deprecated. Use get_event to get
the Event that triggered the context menu.
If the signal handler returns false the context menu represented by context_menu will be
shown, if it returns true the context menu will not be shown.
The proposed ContextMenu passed in context_menu argument is only valid
during the signal emission.
| context_menu |
the proposed ContextMenu |
| event |
the Event that triggered the context menu. Deprecated 2.40. |
| hit_test_result |
|
true to stop other handlers from being invoked for the event. false to propagate the event further. |