diff options
Diffstat (limited to 'src/ka-gconf-tools.c')
-rw-r--r-- | src/ka-gconf-tools.c | 20 |
1 files changed, 10 insertions, 10 deletions
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; } |