Mercurial > pidgin
diff src/gtkdebug.c @ 5642:1693a3027dc8
[gaim-migrate @ 6056]
Moved the add prefs for the GTK debug window back into gtkprefs.c. This was
causing a wonderful problem of debug prefs getting overwritten, so this is
unfortunately a special case. Aww, my prefs init :(
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 01 Jun 2003 21:18:48 +0000 |
parents | 11233ca9f533 |
children | b61520e71679 |
line wrap: on
line diff
--- a/src/gtkdebug.c Sun Jun 01 20:27:35 2003 +0000 +++ b/src/gtkdebug.c Sun Jun 01 21:18:48 2003 +0000 @@ -105,6 +105,9 @@ height = gaim_prefs_get_int("/gaim/gtk/debug/height"); GAIM_DIALOG(win->window); + gaim_debug(GAIM_DEBUG_INFO, "gtkdebug", "Setting dimensions to %d, %d\n", + width, height); + gtk_window_set_default_size(GTK_WINDOW(win->window), width, height); gtk_window_set_role(GTK_WINDOW(win->window), "debug"); gtk_window_set_title(GTK_WINDOW(win->window), _("Debug Window")); @@ -193,14 +196,6 @@ void gaim_gtk_debug_init(void) { - /* Debug window preferences. */ - 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", 400); - gaim_prefs_add_int("/gaim/gtk/debug/height", 150); - gaim_prefs_connect_callback("/gaim/gtk/debug/enabled", debug_enabled_cb, NULL); }