[gnome-text-editor] preferences: be more honest about settings discovery



commit 05f3157951afe7db1f4ff179276b8e653485b21e
Author: Christian Hergert <chergert redhat com>
Date:   Wed Dec 1 13:18:13 2021 -0800

    preferences: be more honest about settings discovery
    
    Using "Automatic Right Margin" is incredibly dubious as it really indicates
    if we will be automatically discovering settings across a number of
    features including:
    
     * Right Margin Position
     * Auto-indentation
     * Indentation width
     * Tab width
     * Tabs v. Spaces
     * Text wrapping
    
    Related #183

 src/editor-preferences-dialog.ui | 7 +++++++
 src/editor-window.ui             | 4 ----
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/editor-preferences-dialog.ui b/src/editor-preferences-dialog.ui
index d5da23f..cfba676 100644
--- a/src/editor-preferences-dialog.ui
+++ b/src/editor-preferences-dialog.ui
@@ -115,6 +115,13 @@
                 <property name="schema-key">restore-session</property>
               </object>
             </child>
+            <child>
+              <object class="EditorPreferencesSwitch" id="discover">
+                <property name="title" translatable="yes">Discover Document Settings</property>
+                <property name="subtitle" translatable="yes">Apply settings discovered using modelines, 
editorconfig, or sensible defaults</property>
+                <property name="schema-key">discover-settings</property>
+              </object>
+            </child>
           </object>
         </child>
       </object>
diff --git a/src/editor-window.ui b/src/editor-window.ui
index f59142d..95abc4e 100644
--- a/src/editor-window.ui
+++ b/src/editor-window.ui
@@ -297,10 +297,6 @@
         <attribute name="label" translatable="yes">T_ext Wrapping</attribute>
         <attribute name="action">settings.wrap-text</attribute>
       </item>
-      <item>
-        <attribute name="label" translatable="yes">_Automatic Margin Position</attribute>
-        <attribute name="action">settings.discover-settings</attribute>
-      </item>
       <item>
         <attribute name="label" translatable="yes">Chec_k Spelling</attribute>
         <attribute name="action">settings.spellcheck</attribute>


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