Package: gobject

Function g-signal-lookup

Lambda List

g-signal-lookup (name itype)

Arguments

name -- a string with the signal's name
itype -- the g-type that the signal operates on

Return Value

A unsigned integer with the identifying number of the signal, or 0 if no signal was found.

Details

Given the name of the signal and the type of object it connects to, gets the signal's identifying integer. Emitting the signal by number is somewhat faster than using the name each time. Also tries the ancestors of the given type.

Example

(g-signal-lookup "notify" "GObject")
=> 1
(g-signal-lookup "notify" "GtkWidget")
=> 1
(g-signal-lookup "unknown" "GObject")
=> 0    
 

See also

2021-12-14