fixed warning about radio buttons, grouped radio buttons together
authorArun Persaud <arun@nubati.net>
Fri, 31 Jul 2009 02:55:02 +0000 (19:55 -0700)
committerArun Persaud <arun@nubati.net>
Fri, 31 Jul 2009 02:55:02 +0000 (19:55 -0700)
gtk-interface.xml
xboard.c

index 282fb8b..dfbbda7 100644 (file)
                             <property name="label" translatable="yes">Machine Black</property>
                             <property name="use_underline">True</property>
                             <property name="draw_as_radio">True</property>
+                            <property name="group">menuMode.Machine White</property>
                           </object>
                         </child>
                         <child>
                             <property name="label" translatable="yes">Two Machines</property>
                             <property name="use_underline">True</property>
                             <property name="draw_as_radio">True</property>
+                            <property name="group">menuMode.Machine White</property>
                           </object>
                         </child>
                         <child>
                             <property name="label" translatable="yes">Analyze Mode</property>
                             <property name="use_underline">True</property>
                             <property name="draw_as_radio">True</property>
+                            <property name="group">menuMode.Machine White</property>
                           </object>
                         </child>
                         <child>
                             <property name="label" translatable="yes">Analyze File</property>
                             <property name="use_underline">True</property>
                             <property name="draw_as_radio">True</property>
+                            <property name="group">menuMode.Machine White</property>
                           </object>
                         </child>
                         <child>
                             <property name="label" translatable="yes">ICS Client</property>
                             <property name="use_underline">True</property>
                             <property name="draw_as_radio">True</property>
+                            <property name="group">menuMode.Machine White</property>
                           </object>
                         </child>
                         <child>
                             <property name="label" translatable="yes">Edit Game</property>
                             <property name="use_underline">True</property>
                             <property name="draw_as_radio">True</property>
+                            <property name="group">menuMode.Machine White</property>
                           </object>
                         </child>
                         <child>
                             <property name="label" translatable="yes">Edit Position</property>
                             <property name="use_underline">True</property>
                             <property name="draw_as_radio">True</property>
+                            <property name="group">menuMode.Machine White</property>
                           </object>
                         </child>
                         <child>
                             <property name="label" translatable="yes">Training</property>
                             <property name="use_underline">True</property>
                             <property name="draw_as_radio">True</property>
+                            <property name="group">menuMode.Machine White</property>
                           </object>
                         </child>
                         <child>
index 2deaff1..2fe17ed 100644 (file)
--- a/xboard.c
+++ b/xboard.c
@@ -5758,7 +5758,7 @@ void ModeHighlight()
     
     wname = ModeToWidgetName(oldmode);
     if(wname)
-      gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON (gtk_builder_get_object (builder, wname)),True);
+       gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (gtk_builder_get_object (builder, wname)),True);
     
     oldmode = gameMode;