radio button - GtkRadioButton set active and deactive -


I have 4 gtkradiobuttons in C / gtk + application. But they are all active

My code :

  radio_button1 = gtk_radio_button_new_with_label (radio_list, "radio1"); Radio_button2 = gtk_radio_button_new_with_label (radio_list, "radio2"); Radio_button3 = gtk_radio_button_new_with_label (radio_list, "radio3"); Radio_button4 = gtk_radio_button_new_with_label (radio_list, "radio4");  

I have read man but could not find the solution, how can it be active only one radio button at one go

thanks

< P>

From:

  Unreal create_radio_buttons (zero) {GtkWidget * window, * Radio 1, * Radio 2, * Box, * Entry; Window = gtk_window_new (GTK_WINDOW_TOPLEVEL); Box = gtk_vbox_new (TRUE, 2); / * Create a radio button with a GtkEntry widget * / radio1 = gtk_radio_button_new (NULL); Enter = gtk_entry_new (); Gtk_container_add (GTK_CONTAINER (radio 1), entry); Create a radio button with the / * label * / radio2 = gtk_radio_button_new_with_label_from_widget (GTK_RADIO_BUTTON (Radio 1), "I am the second radio button."); / * Pack them in a box, then show all widgets * / gtk_box_pack_start (GTK_BOX (box), radio 1, truth, truth, 2); Gtk_box_pack_start (GTK_BOX (box), radio 2, TRUE, TRUE, 2); Gtk_container_add (GTK_CONTAINER (window), box); Gtk_widget_show_all (window); Return; }  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -