RADIOBUTTONS (for expert only)



  hie
I'm quite sure somebody has experimented radiobutton...
I just try to set and get the state (I mean if the button is pushed or
not) of a radiobutton !!!

GtkWidget * my_radiobutton;
radiobutton = gtk_radio_button_ new ...
[...]

I tried
gtk_toggle_button_get_state(GTK_TOGGLE_BUTTON(my_radiobutton));
                                -> "...assertion GTK_IS_TOGGLEBUTTON
failed..." and nothing happen.
gtk_toggle_button_get_state(GTK_TOGGLE_BUTTON(my_radiobutton->check_button.toggle_button));

                                -> while compiling : "...no member
check_button..."
I tried something harder...
gtk_toggle_button_get_state(GTK_TOGGLE_BUTTON(GTK_CHECK_BUTTON(GTK_RADIO_BUTTON(my_radiobutton)->check_button).toggle_button));

                                -> while compiling : "...something not
an union or stucture..."

no reaction with gtk_toggle_button_toggled(my_radiobutton);
gtk_toggle_button_get/set_active doesn't seem to be what I need...

help meeeeeeee please! (too many hours with that so small pb!!!)






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