[gedit] Generate automatically the settings enum.



commit a8d85dcfaebac57f5d73d928db5184a53366a00a
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Thu Jul 1 12:44:18 2010 +0200

    Generate automatically the settings enum.

 plugins/time/Makefile.am                           |    2 ++
 .../time/org.gnome.gedit.time.gschema.xml.in.in    |    9 +--------
 2 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/plugins/time/Makefile.am b/plugins/time/Makefile.am
index 2f4eb8f..107c1ce 100644
--- a/plugins/time/Makefile.am
+++ b/plugins/time/Makefile.am
@@ -27,6 +27,8 @@ plugin_in_files = time.gedit-plugin.desktop.in
 
 plugin_DATA = $(plugin_in_files:.gedit-plugin.desktop.in=.gedit-plugin)
 
+gsettings_ENUM_NAMESPACE = org.gnome.gedit.plugins.time
+gsettings_ENUM_FILES = gedit-time-plugin.c
 gsettings_SCHEMAS = org.gnome.gedit.time.gschema.xml
 
 @INTLTOOL_XML_NOMERGE_RULE@
diff --git a/plugins/time/org.gnome.gedit.time.gschema.xml.in.in b/plugins/time/org.gnome.gedit.time.gschema.xml.in.in
index 913df5f..da0b2c0 100644
--- a/plugins/time/org.gnome.gedit.time.gschema.xml.in.in
+++ b/plugins/time/org.gnome.gedit.time.gschema.xml.in.in
@@ -1,13 +1,6 @@
 <schemalist>
-  <enum id="org.gnome.gedit.plugins.time.PromptType">
-    <value nick="prompt-selected-format" value="0"/>
-    <value nick="prompt-custom-format" value="1"/>
-    <value nick="use-selected-format" value="2"/>
-    <value nick="use-custom-format" value="3"/>
-  </enum>
-
   <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.gedit.plugins.time" path="/apps/gedit/plugins/time/">
-    <key name="prompt-type" enum="org.gnome.gedit.plugins.time.PromptType">
+    <key name="prompt-type" enum="org.gnome.gedit.plugins.time.GeditTimePluginPromptType">
       <default>'use-selected-format'</default>
       <_summary>Prompt Type</_summary>
       <_description>If the user should be prompted for a format or if the selected or custom format should be used.</_description>



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