=?Windows-1252?Q?RE:_GtkSwi?= =?Windows-1252?Q?tch_=97_lack?= =?Windows-1252?Q?_of_specif?= =?Windows-1252?Q?ic_signal?=




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





                                          


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]