Package: gobject

Function gobject:signal-lookup

Lambda List

gobject:signal-lookup (name itype)

Arguments

name -- a string with the name of the signal
itype -- a g:type-t type ID that the signal operates on

Return Value

The 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 identifying integer of the signal. Emitting the signal by number is somewhat faster than using the name each time. Also tries the ancestors of the given type.

Examples

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

See also

2024-6-19