Re: Gtk::Switch problem, not being able to handle the signal state_set



from the doc:

"The signal_state_set() signal on GtkSwitch is emitted to change the underlying state. It is emitted when the user changes the switch position. The default handler keeps the state in sync with the Gtk::Switch::property_active() property"

that is: the point of this signal is to control how the state changes, not listen for said changes. if you override that default handler, it probably won't do what you expect. also, you're not connecting before that default, hence why you don't see any printout.

checking for changes on the property as you proposed is correct, I think.



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