[anjuta/gsettings-migration: 8/31] language-support-python: fixed preferences



commit 083c9ceb3402429d8ceed10a6e8514df092dd182
Author: Johannes Schmid <jhs gnome org>
Date:   Tue Sep 28 21:12:02 2010 +0200

    language-support-python: fixed preferences

 plugins/language-support-python/python-assist.c |   20 ++++++++------------
 1 files changed, 8 insertions(+), 12 deletions(-)
---
diff --git a/plugins/language-support-python/python-assist.c b/plugins/language-support-python/python-assist.c
index d658b83..dcc5ac4 100644
--- a/plugins/language-support-python/python-assist.c
+++ b/plugins/language-support-python/python-assist.c
@@ -790,17 +790,15 @@ python_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))
 	{	
 		python_assist_calltip (assist);	
 	}
 	
 	/* 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))
 	{
 		python_assist_none (self, assist);
 		return;
@@ -886,13 +884,11 @@ python_assist_activate (IAnjutaProvider* self, IAnjutaIterable* iter, gpointer d
 	if (tag->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, " ");
 		



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