I'm trying to use a Gtk.Switch widget in an app but "activate" signal is not firing by clicks. It works fine when using the widget with keyboard by hitting reture/space key on it but clicks don't fire the "activate" event.
Any Idea what is to be done in order to register signals for clicks on Gtk.Switch
from gi.repository impoty Gtk, GObject
def my_callback(widget, data=None):
print 'Event Fired'
switch = Gtk.Switch()
window = Gtk.Window()
window.add(switch)
switch.connect('activate', my_callback)
window.show_all()
GObject.MainLoop().run()