Re: Untoggling toggle buttons
- From: Owen Taylor <otaylor redhat com>
- To: Rob Huffstedtler <rob bagpipe com>
- Cc: GTK List <gtk-list redhat com>
- Subject: Re: Untoggling toggle buttons
- Date: 10 Jun 1999 10:30:37 -0400
Rob Huffstedtler <rob@bagpipe.com> writes:
> Is there a simple way to set up toggle buttons as some sort of group so
> that I could send one signal and untoggle everybody except the one which
> is currently pressed (ie. I want to make my toggle buttons act more like
> radio buttons than check buttons).
>
> The obvious way to do it is to put them into an array, but I haven't quite
> figured out how to compare as I'm iterating through it so that I don't
> untoggle the button I just pushed.
If you have some radiobuttons, and do:
gtk_toggle_button_set_mode (GTK_TOGGLE_BUTTON (radio_button), FALSE);
Then they'll be drawn like toggle buttons.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]