diff src/win32/wspell.c @ 6425:26b739bc9f1a

[gaim-migrate @ 6933] Warnings and gaim_debugs committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Mon, 11 Aug 2003 18:54:38 +0000
parents 9657e243d001
children da36acb8442c
line wrap: on
line diff
--- a/src/win32/wspell.c	Mon Aug 11 18:43:04 2003 +0000
+++ b/src/win32/wspell.c	Mon Aug 11 18:54:38 2003 +0000
@@ -28,10 +28,9 @@
 #include <glib.h>
 #include <gtk/gtk.h>
 #include <gtkspell/gtkspell.h>
+#include "debug.h"
 #include "win32dep.h"
 
-extern void debug_printf(char * fmt, ...);
-
 /* GTKSPELL DUMMY FUNCS */
 GtkSpell* wgtkspell_new_attach(GtkTextView *view,
 			       const gchar *lang, 
@@ -83,11 +82,11 @@
 			    int mark = strlen(buffer);
 			    strcat(buffer, "\\aspell-15.dll");
 			    if(_access( buffer, 0 ) < 0)
-				    debug_printf("Couldn't find aspell-15.dll\n");
+				    gaim_debug(GAIM_DEBUG_WARNING, "wspell", "Couldn't find aspell-15.dll\n");
 			    else {
 				    char* tmp=NULL;
 				    buffer[mark] = '\0';
-				    debug_printf("Found Aspell in %s\n", buffer);
+				    gaim_debug(GAIM_DEBUG_INFO, "wspell", "Found Aspell in %s\n", buffer);
 				    /* Add path to Aspell dlls to PATH */
 				    tmp = g_malloc0(strlen(getenv("PATH")) + strlen(buffer) + 7);
 				    sprintf(tmp, "PATH=%s;%s", getenv("PATH"), buffer);
@@ -97,7 +96,7 @@
 			    }
 		    }
 		    else {
-			    debug_printf("Couldn't find path for Aspell\n");
+			    gaim_debug(GAIM_DEBUG_WARNING, "wspell", "Couldn't find path for Aspell\n");
 		    }
 		    RegCloseKey(hKey);
 	    }