Signal

GtkTextView::populate-popup

Declaration

void
populate_popup (
  GtkTextView* self,
  GtkWidget* popup,
  gpointer user_data
)

Description [src]

The ::populate-popup signal gets emitted before showing the context menu of the text view.

If you need to add items to the context menu, connect to this signal and append your items to the popup, which will be a GtkMenu in this case.

If GtkTextView:populate-all is TRUE, this signal will also be emitted to populate touch popups. In this case, popup will be a different container, e.g. a GtkToolbar.

The signal handler should not make assumptions about the type of widget, but check whether popup is a GtkMenu or GtkToolbar or another kind of container.

Default handler:

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

Parameters

popup

Type: GtkWidget

The container that is being populated.

The data is owned by the caller of the function.