[anjuta] bgo#586148 – Fixing setting whitespace for the editor not working



commit 309b8cb682a500b1e4a69879e90e085d8f282e44
Author: Philip Van Hoof <philip codeminded be>
Date:   Mon Jun 22 00:09:41 2009 +0200

    bgo#586148 â?? Fixing setting whitespace for the editor not working

 libanjuta/anjuta-preferences.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/libanjuta/anjuta-preferences.c b/libanjuta/anjuta-preferences.c
index 911bb3a..0f675bd 100644
--- a/libanjuta/anjuta-preferences.c
+++ b/libanjuta/anjuta-preferences.c
@@ -231,6 +231,8 @@ anjuta_preferences_get_bool (AnjutaPreferences *pr, const gchar *key)
 			case GCONF_VALUE_BOOL:
 				ret_val = gconf_value_get_bool (value);
 				break;
+			case GCONF_VALUE_INT:
+				ret_val = (gboolean) gconf_value_get_int (value);
 			default:
 				g_warning ("Invalid gconf type for key: %s", key);
 		}
@@ -312,9 +314,11 @@ anjuta_preferences_get_bool_with_default (AnjutaPreferences *pr,
 	{
 		switch (value->type)
 		{
+			case GCONF_VALUE_INT:
+				ret_val = (gboolean) gconf_value_get_int (value);
+				break;
 			case GCONF_VALUE_BOOL:
 				ret_val = gconf_value_get_bool (value);
-				break;
 			default:
 				g_warning ("Invalid gconf type for key: %s", key);
 		}
@@ -519,6 +523,8 @@ anjuta_preferences_set_bool (AnjutaPreferences *pr, const gchar *key,
 		switch (gvalue->type)
 		{
 			case GCONF_VALUE_BOOL:
+				g_warning ("Invalid gconf type for key: %s", key);
+			case GCONF_VALUE_INT:
 				gconf_client_set_bool (pr->priv->gclient, build_key (key),
 									   value, NULL);
 				break;



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