Mercurial > pidgin.yaz
diff src/gtkprefs.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 | c6fb44711ab2 |
children | 18f7a2abc3fc |
line wrap: on
line diff
--- a/src/gtkprefs.c Sun Jun 01 20:27:35 2003 +0000 +++ b/src/gtkprefs.c Sun Jun 01 21:18:48 2003 +0000 @@ -2782,6 +2782,20 @@ gaim_prefs_add_int("/gaim/gtk/conversations/im/default_height", 160); gaim_prefs_add_int("/gaim/gtk/conversations/im/entry_height", 50); + /* 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); + /* Idle */ gaim_prefs_add_none("/gaim/gtk/idle"); gaim_prefs_add_string("/gaim/gtk/idle/reporting_method", "system");