[gnome-builder] GbEditorTweakWidget: use toggle buttons, centered



commit cc702329d0c2d6da8e71041ca773b72c1a22b935
Author: Christian Hergert <christian hergert me>
Date:   Wed Dec 17 06:00:45 2014 -0800

    GbEditorTweakWidget: use toggle buttons, centered

 src/resources/ui/gb-editor-tweak-widget.ui |   78 ++++++++++++++++-----------
 1 files changed, 46 insertions(+), 32 deletions(-)
---
diff --git a/src/resources/ui/gb-editor-tweak-widget.ui b/src/resources/ui/gb-editor-tweak-widget.ui
index 2c8640f..98b4966 100644
--- a/src/resources/ui/gb-editor-tweak-widget.ui
+++ b/src/resources/ui/gb-editor-tweak-widget.ui
@@ -132,39 +132,53 @@
             </child>
 -->
             <child>
-              <object class="GtkModelButton">
-                <property name="visible">true</property>
-                <property name="action_target">2</property>
-                <property name="text" translatable="yes">2</property>
-                <property name="role">radio</property>
-                <property name="halign">fill</property>
-                <property name="xalign">0.0</property>
-                <property name="action-name">editor-view.tab-width</property>
-                <property name="action-target">2</property>
-              </object>
-            </child>
-            <child>
-              <object class="GtkModelButton">
-                <property name="visible">true</property>
-                <property name="action_target">4</property>
-                <property name="text" translatable="yes">4</property>
-                <property name="role">radio</property>
-                <property name="halign">fill</property>
-                <property name="xalign">0.0</property>
-                <property name="action-name">editor-view.tab-width</property>
-                <property name="action-target">4</property>
-              </object>
-            </child>
-            <child>
-              <object class="GtkModelButton">
+              <object class="GtkBox">
                 <property name="visible">true</property>
-                <property name="action_target">8</property>
-                <property name="text" translatable="yes">8</property>
-                <property name="role">radio</property>
-                <property name="halign">fill</property>
-                <property name="xalign">0.0</property>
-                <property name="action-name">editor-view.tab-width</property>
-                <property name="action-target">8</property>
+                <property name="orientation">horizontal</property>
+                <property name="halign">center</property>
+                <style>
+                  <class name="linked"/>
+                </style>
+                <child>
+                  <object class="GtkModelButton">
+                    <property name="iconic">True</property>
+                    <property name="visible">true</property>
+                    <property name="text" translatable="yes">2</property>
+                    <property name="halign">fill</property>
+                    <property name="action-name">editor-view.tab-width</property>
+                    <property name="action-target">2</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GtkModelButton">
+                    <property name="iconic">True</property>
+                    <property name="visible">true</property>
+                    <property name="text" translatable="yes">3</property>
+                    <property name="halign">fill</property>
+                    <property name="action-name">editor-view.tab-width</property>
+                    <property name="action-target">3</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GtkModelButton">
+                    <property name="iconic">True</property>
+                    <property name="visible">true</property>
+                    <property name="text" translatable="yes">4</property>
+                    <property name="halign">fill</property>
+                    <property name="action-name">editor-view.tab-width</property>
+                    <property name="action-target">4</property>
+                  </object>
+                </child>
+                <child>
+                  <object class="GtkModelButton">
+                    <property name="iconic">True</property>
+                    <property name="visible">true</property>
+                    <property name="text" translatable="yes">8</property>
+                    <property name="halign">fill</property>
+                    <property name="action-name">editor-view.tab-width</property>
+                    <property name="action-target">8</property>
+                  </object>
+                </child>
               </object>
             </child>
           </object>


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