Function

GObjectsignal_parse_name

Declaration [src]

gboolean
g_signal_parse_name (
  const gchar* detailed_signal,
  GType itype,
  guint* signal_id_p,
  GQuark* detail_p,
  gboolean force_detail_quark
)

Description [src]

Internal function to parse a signal name into its signal_id and detail quark.

Parameters

detailed_signal const gchar*
 

A string of the form “signal-name::detail”.

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

The interface/instance type that introduced “signal-name”.

signal_id_p guint*
 

Location to store the signal id.

 The argument will be set by the function.
 The called function takes ownership of the data, and is responsible for freeing it.
detail_p GQuark
 

Location to store the detail quark.

 The argument will be set by the function.
 The called function takes ownership of the data, and is responsible for freeing it.
force_detail_quark gboolean
 

TRUE forces creation of a GQuark for the detail.

Return value

Returns: gboolean
 

Whether the signal name could successfully be parsed and signal_id_p and detail_p contain valid return values.