[anjuta/gsettings-migration: 29/65] anjuta: Fixed preference names to match GSettings rules
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/gsettings-migration: 29/65] anjuta: Fixed preference names to match GSettings rules
- Date: Sun, 17 Oct 2010 09:35:12 +0000 (UTC)
commit 325c5f02755f56e44e793151486a3627d247f69d
Author: Johannes Schmid <jhs gnome org>
Date: Thu Sep 30 22:15:54 2010 +0200
anjuta: Fixed preference names to match GSettings rules
src/action-callbacks.c | 2 +-
src/anjuta-app.c | 12 ++++++------
src/anjuta.c | 6 +++---
src/preferences.ui | 14 +++++++-------
4 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/src/action-callbacks.c b/src/action-callbacks.c
index a052011..ecd7983 100644
--- a/src/action-callbacks.c
+++ b/src/action-callbacks.c
@@ -87,7 +87,7 @@ on_toolbar_view_toggled (GtkAction *action, AnjutaApp *app)
gtk_widget_hide (app->toolbar);
}
anjuta_preferences_set_bool (app->preferences,
- "anjuta.toolbar.visible",
+ "toolbar-visible",
status);
}
diff --git a/src/anjuta-app.c b/src/anjuta-app.c
index a43756f..627dd28 100644
--- a/src/anjuta-app.c
+++ b/src/anjuta-app.c
@@ -611,9 +611,9 @@ anjuta_app_instance_init (AnjutaApp *app)
g_object_add_weak_pointer (G_OBJECT (app->preferences),
(gpointer)&app->preferences);
- anjuta_preferences_notify_add (app->preferences, "anjuta.gdl.style",
+ anjuta_preferences_notify_add (app->preferences, "gdl-style",
on_gdl_style_changed, app);
- on_gdl_style_changed (app->preferences, "anjuta.gdl.style", app);
+ on_gdl_style_changed (app->preferences, "gdl-style", app);
/* Register actions */
anjuta_ui_add_action_group_entries (app->ui, "ActionGroupFile", _("File"),
@@ -654,17 +654,17 @@ anjuta_app_instance_init (AnjutaApp *app)
/* create toolbar */
app->toolbar = gtk_ui_manager_get_widget (GTK_UI_MANAGER (app->ui),
"/ToolbarMain");
- if (!anjuta_preferences_get_bool (app->preferences, "anjuta.toolbar.visible"))
+ if (!anjuta_preferences_get_bool (app->preferences, "toolbar-visible"))
gtk_widget_hide (app->toolbar);
gtk_box_pack_start (GTK_BOX (main_box), app->toolbar, FALSE, FALSE, 0);
action = gtk_ui_manager_get_action (GTK_UI_MANAGER (app->ui),
"/MenuMain/MenuView/Toolbar");
gtk_toggle_action_set_active (GTK_TOGGLE_ACTION(action),
anjuta_preferences_get_bool (app->preferences,
- "anjuta.toolbar.visible"));
- anjuta_preferences_notify_add (app->preferences, "anjuta.toolbar.style",
+ "toolbar-visible"));
+ anjuta_preferences_notify_add (app->preferences, "toolbar-style",
on_toolbar_style_changed, app);
- on_toolbar_style_changed (app->preferences, "anjuta.toolbar.style", app);
+ on_toolbar_style_changed (app->preferences, "toolbar-style", app);
/* Create widgets menu */
view_menu =
diff --git a/src/anjuta.c b/src/anjuta.c
index 0bb949e..1347f84 100644
--- a/src/anjuta.c
+++ b/src/anjuta.c
@@ -29,9 +29,9 @@
#include "anjuta.h"
-#define ANJUTA_REMEMBERED_PLUGINS "anjuta.remembered.plugins"
-#define ANJUTA_SESSION_SKIP_LAST "anjuta.session.skip.last"
-#define ANJUTA_SESSION_SKIP_LAST_FILES "anjuta.session.skip.last.files"
+#define ANJUTA_REMEMBERED_PLUGINS "remembered-plugins"
+#define ANJUTA_SESSION_SKIP_LAST "session-skip-last"
+#define ANJUTA_SESSION_SKIP_LAST_FILES "session-skip-last-files"
#define USER_SESSION_PATH_NEW (anjuta_util_get_user_cache_file_path ("session/", NULL))
#define DEFAULT_PROFILE "file://"PACKAGE_DATA_DIR"/profiles/default.profile"
diff --git a/src/preferences.ui b/src/preferences.ui
index 80b2a26..4209762 100644
--- a/src/preferences.ui
+++ b/src/preferences.ui
@@ -114,7 +114,7 @@
</packing>
</child>
<child>
- <object class="GtkEntry" id="preferences_entry:text::0:anjuta.user.email">
+ <object class="GtkEntry" id="preferences_entry:text::0:user-email">
<property name="visible">True</property>
<property name="can_focus">True</property>
</object>
@@ -127,7 +127,7 @@
</packing>
</child>
<child>
- <object class="GtkEntry" id="preferences_entry:text::0:anjuta.user.name">
+ <object class="GtkEntry" id="preferences_entry:text::0:user-name">
<property name="visible">True</property>
<property name="can_focus">True</property>
</object>
@@ -140,7 +140,7 @@
</packing>
</child>
<child>
- <object class="GtkFileChooserButton" id="preferences_folder:text:~:0:anjuta.project.directory">
+ <object class="GtkFileChooserButton" id="preferences_folder:text:~:0:project-directory">
<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="action">select-folder</property>
@@ -187,7 +187,7 @@
<property name="border_width">10</property>
<property name="spacing">5</property>
<child>
- <object class="GtkCheckButton" id="preferences_toggle:bool:0:0:anjuta.session.skip.last">
+ <object class="GtkCheckButton" id="preferences_toggle:bool:0:0:session-skip-last">
<property name="label" translatable="yes">Do not load last session on startup</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -202,7 +202,7 @@
</packing>
</child>
<child>
- <object class="GtkCheckButton" id="preferences_toggle:bool:0:0:anjuta.session.skip.last.files">
+ <object class="GtkCheckButton" id="preferences_toggle:bool:0:0:session-skip-last-files">
<property name="label" translatable="yes">Do not load last project and files on startup</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -255,7 +255,7 @@
<property name="column_spacing">5</property>
<property name="row_spacing">5</property>
<child>
- <object class="GtkComboBox" id="preferences_combo:text:Text,Icon,Both,Toolbar,Tabs:2:anjuta.gdl.style">
+ <object class="GtkComboBox" id="preferences_combo:text:Text,Icon,Both,Toolbar,Tabs:2:gdl-style">
<property name="visible">True</property>
<property name="model">model1</property>
<child>
@@ -272,7 +272,7 @@
</packing>
</child>
<child>
- <object class="GtkComboBox" id="preferences_combo:text:Default,Both,Horiz,Icons,Text:0:anjuta.toolbar.style">
+ <object class="GtkComboBox" id="preferences_combo:text:Default,Both,Horiz,Icons,Text:0:toolbar-style">
<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">model2</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]