Function

GtkBindingEntryadd_signal_from_string

since: 3.0

Declaration [src]

GTokenType
gtk_binding_entry_add_signal_from_string (
  GtkBindingSet* binding_set,
  const gchar* signal_desc
)

Description [src]

Parses a signal description from signal_desc and incorporates it into binding_set.

Signal descriptions may either bind a key combination to one or more signals:

  bind "key" {
    "signalname" (param, ...)
    ...
  }

Or they may also unbind a key combination:

  unbind "key"

Key combinations must be in a format that can be parsed by gtk_accelerator_parse().

Available since: 3.0

Parameters

binding_set

Type: GtkBindingSet

A GtkBindingSet.

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

Type: const gchar*

A signal description.

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

Return value

Type: GTokenType

G_TOKEN_NONE if the signal was successfully parsed and added, the expected token otherwise.