diff src/gtkconv.c @ 5211:0241d6b6702d

[gaim-migrate @ 5581] Wrote a new debugging API, and of course core/ui split it. Debug statements can now have debug levels and categories, for future filtering of stuff, and color highlighting. It's nifty, m'kay? committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 26 Apr 2003 06:46:08 +0000
parents fefad67de2c7
children 1a53330dfd34
line wrap: on
line diff
--- a/src/gtkconv.c	Sat Apr 26 05:31:26 2003 +0000
+++ b/src/gtkconv.c	Sat Apr 26 06:46:08 2003 +0000
@@ -156,7 +156,8 @@
 		return;
 
 	if (stat(name, &st) != 0) {
-		debug_printf("Could not stat %s\n", name);
+		gaim_debug(GAIM_DEBUG_ERROR, "gtkconv",
+				   "Could not stat image %s\n", name);
 		return;
 	}
 
@@ -1521,8 +1522,8 @@
 	gtkwin = GAIM_GTK_WINDOW(win);
 
 	if (gtkwin->in_drag) {
-		debug_printf("Already in the middle of a window "
-					 "drag at tab_press_cb\n");
+		gaim_debug(GAIM_DEBUG_WARNING, "gtkconv",
+				   "Already in the middle of a window drag at tab_press_cb\n");
 		return TRUE;
 	}
 
@@ -4535,7 +4536,6 @@
 	struct gaim_gtk_conversation *gtkconv;
 	GtkSpell *spell;
 
-	debug_printf("gaim_gtkconv_toggle_spellchk\n");
 	for (cl = gaim_get_conversations(); cl != NULL; cl = cl->next) {
 		
 		conv = (struct gaim_conversation *)cl->data;
@@ -4614,7 +4614,9 @@
 	gint delay;
 
 	if (!g_list_find(gaim_get_ims(), conv)) {
-		debug_printf("I think this is a bug.\n");
+		gaim_debug(GAIM_DEBUG_WARNING, "gtkconv",
+				   "Conversation not found in redraw_icon. I think this "
+				   "is a bug.\n");
 		return FALSE;
 	}
 
@@ -4810,7 +4812,8 @@
 	}
 
 	if (err) {
-		debug_printf("Buddy icon error: %s\n", err->message);
+		gaim_debug(GAIM_DEBUG_ERROR, "gtkconv",
+				   "Buddy icon error: %s\n", err->message);
 		g_error_free(err);
 	}