GObject.Object.prototype.connect_after
function connect(signal_name: String, handler: Function): Number(gint) { // Gjs wrapper for g_signal_connect() }
Connects handler to signal_name on the object on which this method is invoked, and returns an integer ID different than 0 that can be passed to GObject.Object.prototype.disconnect
This is similar to GObject.Object.prototype.connect but the handler will always be invoked after the class implementation, if one exists.
- signal_name
the signal to connect to
- handler
the function handling the signal
- Returns
the signal connection ID