Re: gtk_toggle_button_set_active()



riboaz xs4all nl wrote:
Yesterday I wrote about how I was suspecting problems related to hiding
and unhiding widgets and trying to use gtk_toggle_button_set_active(). Today, I have a deeper understanding.

What exactly is the problem ?

If you call gtk_toggle_button_set_active(button ,TRUE) twice then only
the first call should work, if OTOH you call once with TRUE and another
time with FALSE then it should respond both times.

Is there a problem with only one button or is the radio group not responding
properly ? (i.e. becomming deactivated when another one becomes active)

Also, a typical problem when dealing with toggle buttons is feedback, always
be sure to be carefull when calling gtk_toggle_button_set_active() from a
"clicked" callback on a radio button.

Cheers,
                               -Tristan



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