Package: gobject

Function g-signal-name

Lambda List

g-signal-name (signal-id)

Arguments

signal-id -- an unsigned integer with the identifying number of the signal

Return Value

A string with the signal name, or nil if the signal number was invalid.

Details

Given the identifier of the signal, finds its name. Two different signals may have the same name, if they have differing types.

Example

Get the signal ID for the "draw" signal and then get the name for the ID:
(g-signal-lookup "draw" "GtkWidget")
=> 52
(g-signal-name *)
=> "draw"    
List the IDs for a button widget and retrieves the names of the signals:
(g-signal-list-ids "GtkButton")
=> (230 227 225 226 228 229)
(mapcar #'g-signal-name *)
=> ("activate" "clicked" "pressed" "released" "enter" "leave")    
 

See also

2021-12-14