changeset 1477:e217c7743905

Make FSM button radio
author Thinker K.F. Li <thinker@codemud.net>
date Sun, 24 Apr 2011 21:09:37 +0800
parents eddec4543761
children 6fe773e62b2a
files pyink/FSM_window.glade
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/FSM_window.glade	Sun Apr 24 18:52:55 2011 +0800
+++ b/pyink/FSM_window.glade	Sun Apr 24 21:09:37 2011 +0800
@@ -124,13 +124,12 @@
                 <property name="icon_size">1</property>
                 <property name="icon_size_set">True</property>
                 <child>
-                  <object class="GtkToggleToolButton" id="add_state">
+                  <object class="GtkRadioToolButton" id="add_state">
                     <property name="visible">True</property>
                     <property name="tooltip_text" translatable="yes">Add state</property>
                     <property name="label" translatable="yes">Add State</property>
                     <property name="use_underline">True</property>
                     <property name="stock_id">gtk-add</property>
-                    <signal name="toggled" handler="on_add_state_toggled"/>
                   </object>
                   <packing>
                     <property name="expand">False</property>
@@ -138,13 +137,13 @@
                   </packing>
                 </child>
                 <child>
-                  <object class="GtkToggleToolButton" id="move_state">
+                  <object class="GtkRadioToolButton" id="move_state">
                     <property name="visible">True</property>
                     <property name="tooltip_text" translatable="yes">Move or select a state</property>
                     <property name="label" translatable="yes">select &amp; move</property>
                     <property name="use_underline">True</property>
                     <property name="icon_name">widget-gtk-alignment</property>
-                    <signal name="toggled" handler="on_move_state_toggled"/>
+                    <property name="group">add_state</property>
                   </object>
                   <packing>
                     <property name="expand">False</property>