[anjuta] bgo#586148 – Case had to be the other way around



commit 39268610f5f512ae5af09f4eaabeb5424a3c6937
Author: Philip Van Hoof <philip codeminded be>
Date:   Mon Jun 22 00:18:25 2009 +0200

    bgo#586148 â?? Case had to be the other way around

 libanjuta/anjuta-preferences.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libanjuta/anjuta-preferences.c b/libanjuta/anjuta-preferences.c
index 0f675bd..c000016 100644
--- a/libanjuta/anjuta-preferences.c
+++ b/libanjuta/anjuta-preferences.c
@@ -314,11 +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;
+			case GCONF_VALUE_INT:
+				ret_val = (gboolean) gconf_value_get_int (value);
 			default:
 				g_warning ("Invalid gconf type for key: %s", key);
 		}



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