Signal

GtkWidget::popup-menu

Declaration

gboolean
popup_menu (
  GtkWidget* self,
  gpointer user_data
)

Description [src]

This signal gets emitted whenever a widget should pop up a context menu. This usually happens through the standard key binding mechanism; by pressing a certain key while a widget is focused, the user can cause the widget to pop up a menu. For example, the GtkEntry widget creates a menu with clipboard commands. See the [Popup Menu Migration Checklist][checklist-popup-menu] for an example of how to use this signal.

Default handler:

The default handler is called after the handlers added via g_signal_connect().

Signal can be directly emitted on objects from user code

Return value

Type: gboolean

TRUE if a menu was activated.