[gedit] Add value aliases



commit a9312f3b60659b0a19271408fb5d487ee8d865e3
Author: Tomas Bzatek <tbzatek redhat com>
Date:   Thu Aug 5 15:18:06 2010 +0200

    Add value aliases
    
    Useful for settings migration, a kind of value mapping.

 data/org.gnome.gedit.gschema.xml.in.in |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/data/org.gnome.gedit.gschema.xml.in.in b/data/org.gnome.gedit.gschema.xml.in.in
index 89e996d..629f377 100644
--- a/data/org.gnome.gedit.gschema.xml.in.in
+++ b/data/org.gnome.gedit.gschema.xml.in.in
@@ -66,6 +66,11 @@
       <_description>Maximum number of actions that gedit will be able to undo or redo. Use "-1" for unlimited number of actions.</_description>
     </key>
     <key name="wrap-mode" enum="org.gnome.gedit.WrapMode">
+      <aliases>
+        <alias value='GTK_WRAP_NONE' target='none'/>
+        <alias value='GTK_WRAP_WORD' target='word'/>
+        <alias value='GTK_WRAP_CHAR' target='char'/>
+      </aliases>
       <default>'word'</default>
       <_summary>Line Wrapping Mode</_summary>
       <_description>Specifies how to wrap long lines in the editing area. Use "none" for no wrapping, "word" for wrapping at word boundaries, and "char" for wrapping at individual character boundaries. Note that the values are case-sensitive, so make sure they appear exactly as mentioned here.</_description>
@@ -111,6 +116,12 @@
       <_description>Specifies the position of the right margin.</_description>
     </key>
     <key name="smart-home-end" enum="org.gnome.gedit.SmartHomeEnd">
+      <aliases>
+        <alias value='DISABLED' target='disabled'/>
+        <alias value='BEFORE' target='before'/>
+        <alias value='AFTER' target='after'/>
+        <alias value='ALWAYS' target='always'/>
+      </aliases>
       <default>'after'</default>
       <_summary>Smart Home End</_summary>
       <_description>Specifies how the cursor moves when the HOME and END keys are pressed. Use "disabled" to always move at the start/end of the line, "after" to move to the start/end of the line the first time the keys are pressed and to the start/end of the text ignoring whitespaces the second time the keys are pressed, "before" to move to the start/end of the text before moving to the start/end of the line and "always" to always move to the start/end of the text instead of the start/end of the line.</_description>
@@ -143,6 +154,12 @@
       <_description>Whether the toolbar should be visible in editing windows.</_description>
     </key>
     <key name="toolbar-buttons-style" enum="org.gnome.gedit.GeditToolbarSetting">
+      <aliases>
+        <alias value='GEDIT_TOOLBAR_SYSTEM' target='system'/>
+        <alias value='GEDIT_TOOLBAR_ICONS' target='icons'/>
+        <alias value='GEDIT_TOOLBAR_ICONS_AND_TEXT' target='icons-and-text'/>
+        <alias value='GEDIT_TOOLBAR_ICONS_BOTH_HORIZ' target='icons-both-horiz'/>
+      </aliases>
       <default>'@TOOLBAR_STYLE@'</default>
       <_summary>Toolbar Buttons Style</_summary>
       <_description>Style for the toolbar buttons. Possible values are "system" to use the system's default style, "icons" to display icons only, "icons-and-text" to display both icons and text, and "icons-both-horiz" to display prioritized text beside icons. Note that the values are case-sensitive, so make sure they appear exactly as mentioned here.</_description>
@@ -183,6 +200,11 @@
       <_description>Whether gedit should include a document header when printing documents.</_description>
     </key>
     <key name="print-wrap-mode" enum="org.gnome.gedit.WrapMode">
+      <aliases>
+        <alias value='GTK_WRAP_NONE' target='none'/>
+        <alias value='GTK_WRAP_WORD' target='word'/>
+        <alias value='GTK_WRAP_CHAR' target='char'/>
+      </aliases>
       <default>'word'</default>
       <_summary>Printing Line Wrapping Mode</_summary>
       <_description>Specifies how to wrap long lines for printing. Use "none" for no wrapping, "word" for wrapping at word boundaries, and "char" for wrapping at individual character boundaries. Note that the values are case-sensitive, so make sure they appear exactly as mentioned here.</_description>



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