comparison 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
comparison
equal deleted inserted replaced
969:eb5a82d64ce5 970:9eb07b383df4
29 #include <sys/stat.h> 29 #include <sys/stat.h>
30 30
31 #include <unistd.h> 31 #include <unistd.h>
32 #include <stdio.h> 32 #include <stdio.h>
33 #include <stdlib.h> 33 #include <stdlib.h>
34 #include <stdarg.h>
34 #include <gtk/gtk.h> 35 #include <gtk/gtk.h>
35 #include "gaim.h" 36 #include "gaim.h"
36 #include "proxy.h" 37 #include "proxy.h"
37 #include "gnome_applet_mgr.h" 38 #include "gnome_applet_mgr.h"
38 #include "pixmaps/cancel.xpm" 39 #include "pixmaps/cancel.xpm"
1803 #ifdef DEBUG 1804 #ifdef DEBUG
1804 printf("%s\n", chars); 1805 printf("%s\n", chars);
1805 #endif 1806 #endif
1806 } 1807 }
1807 1808
1809 void debug_printf(char *fmt, ...)
1810 {
1811 va_list ap;
1812 gchar *s;
1813
1814 if (general_options & OPT_GEN_DEBUG && dw) {
1815 va_start(ap, fmt);
1816 s = g_strdup_vprintf(fmt, ap);
1817 va_end(ap);
1818
1819 gtk_text_insert(GTK_TEXT(dw->entry), NULL, NULL, NULL, s, -1);
1820 g_free(s);
1821 }
1822 }
1823
1808 static gint handle_delete(GtkWidget *w, GdkEvent *event, void *dummy) 1824 static gint handle_delete(GtkWidget *w, GdkEvent *event, void *dummy)
1809 { 1825 {
1810 save_prefs(); 1826 save_prefs();
1811 1827
1812 if (cp) 1828 if (cp)