radio buttons



Hi 
I'm using GTK 1.2 (have to) and I have a problem with using radio buttons.
I have 3 and I can switch between the 1st and the 3rd ones, but as soon as I 
click on the 2nd it remains clicked.
Here is a snippet of my code :

      rbutStyle = gtk_radio_button_new_with_label (NULL, "Points");
        gtk_widget_show (rbutStyle);
        gtk_box_pack_start (GTK_BOX (vbox8), rbutStyle, FALSE, FALSE, 0);
        
        rbutStyle_group = gtk_radio_button_group ( rbutStyle );

        radiobutton5 = gtk_radio_button_new_with_label (rbutStyle_group, 
"WireFrame");
        gtk_widget_show (radiobutton5);
        gtk_box_pack_start (GTK_BOX (vbox8), radiobutton5, FALSE, FALSE, 0);
        
        radiobutton6 = gtk_radio_button_new_with_label (rbutStyle_group, 
"Polygons");
        gtk_widget_show (radiobutton6);
        gtk_box_pack_start (GTK_BOX (vbox8), radiobutton6, FALSE, FALSE, 0);
        
        gtk_toggle_button_set_state ( rbutStyle, TRUE );
        gtk_toggle_button_set_state ( radiobutton5, FALSE );
        gtk_toggle_button_set_state ( radiobutton6, FALSE );


------------------------------------------

Faites un voeu et puis Voila ! www.voila.fr 





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