Re: Sensitive OFF for Radio Button



Havoc Pennington <hp redhat com> writes:

Stephane Duguay <sduguay Matrox COM> writes:

Anyone know a way to set sensitive to FALSE for radio button ?
I did try to set sensitive to FALSE for
radio->check_button->toggle_button but
it doesn't work !!!!


What's wrong with:
  gtk_widget_set_sensitive (GTK_WIDGET (radiobutton), FALSE)?

Or am I missing the point?

While I'm not 100% sure what he meant, I'm guessing that he really wants
to do:

gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radiobutton), FALSE);

and is discovering that this doesn't work.  There is really no way to
unselect a radio group, only set a different one active.  I'm not sure
if this is a good behavior or not, but on some level it makes sense.  Do
you ever want to go back to the inactive state?

Thanks,
-Jonathan




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