[anjuta/gsettings-migration: 22/65] language-support-python: Fixed preference names to match with GSettings rules
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/gsettings-migration: 22/65] language-support-python: Fixed preference names to match with GSettings rules
- Date: Sun, 17 Oct 2010 09:34:37 +0000 (UTC)
commit 3a3c6958fbc0be649c098605b3b4f9d7b20a1726
Author: Johannes Schmid <jhs gnome org>
Date: Thu Sep 30 22:12:35 2010 +0200
language-support-python: Fixed preference names to match with GSettings rules
plugins/language-support-python/plugin.c | 18 +++++++++---------
.../python-plugin-properties.ui | 18 +++++++++---------
2 files changed, 18 insertions(+), 18 deletions(-)
---
diff --git a/plugins/language-support-python/plugin.c b/plugins/language-support-python/plugin.c
index d839c2d..9dc1d91 100644
--- a/plugins/language-support-python/plugin.c
+++ b/plugins/language-support-python/plugin.c
@@ -64,14 +64,14 @@
/* Preferences keys */
-#define PREF_INDENT_AUTOMATIC "language.python.indent.automatic"
-#define PREF_INDENT_ADAPTIVE "language.python.indent.adaptive"
-#define PREF_INDENT_TAB_INDENTS "language.python.indent.tab.indents"
-#define PREF_INDENT_STATEMENT_SIZE "language.python.indent.statement.size"
-#define PREF_INDENT_BRACE_SIZE "language.python.indent.brace.size"
+#define PREF_INDENT_AUTOMATIC "python-indent-automatic"
+#define PREF_INDENT_ADAPTIVE "python-indent-adaptive"
+#define PREF_INDENT_TAB_INDENTS "python-indent-tab-indents"
+#define PREF_INDENT_STATEMENT_SIZE "python-indent-statement-size"
+#define PREF_INDENT_BRACE_SIZE "python-indent-brace-size"
-#define PREF_NO_ROPE_WARNING "language.python.no_rope_warning"
-#define PREF_INTERPRETER_PATH "language.python.interpreter.path"
+#define PREF_NO_ROPE_WARNING "python-no-rope-warning"
+#define PREF_INTERPRETER_PATH "python-interpreter.path"
#define TAB_SIZE (ianjuta_editor_get_tabsize (editor, NULL))
@@ -939,8 +939,8 @@ on_check_finished (AnjutaLauncher* launcher,
static void
check_support (PythonPlugin *python_plugin)
{
- if (!anjuta_preferences_get_bool_with_default (anjuta_preferences_default (),
- PREF_NO_ROPE_WARNING, FALSE))
+ if (!anjuta_preferences_get_bool (anjuta_preferences_default (),
+ PREF_NO_ROPE_WARNING))
{
AnjutaLauncher* launcher = anjuta_launcher_new ();
gchar* python_path = anjuta_preferences_get (anjuta_preferences_default(),
diff --git a/plugins/language-support-python/python-plugin-properties.ui b/plugins/language-support-python/python-plugin-properties.ui
index e5e9ffe..14784ca 100755
--- a/plugins/language-support-python/python-plugin-properties.ui
+++ b/plugins/language-support-python/python-plugin-properties.ui
@@ -26,7 +26,7 @@
<property name="column_spacing">5</property>
<property name="row_spacing">5</property>
<child>
- <object class="GtkCheckButton" id="preferences_toggle:bool:1:1:language.python.indent.automatic">
+ <object class="GtkCheckButton" id="preferences_toggle:bool:1:1:python-indent-automatic">
<property name="label" translatable="yes">Enable smart indentation</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -39,7 +39,7 @@
</packing>
</child>
<child>
- <object class="GtkCheckButton" id="preferences_toggle:bool:1:1:language.python.indent.adaptive">
+ <object class="GtkCheckButton" id="preferences_toggle:bool:1:1:python-indent-adaptive">
<property name="label" translatable="yes">Enable adaptive indentation</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -80,7 +80,7 @@
<property name="column_spacing">5</property>
<property name="row_spacing">5</property>
<child>
- <object class="GtkSpinButton" id="preferences_spin:int:0:1:language.python.indent.brace.size">
+ <object class="GtkSpinButton" id="preferences_spin:int:0:1:python-indent-brace-size">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="climb_rate">1</property>
@@ -96,7 +96,7 @@
</packing>
</child>
<child>
- <object class="GtkSpinButton" id="preferences_spin:int:4:1:language.python.indent.statement.size">
+ <object class="GtkSpinButton" id="preferences_spin:int:4:1:python-indent-statement-size">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="climb_rate">1</property>
@@ -205,7 +205,7 @@
</packing>
</child>
<child>
- <object class="GtkCheckButton" id="preferences_toggle:bool:1:1:language.python.code.completion.enable">
+ <object class="GtkCheckButton" id="preferences_toggle:bool:1:1:python-completion-enable">
<property name="label" translatable="yes">Enable code completion</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -219,7 +219,7 @@
</packing>
</child>
<child>
- <object class="GtkCheckButton" id="preferences_toggle:bool:1:1:language.python.code.completion.space.after.func">
+ <object class="GtkCheckButton" id="preferences_toggle:bool:1:1:python-completion-func-space">
<property name="label" translatable="yes">Add a space after function call autocompletion</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -233,7 +233,7 @@
</packing>
</child>
<child>
- <object class="GtkCheckButton" id="preferences_toggle:bool:1:1:language.python.code.completion.brace.after.func">
+ <object class="GtkCheckButton" id="preferences_toggle:bool:1:1:python-completion-func-brace">
<property name="label" translatable="yes">Add '(' after function call autocompletion</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -283,7 +283,7 @@
<object class="GtkHBox" id="hbox1">
<property name="visible">True</property>
<child>
- <object class="GtkCheckButton" id="preferences_toggle:bool:1:1:language.python.code.calltip.enable">
+ <object class="GtkCheckButton" id="preferences_toggle:bool:1:1:python-calltip-enable">
<property name="label" translatable="yes">Show calltips</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
@@ -363,7 +363,7 @@
</packing>
</child>
<child>
- <object class="GtkEntry" id="preferences_entry:text:/usr/bin/python:1:language.python.interpreter.path">
+ <object class="GtkEntry" id="preferences_entry:text:/usr/bin/python:1:python-interpreter-path">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">●</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]