setting initial state of radio buttons not working



hello,

I have 2 radio buttons in the same group. Both are being marked when I
run the app and I need them to be both turned off (obviously).

I used gtk_radio_button_new_with_label() to create them.
I added them to a group. Everything works fine until runtime when both
buttons are on by default.
I used gtk_toggle_button_set_active(radio_button,FALSE) to turn them off
but it doesn't work.

Typecasting to toggle button is the only thing that works and when that
happens it makes the whole table cell that I have the button in look
depressed and I don't want that. I want the circle next to the label to
be marked with a dot (like a radio button should be) but it's not
happening. 

Without typecasting to toggle and either leaving it as radio_button or
trying to typecast to radio button (even though it alread is one)
results with the following error:

passing arg 1 of `gtk_toggle_button_set_active` from incompatible
pointer type


Isn't there any function that turns radio buttons off (or on) to set
their initial state????


thanks
brandon



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