Signal

GtkToolbar::popup-context-menu

Declaration

gboolean
popup_context_menu (
  GtkToolbar* self,
  gint x,
  gint y,
  gint button,
  gpointer user_data
)

Description [src]

Emitted when the user right-clicks the toolbar or uses the keybinding to display a popup menu.

Application developers should handle this signal if they want to display a context menu on the toolbar. The context-menu should appear at the coordinates given by x and y. The mouse button number is given by the button parameter. If the menu was popped up using the keybaord, button is -1.

Default handler:

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

Parameters

x

Type: gint

The x coordinate of the point where the menu should appear.

y

Type: gint

The y coordinate of the point where the menu should appear.

button

Type: gint

The mouse button the user pressed, or -1.

Return value

Type: gboolean

Return TRUE if the signal was handled, FALSE if not.