diff finch/libgnt/gntutils.c @ 24558:e2e57d3c0578

Use glib log functions to show error messages.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 28 Nov 2008 06:29:37 +0000
parents 44b4e8bd759b
children 8981df90b64c
line wrap: on
line diff
--- a/finch/libgnt/gntutils.c	Fri Nov 28 02:58:00 2008 +0000
+++ b/finch/libgnt/gntutils.c	Fri Nov 28 06:29:37 2008 +0000
@@ -20,6 +20,10 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
  */
 
+#include "gntinternal.h"
+#undef GNT_LOG_DOMAIN
+#define GNT_LOG_DOMAIN "Utils"
+
 #include "gntbutton.h"
 #include "gntcheckbox.h"
 #include "gntcombobox.h"
@@ -306,7 +310,7 @@
 	xmlFree(content);
 
 	if (widget == NULL) {
-		g_printerr("Invalid widget name %s\n", name);
+		gnt_warning("Invalid widget name %s", name);
 		return NULL;
 	}