override_class_handler
Description:
[ Version ( since = "2.18" ) ]
public static void override_class_handler (string signal_name, Type instance_type, Callback class_handler)
public static void override_class_handler (string signal_name, Type instance_type, Callback class_handler)
Overrides the class closure (i.
e. the default handler) for the given signal for emissions on instances of instance_type
with callback class_handler
.
instance_type
must be derived from the type to which the signal belongs.
See chain_from_overridden and chain_from_overridden_handler for how to chain up to the parent class closure from inside the overridden one.
Parameters:
signal_name |
the name for the signal |
instance_type |
the instance type on which to override the class handler for the signal. |
class_handler |
the handler. |