[gnome-builder] editor: fix tabs/spaces button actions



commit 1a1db246c07172a710f980c5d36de7801c0fdac8
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jan 15 16:39:29 2018 -0800

    editor: fix tabs/spaces button actions
    
    Now that libdazzle has support for enums via DzlPropertyGroup,
    we can set the enum nick for the value we care about. It is
    much easier for GtkToggleButton to deal with non-boolean values
    for button state.
    
    Fixes #334

 src/libide/editor/ide-editor-properties.ui | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/libide/editor/ide-editor-properties.ui b/src/libide/editor/ide-editor-properties.ui
index b38dc2ee1..2d807e908 100644
--- a/src/libide/editor/ide-editor-properties.ui
+++ b/src/libide/editor/ide-editor-properties.ui
@@ -153,9 +153,8 @@
                         <property name="label" translatable="yes">Spaces</property>
                         <property name="focus-on-click">false</property>
                         <property name="halign">fill</property>
-                        <property name="action-name">source-view.use-spaces</property>
-                        <property name="action-target">true</property>
-                        <property name="active" bind-source="tabs_button" bind-property="active" 
bind-flags="invert-boolean|bidirectional"/>
+                        <property name="action-name">file-settings.indent-style</property>
+                        <property name="action-target">'spaces'</property>
                       </object>
                     </child>
                     <child>
@@ -165,8 +164,8 @@
                         <property name="label" translatable="yes">Tabs</property>
                         <property name="focus-on-click">false</property>
                         <property name="halign">fill</property>
-                        <property name="action-name">source-view.use-spaces</property>
-                        <property name="action-target">false</property>
+                        <property name="action-name">file-settings.indent-style</property>
+                        <property name="action-target">'tabs'</property>
                       </object>
                     </child>
                   </object>


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