console/gntdebug.c

changeset 14187
881ec8710386
parent 14121
3d8804b82150
child 14336
f6d0cb054557
--- a/console/gntdebug.c	Tue Aug 15 04:05:27 2006 +0000
+++ b/console/gntdebug.c	Tue Aug 15 04:07:38 2006 +0000
@@ -80,6 +80,12 @@
 	debug.window = debug.tview = NULL;
 }
 
+static void
+print_stderr(const char *string)
+{
+	g_printerr("%s", string);
+}
+
 void gg_debug_window_show()
 {
 	if (debug.window == NULL)
@@ -102,6 +108,7 @@
 
 void gg_debug_init()
 {
+	g_set_print_handler(print_stderr);   /* Redirect the debug messages to stderr */
 	if (gaim_debug_is_enabled())
 		gg_debug_window_show();
 }

mercurial