Package: gobject
Function gobject:signal-lookup
Lambda Listgobject:signal-lookup (name itype) ArgumentsReturn ValueThe 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