From daedd98264fd9aa755f3122d46ce27f93e08cfca Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Sat, 19 Jun 2010 15:27:57 +0200 Subject: Imported Upstream version 0.16~rc2 --- src/ka-gconf-tools.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/ka-gconf-tools.c') diff --git a/src/ka-gconf-tools.c b/src/ka-gconf-tools.c index 60fd567..c7cc711 100644 --- a/src/ka-gconf-tools.c +++ b/src/ka-gconf-tools.c @@ -40,8 +40,8 @@ ka_gconf_get_string (GConfClient* client, *value = g_strdup (gconf_value_get_string (gc_value)); success = TRUE; } else if (error) { - g_print ("%s", error->message); - g_error_free (error); + g_warning ("%s", error->message); + g_clear_error (&error); } gconf_value_free (gc_value); } @@ -64,8 +64,8 @@ ka_gconf_get_string_list (GConfClient* client, if ((*list = gconf_client_get_list (client, key, GCONF_VALUE_STRING, &error))) { if (error) { - g_print ("%s", error->message); - g_error_free (error); + g_warning ("%s", error->message); + g_clear_error (&error); } else success = TRUE; } @@ -92,8 +92,8 @@ ka_gconf_get_int (GConfClient* client, *value = gconf_value_get_int (gc_value); success = TRUE; } else if (error) { - g_print ("%s", error->message); - g_error_free (error); + g_warning("%s", error->message); + g_clear_error (&error); } gconf_value_free (gc_value); } @@ -119,8 +119,8 @@ ka_gconf_get_bool (GConfClient* client, *value = gconf_value_get_bool (gc_value); success = TRUE; } else if (error) { - g_print ("%s", error->message); - g_error_free (error); + g_warning ("%s", error->message); + g_clear_error (&error); } gconf_value_free (gc_value); } @@ -140,8 +140,8 @@ ka_gconf_set_bool (GConfClient* client, if(!gconf_client_set_bool (client, key, value, &error)) { if (error) { - g_print ("%s", error->message); - g_error_free (error); + g_warning ("%s", error->message); + g_clear_error (&error); } return FALSE; } -- cgit