Constructor

Gtk.SignalAction.new

Declaration [src]

GtkShortcutAction*
gtk_signal_action_new (
  const char* signal_name
)

Description [src]

Creates an action that when activated, emits the given action signal on the provided widget.

It will also unpack the args into arguments passed to the signal.

Parameters

signal_name const char*
 

name of the signal to emit

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

Return value

Returns: GtkSignalAction

a new GtkShortcutAction

The caller of the function takes ownership of the data, and is responsible for freeing it