diff src/gtkdebug.c @ 5684:b61520e71679

[gaim-migrate @ 6104] sound is now really core/ui split. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 03 Jun 2003 03:33:20 +0000
parents 1693a3027dc8
children aa8dbb7e0a4d
line wrap: on
line diff
--- a/src/gtkdebug.c	Tue Jun 03 02:30:30 2003 +0000
+++ b/src/gtkdebug.c	Tue Jun 03 03:33:20 2003 +0000
@@ -196,8 +196,23 @@
 void
 gaim_gtk_debug_init(void)
 {
+	/* Debug window preferences. */
+	/*
+	 * NOTE: This must be set before prefs are loaded, and the callbacks
+	 *       set after they are loaded, since prefs sets the enabled
+	 *       preference here and that loads the window, which calls the
+	 *       configure event, which overrrides the width and height! :P
+	 */
+
+	gaim_prefs_add_none("/gaim/gtk/debug");
+	gaim_prefs_add_bool("/gaim/gtk/debug/enabled", FALSE);
+	gaim_prefs_add_bool("/gaim/gtk/debug/timestamps", FALSE);
+	gaim_prefs_add_bool("/gaim/gtk/debug/toolbar", TRUE);
+	gaim_prefs_add_int("/gaim/gtk/debug/width",  450);
+	gaim_prefs_add_int("/gaim/gtk/debug/height", 250);
+
 	gaim_prefs_connect_callback("/gaim/gtk/debug/enabled",
-								debug_enabled_cb, NULL);
+			debug_enabled_cb, NULL);
 }
 
 void