I have an update_ui function which has to set the state of the switch but without triggering the signal handler which will call update_ui leading to a stack overflow.
Alternatively, how do i listen to clicks on the switch without using the state-set signal. The docs say that applications should not connect to the “activate” signal.