[krb5-auth-dialog] Use g_warning instead of g_print on gconf errors



commit 6e0435e8b67c845f717f17c7403fb1edf797dfb9
Author: Guido Günther <agx sigxcpu org>
Date:   Sat Jun 5 14:51:50 2010 +0200

    Use g_warning instead of g_print on gconf errors

 src/ka-gconf-tools.c |   10 +++++-----
 src/ka-gconf.c       |    4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/ka-gconf-tools.c b/src/ka-gconf-tools.c
index 39cc50d..c7cc711 100644
--- a/src/ka-gconf-tools.c
+++ b/src/ka-gconf-tools.c
@@ -40,7 +40,7 @@ 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_warning ("%s", error->message);
 				g_clear_error (&error);
 		}
 		gconf_value_free (gc_value);
@@ -64,7 +64,7 @@ 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_warning ("%s", error->message);
 			g_clear_error (&error);
 		} else
 			success = TRUE;
@@ -92,7 +92,7 @@ ka_gconf_get_int (GConfClient* client,
 			*value = gconf_value_get_int (gc_value);
 			success = TRUE;
 		} else if (error) {
-				g_print ("%s", error->message);
+				g_warning("%s", error->message);
 				g_clear_error (&error);
 		}
 		gconf_value_free (gc_value);
@@ -119,7 +119,7 @@ ka_gconf_get_bool (GConfClient* client,
 			*value = gconf_value_get_bool (gc_value);
 			success = TRUE;
 		} else if (error) {
-				g_print ("%s", error->message);
+				g_warning ("%s", error->message);
 				g_clear_error (&error);
 		}
 		gconf_value_free (gc_value);
@@ -140,7 +140,7 @@ ka_gconf_set_bool (GConfClient* client,
 
 	if(!gconf_client_set_bool (client, key, value, &error)) {
 		if (error) {
-			g_print ("%s", error->message);
+			g_warning ("%s", error->message);
 			g_clear_error (&error);
 		}
 		return FALSE;
diff --git a/src/ka-gconf.c b/src/ka-gconf.c
index 282e0b5..4e3d1aa 100644
--- a/src/ka-gconf.c
+++ b/src/ka-gconf.c
@@ -202,9 +202,9 @@ ka_gconf_init (KaApplet* applet)
 	ka_gconf_set_tgt_renewable(client, applet);
 	ka_gconf_set_tgt_proxiable(client, applet);
 out:
-	if(error) {
+	if (error) {
 		client = NULL;
-		g_print ("%s", error->message);
+		g_warning ("%s", error->message);
 		g_clear_error (&error);
 	}
 	return client;



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