Function

Gntutil_set_trigger_widget

since: 2.1

Declaration [src]

void
gnt_util_set_trigger_widget (
  GntWidget* widget,
  const char* key,
  GntWidget* button
)

Description [src]

Make some keypress activate a button when some key is pressed with ‘wid’ in focus.

Available since: 2.1

Parameters

widget

Type: GntWidget

The widget.

The data is owned by the caller of the function.
key

Type: const char*

The key to trigger the button.

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
button

Type: GntWidget

The button to trigger.

The data is owned by the caller of the function.