[anjuta/gsettings-migration: 17/31] document-manager: Fixed preference names to match with GSettings rules



commit d95b54d342a730726a72410960b1f387938d1a1f
Author: Johannes Schmid <jhs gnome org>
Date:   Thu Sep 30 22:10:48 2010 +0200

    document-manager: Fixed preference names to match with GSettings rules

 plugins/document-manager/action-callbacks.c        |   14 +++++-----
 plugins/document-manager/anjuta-docman.c           |    8 +++---
 .../document-manager/anjuta-document-manager.ui    |   14 +++++-----
 plugins/document-manager/plugin.c                  |   28 ++++++++++----------
 4 files changed, 32 insertions(+), 32 deletions(-)
---
diff --git a/plugins/document-manager/action-callbacks.c b/plugins/document-manager/action-callbacks.c
index 501b5ff..77c7e34 100644
--- a/plugins/document-manager/action-callbacks.c
+++ b/plugins/document-manager/action-callbacks.c
@@ -733,13 +733,13 @@ on_goto_block_end1_activate (GtkAction *action, gpointer user_data)
 		ianjuta_editor_goto_end_block (IANJUTA_EDITOR_GOTO (doc), NULL);
 }
 
-#define VIEW_LINENUMBERS_MARGIN    "margin.linenumber.visible"
-#define VIEW_MARKER_MARGIN         "margin.marker.visible"
-#define VIEW_FOLD_MARGIN           "margin.fold.visible"
-#define VIEW_INDENTATION_GUIDES    "view.indentation.guides"
-#define VIEW_WHITE_SPACES          "view.whitespace"
-#define VIEW_EOL                   "view.eol"
-#define VIEW_LINE_WRAP             "view.line.wrap"
+#define VIEW_LINENUMBERS_MARGIN    "docman-linenumber-visible"
+#define VIEW_MARKER_MARGIN         "docman-marker-visible"
+#define VIEW_FOLD_MARGIN           "docman-fold-visible"
+#define VIEW_INDENTATION_GUIDES    "docman-indentation-guides"
+#define VIEW_WHITE_SPACES          "docman-whitespace"
+#define VIEW_EOL                   "docman-eol"
+#define VIEW_LINE_WRAP             "docman-line-wrap"
 
 void
 on_editor_linenos1_activate (GtkAction *action, gpointer user_data)
diff --git a/plugins/document-manager/anjuta-docman.c b/plugins/document-manager/anjuta-docman.c
index 68961c4..7a24564 100644
--- a/plugins/document-manager/anjuta-docman.c
+++ b/plugins/document-manager/anjuta-docman.c
@@ -48,10 +48,10 @@ enum
 };
 
 /* Preference keys */
-#define EDITOR_TABS_POS            "editor.tabs.pos"
-#define EDITOR_TABS_HIDE           "editor.tabs.hide"
-#define EDITOR_TABS_ORDERING       "editor.tabs.ordering"
-#define EDITOR_TABS_RECENT_FIRST   "editor.tabs.recent.first"
+#define EDITOR_TABS_POS            "docman-tabs-pos"
+#define EDITOR_TABS_HIDE           "docman-tabs-hide"
+#define EDITOR_TABS_ORDERING       "docman-tabs-ordering"
+#define EDITOR_TABS_RECENT_FIRST   "docman-tabs-recent-first"
 
 typedef struct _AnjutaDocmanPage AnjutaDocmanPage;
 
diff --git a/plugins/document-manager/anjuta-document-manager.ui b/plugins/document-manager/anjuta-document-manager.ui
index 0c5fcc8..40ad9c5 100644
--- a/plugins/document-manager/anjuta-document-manager.ui
+++ b/plugins/document-manager/anjuta-document-manager.ui
@@ -57,7 +57,7 @@
                     <property name="border_width">5</property>
                     <property name="spacing">5</property>
                     <child>
-                      <object class="GtkCheckButton" id="preferences_toggle:bool:1:0:save.automatic">
+                      <object class="GtkCheckButton" id="preferences_toggle:bool:1:0:docman-automatic-save">
                         <property name="label" translatable="yes">Enable files autosave</property>
                         <property name="visible">True</property>
                         <property name="can_focus">True</property>
@@ -106,7 +106,7 @@
                           </packing>
                         </child>
                         <child>
-                          <object class="GtkSpinButton" id="preferences_spin:int:10:0:autosave.timer">
+                          <object class="GtkSpinButton" id="preferences_spin:int:10:0:docman-autosave-timer">
                             <property name="visible">True</property>
                             <property name="can_focus">True</property>
                             <property name="adjustment">adjustment1</property>
@@ -119,7 +119,7 @@
                           </packing>
                         </child>
                         <child>
-                          <object class="GtkSpinButton" id="preferences_spin:int:10:0:save.session.timer">
+                          <object class="GtkSpinButton" id="preferences_spin:int:10:0:docman-save-session-timer">
                             <property name="can_focus">True</property>
                             <property name="adjustment">adjustment2</property>
                             <property name="climb_rate">1</property>
@@ -201,7 +201,7 @@
                       </packing>
                     </child>
                     <child>
-                      <object class="GtkRadioButton" id="preferences_toggle:bool:0:0:editor.tabs.recent.first">
+                      <object class="GtkRadioButton" id="preferences_toggle:bool:0:0:docman-tabs-recent-first">
                         <property name="label" translatable="yes">Sorted by most recent use</property>
                         <property name="visible">True</property>
                         <property name="can_focus">True</property>
@@ -217,7 +217,7 @@
                       </packing>
                     </child>
                     <child>
-                      <object class="GtkRadioButton" id="preferences_toggle:bool:0:0:editor.tabs.ordering">
+                      <object class="GtkRadioButton" id="preferences_toggle:bool:0:0:docman-tabs-ordering">
                         <property name="label" translatable="yes">Sorted in alphabetical order</property>
                         <property name="visible">True</property>
                         <property name="can_focus">True</property>
@@ -233,7 +233,7 @@
                       </packing>
                     </child>
                     <child>
-                      <object class="GtkRadioButton" id="preferences_toggle:bool:0:0:editor.tabs.hide">
+                      <object class="GtkRadioButton" id="preferences_toggle:bool:0:0:docman-tabs-hide">
                         <property name="label" translatable="yes">Do not show tabs</property>
                         <property name="visible">True</property>
                         <property name="can_focus">True</property>
@@ -265,7 +265,7 @@
                           </packing>
                         </child>
                         <child>
-                          <object class="GtkComboBox" id="preferences_combo:text:Top,Bottom,Left,Right:0:editor.tabs.pos">
+                          <object class="GtkComboBox" id="preferences_combo:text:Top,Bottom,Left,Right:0:docman-tabs-pos">
                             <property name="visible">True</property>
                             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
                             <property name="model">model1</property>
diff --git a/plugins/document-manager/plugin.c b/plugins/document-manager/plugin.c
index 8e0438c..cdc5b42 100644
--- a/plugins/document-manager/plugin.c
+++ b/plugins/document-manager/plugin.c
@@ -427,13 +427,13 @@ static struct ActionToggleGroupInfo action_toggle_groups[] = {
 // void pref_set_style_combo(DocmanPlugin *plugin);
 
 
-#define VIEW_LINENUMBERS_MARGIN    "margin.linenumber.visible"
-#define VIEW_MARKER_MARGIN         "margin.marker.visible"
-#define VIEW_FOLD_MARGIN           "margin.fold.visible"
-#define VIEW_INDENTATION_GUIDES    "view.indentation.guides"
-#define VIEW_WHITE_SPACES          "view.whitespace"
-#define VIEW_EOL                   "view.eol"
-#define VIEW_LINE_WRAP             "view.line.wrap"
+#define VIEW_LINENUMBERS_MARGIN    "docman-linenumber-visible"
+#define VIEW_MARKER_MARGIN         "docman-marker-visible"
+#define VIEW_FOLD_MARGIN           "docman-fold-visible"
+#define VIEW_INDENTATION_GUIDES    "docman-indentation-guides"
+#define VIEW_WHITE_SPACES          "docman-whitespace"
+#define VIEW_EOL                   "docman-eol"
+#define VIEW_LINE_WRAP             "docman-line-wrap"
 
 #define MAX_TITLE_LENGTH 80
 
@@ -906,7 +906,7 @@ register_stock_icons (AnjutaPlugin *plugin)
 	END_REGISTER_ICON;
 }
 
-#define TEXT_ZOOM_FACTOR           "text.zoom.factor"
+#define TEXT_ZOOM_FACTOR           "text_zoom_factor"
 
 static void
 update_status (DocmanPlugin *plugin, IAnjutaEditor *te)
@@ -1327,12 +1327,12 @@ on_window_key_press_event (AnjutaShell *shell,
 	return TRUE;
 }
 
-#define EDITOR_TABS_RECENT_FIRST   "editor.tabs.recent.first"
-#define EDITOR_TABS_POS            "editor.tabs.pos"
-#define EDITOR_TABS_HIDE           "editor.tabs.hide"
-#define EDITOR_TABS_ORDERING       "editor.tabs.ordering"
-#define AUTOSAVE_TIMER             "autosave.timer"
-#define SAVE_AUTOMATIC             "save.automatic"
+#define EDITOR_TABS_RECENT_FIRST   "docman-tabs-recent-first"
+#define EDITOR_TABS_POS            "docman-tabs-pos"
+#define EDITOR_TABS_HIDE           "docman-tabs-hide"
+#define EDITOR_TABS_ORDERING       "docman-tabs-ordering"
+#define AUTOSAVE_TIMER             "docman-autosave-timer"
+#define SAVE_AUTOMATIC             "docman-automatic-save"
 
 static gboolean
 on_window_key_release_event (AnjutaShell *shell,



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