[gedit] Generate the gedit settings enums automatically.



commit 1b004f6c904422b5dea3a147743e9ad623233884
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Jun 30 19:38:28 2010 +0200

    Generate the gedit settings enums automatically.

 data/Makefile.am                       |    2 ++
 data/org.gnome.gedit.gschema.xml.in.in |   17 ++---------------
 2 files changed, 4 insertions(+), 15 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index dba6569..8c2858c 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -18,6 +18,8 @@ pkgconfig_DATA = gedit.pc
 bugreportdir = $(libexecdir)/gedit
 bugreport_SCRIPTS = gedit-bugreport.sh
 
+gsettings_ENUM_NAMESPACE = org.gnome.gedit
+gsettings_ENUM_FILES = $(top_srcdir)/gedit/*.h
 gsettings_SCHEMAS = org.gnome.gedit.gschema.xml
 
 @INTLTOOL_XML_NOMERGE_RULE@
diff --git a/data/org.gnome.gedit.gschema.xml.in.in b/data/org.gnome.gedit.gschema.xml.in.in
index 596d0cf..8d8b8c8 100644
--- a/data/org.gnome.gedit.gschema.xml.in.in
+++ b/data/org.gnome.gedit.gschema.xml.in.in
@@ -6,19 +6,6 @@
     <value nick="word-char" value="3"/>
   </enum>
 
-  <enum id="org.gnome.gedit.ShowTabs">
-    <value nick="never" value="0"/>
-    <value nick="auto" value="1"/>
-    <value nick="always" value="2"/>
-  </enum>
-
-  <enum id="org.gnome.gedit.ToolbarSetting">
-    <value nick="system" value="0"/>
-    <value nick="icons" value="1"/>
-    <value nick="icons-and-text" value="2"/>
-    <value nick="icons-both-horiz" value="3"/>
-  </enum>
-
   <enum id="org.gnome.gedit.SmartHomeEnd">
     <value nick="disabled" value="0"/>
     <value nick="before" value="1"/>
@@ -155,12 +142,12 @@
       <_summary>Toolbar is Visible</_summary>
       <_description>Whether the toolbar should be visible in editing windows.</_description>
     </key>
-    <key name="toolbar-buttons-style" enum="org.gnome.gedit.ToolbarSetting">
+    <key name="toolbar-buttons-style" enum="org.gnome.gedit.GeditToolbarSetting">
       <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>
     </key>
-    <key name="notebook-show-tabs-mode" enum="org.gnome.gedit.ShowTabs">
+    <key name="notebook-show-tabs-mode" enum="org.gnome.gedit.GeditNotebookShowTabsModeType">
       <default>'always'</default>
       <_summary>Notebook Show Tabs Mode</_summary>
       <_description>Specifies when to show the notebook tabs. Use "never" to never show the tabs, "always" to always show the tabs, and "auto" to show the tabs only when there is more than one tab. 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]