Method

GntMenuItemset_callback

Declaration [src]

void
gnt_menuitem_set_callback (
  GntMenuItem* item,
  GntMenuItemCallback callback,
  gpointer data
)

Description [src]

Set a callback function for a menuitem.

Parameters

callback

Type: GntMenuItemCallback

The callback function.

data

Type: gpointer

Data to send to the callback function.

The argument can be NULL.
The data is owned by the caller of the function.