[anjuta/gsettings-migration: 9/65] language-support-cpp-java: Fixed preferences
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/gsettings-migration: 9/65] language-support-cpp-java: Fixed preferences
- Date: Sun, 17 Oct 2010 09:33:31 +0000 (UTC)
commit 798549b024994e30357dd55b128f9bc2c2611229
Author: Johannes Schmid <jhs gnome org>
Date: Tue Sep 28 21:19:49 2010 +0200
language-support-cpp-java: Fixed preferences
.../language-support-cpp-java/cpp-java-assist.c | 25 ++++++++------------
1 files changed, 10 insertions(+), 15 deletions(-)
---
diff --git a/plugins/language-support-cpp-java/cpp-java-assist.c b/plugins/language-support-cpp-java/cpp-java-assist.c
index bf07d69..68aa43a 100644
--- a/plugins/language-support-cpp-java/cpp-java-assist.c
+++ b/plugins/language-support-cpp-java/cpp-java-assist.c
@@ -1090,9 +1090,8 @@ cpp_java_assist_populate (IAnjutaProvider* self, IAnjutaIterable* cursor, GError
CppJavaAssist* assist = CPP_JAVA_ASSIST (self);
/* Check if we actually want autocompletion at all */
- if (!anjuta_preferences_get_bool_with_default (anjuta_preferences_default (),
- PREF_AUTOCOMPLETE_ENABLE,
- TRUE))
+ if (!anjuta_preferences_get_bool (anjuta_preferences_default (),
+ PREF_AUTOCOMPLETE_ENABLE))
{
cpp_java_assist_none (self, assist);
return;
@@ -1110,9 +1109,8 @@ cpp_java_assist_populate (IAnjutaProvider* self, IAnjutaIterable* cursor, GError
/* Check for calltip */
if (assist->priv->itip &&
- anjuta_preferences_get_bool_with_default (assist->priv->preferences,
- PREF_CALLTIP_ENABLE,
- TRUE))
+ anjuta_preferences_get_bool (assist->priv->preferences,
+ PREF_CALLTIP_ENABLE))
{
assist->priv->calltip_active = cpp_java_assist_calltip (assist);
@@ -1186,13 +1184,11 @@ cpp_java_assist_activate (IAnjutaProvider* self, IAnjutaIterable* iter, gpointer
if (prop_data->is_func)
{
add_space_after_func =
- anjuta_preferences_get_bool_with_default (assist->priv->preferences,
- PREF_AUTOCOMPLETE_SPACE_AFTER_FUNC,
- TRUE);
+ anjuta_preferences_get_bool (assist->priv->preferences,
+ PREF_AUTOCOMPLETE_SPACE_AFTER_FUNC);
add_brace_after_func =
- anjuta_preferences_get_bool_with_default (assist->priv->preferences,
- PREF_AUTOCOMPLETE_BRACE_AFTER_FUNC,
- TRUE);
+ anjuta_preferences_get_bool (assist->priv->preferences,
+ PREF_AUTOCOMPLETE_BRACE_AFTER_FUNC);
if (add_space_after_func)
g_string_append (assistance, " ");
@@ -1222,9 +1218,8 @@ cpp_java_assist_activate (IAnjutaProvider* self, IAnjutaIterable* iter, gpointer
{
/* Check for calltip */
if (assist->priv->itip &&
- anjuta_preferences_get_bool_with_default (assist->priv->preferences,
- PREF_CALLTIP_ENABLE,
- TRUE))
+ anjuta_preferences_get_bool (assist->priv->preferences,
+ PREF_CALLTIP_ENABLE))
assist->priv->calltip_active = cpp_java_assist_calltip (assist);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]