Thanks both. I tried notify::active and it works as well as event-after but still the data pointer argument is bad on entry to the callback(it's not zero but not a valid GTK_WIDGET either). I don't know why - maybe something related to GtkSwitch or maybe a mistake in my code somewhere. Cheers, John Lumby
Emmanuele wrote> > On 2011-03-04 at 12:45, John Lumby wrote: > > > I have been playing with a small application using the new (in gtk3) > > GtkSwitch ("light switch" style) widget. > > I want a signal for when the state is toggled, e.g. "switched". > > you can use "notify::active". > > ciao, > Emmanuele. > > -- > W: http://www.emmanuelebassi.name > B: http://blogs.gnome.org/ebassi Yeti wrote: > I've never used GtkSwitch but from a quick glance at the docs I suppose> you > have to connect to "notify::active", i.e. watch changes of the> property > "active".> > Yeti _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list