Re: [gtk-list] how to set toggle/radio buttons without "clicked"




Paul Barton-Davis <pbd@Op.Net> writes:
> i have some radio and toggle buttons. they can be set (in-)active by
> the user+mouse, or programmatically as a result of data read from
> an external input source.
> 
> if i use gtk_toggle_button_set_active() for the programmatic setting,
> then the "clicked" signal is emitted. How can i set the button states
> in a way that doesn't make it appear that there was user interaction ?
> 

You have to do gtk_signal_handler_block_*() around your set_active().

Havoc



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