diff src/prefs.c @ 970:9eb07b383df4

[gaim-migrate @ 980] Bleat. committer: Tailor Script <tailor@pidgin.im>
author Rob Flynn <gaim@robflynn.com>
date Wed, 11 Oct 2000 00:31:15 +0000
parents 17ff662183b2
children ca8f1d02630a
line wrap: on
line diff
--- a/src/prefs.c	Tue Oct 10 20:23:45 2000 +0000
+++ b/src/prefs.c	Wed Oct 11 00:31:15 2000 +0000
@@ -31,6 +31,7 @@
 #include <unistd.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdarg.h>
 #include <gtk/gtk.h>
 #include "gaim.h"
 #include "proxy.h"
@@ -1805,6 +1806,21 @@
 #endif
 }
 
+void debug_printf(char *fmt, ...)
+{
+	va_list ap;
+	gchar *s;
+
+	if (general_options & OPT_GEN_DEBUG && dw) {
+		va_start(ap, fmt);
+		s = g_strdup_vprintf(fmt, ap);
+		va_end(ap);
+
+		gtk_text_insert(GTK_TEXT(dw->entry), NULL, NULL, NULL, s, -1);
+		g_free(s);
+	}
+}
+
 static gint handle_delete(GtkWidget *w, GdkEvent *event, void *dummy)
 {
 	save_prefs();