changeset 5214:7ea282e1f615

[gaim-migrate @ 5584] The category type is now prepended on debug output to the terminal. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 26 Apr 2003 07:17:10 +0000
parents 1cf4eb75e3ee
children 49f0de976037
files src/gtkdebug.c
diffstat 1 files changed, 6 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkdebug.c	Sat Apr 26 07:15:59 2003 +0000
+++ b/src/gtkdebug.c	Sat Apr 26 07:17:10 2003 +0000
@@ -150,25 +150,14 @@
 		gtk_imhtml_append_text(GTK_IMHTML(debug_win->entry), s, -1, 0);
 
 		g_free(s);
-
-#if 0
-		GtkTextBuffer *buffer;
-		GtkTextMark *endmark;
-		GtkTextIter end;
-
-		buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(debug_win->entry));
-		endmark = gtk_text_buffer_get_mark(buffer, "end");
-
-		gtk_text_buffer_get_iter_at_mark(buffer, &end, endmark);
-		gtk_text_buffer_insert_with_tags(buffer, &end, s, -1);
-
-		gtk_text_view_scroll_mark_onscreen(GTK_TEXT_VIEW(debug_win->entry),
-										   endmark);
-#endif
 	}
 
-	if (opt_debug)
-		g_print("%s", arg_s);
+	if (opt_debug) {
+		if (category == NULL)
+			g_print("%s", arg_s);
+		else
+			g_print("%s: %s", arg_s);
+	}
 
 	g_free(arg_s);
 }