[baobab/wip/vala: 41/53] Use Radio buttons for the chart selection



commit cee5ae019493e5d5391c448a2377f6ddaa527573
Author: Paolo Borelli <pborelli gnome org>
Date:   Sat Feb 4 12:03:45 2012 +0100

    Use Radio buttons for the chart selection
    
    This makes sure one is always selected.

 data/baobab-main-window.ui |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/data/baobab-main-window.ui b/data/baobab-main-window.ui
index 4e42cb6..9c06782 100644
--- a/data/baobab-main-window.ui
+++ b/data/baobab-main-window.ui
@@ -307,7 +307,7 @@
                   <class name="linked"/>
                 </style>
                 <child>
-                  <object class="GtkToggleButton" id="rings-button">
+                  <object class="GtkRadioButton" id="rings-button">
                     <property name="label" translatable="yes">Rings</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
@@ -326,7 +326,7 @@
                   </packing>
                 </child>
                 <child>
-                  <object class="GtkToggleButton" id="treemap-button">
+                  <object class="GtkRadioButton" id="treemap-button">
                     <property name="label" translatable="yes">Treemap</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
@@ -335,6 +335,7 @@
                     <property name="xalign">0.5</property>
                     <property name="active">True</property>
                     <property name="draw_indicator">False</property>
+                    <property name="group">rings-button</property>
                     <property name="action_name">win.active-chart</property>
                     <property name="action_target">'treemap'</property>
                   </object>



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