Commit 6433dcd1 authored by Claes Sjofors's avatar Claes Sjofors

Blockwindow: checkbuttons changed to radiobuttons

parent 84a2c173
...@@ -148,11 +148,17 @@ BlockGtk::BlockGtk( void *b_parent_ctx, ...@@ -148,11 +148,17 @@ BlockGtk::BlockGtk( void *b_parent_ctx,
CoWowGtk::SetWindowIcon( toplevel); CoWowGtk::SetWindowIcon( toplevel);
toggleA = gtk_check_button_new_with_label( "A Alarm"); GSList *bl_group = NULL;
toggleB = gtk_check_button_new_with_label( "B Alarm"); toggleA = gtk_radio_button_new_with_label( bl_group, "A Alarm");
toggleC = gtk_check_button_new_with_label( "C Alarm"); bl_group = gtk_radio_button_get_group( GTK_RADIO_BUTTON(toggleA));
toggleD = gtk_check_button_new_with_label( "D Alarm"); toggleB = gtk_radio_button_new_with_label( bl_group, "B Alarm");
toggleNo = gtk_check_button_new_with_label( "No Blocking"); bl_group = gtk_radio_button_get_group( GTK_RADIO_BUTTON(toggleB));
toggleC = gtk_radio_button_new_with_label( bl_group, "C Alarm");
bl_group = gtk_radio_button_get_group( GTK_RADIO_BUTTON(toggleC));
toggleD = gtk_radio_button_new_with_label( bl_group, "D Alarm");
bl_group = gtk_radio_button_get_group( GTK_RADIO_BUTTON(toggleD));
toggleNo = gtk_radio_button_new_with_label( bl_group, "No Blocking");
bl_group = gtk_radio_button_get_group( GTK_RADIO_BUTTON(toggleNo));
GtkWidget *toggle_vbox = gtk_vbox_new( FALSE, 0); GtkWidget *toggle_vbox = gtk_vbox_new( FALSE, 0);
gtk_box_pack_start( GTK_BOX(toggle_vbox), toggleA, FALSE, FALSE, 7); gtk_box_pack_start( GTK_BOX(toggle_vbox), toggleA, FALSE, FALSE, 7);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment