Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
5641:5e9babc828c4 | 5642:1693a3027dc8 |
---|---|
103 | 103 |
104 width = gaim_prefs_get_int("/gaim/gtk/debug/width"); | 104 width = gaim_prefs_get_int("/gaim/gtk/debug/width"); |
105 height = gaim_prefs_get_int("/gaim/gtk/debug/height"); | 105 height = gaim_prefs_get_int("/gaim/gtk/debug/height"); |
106 | 106 |
107 GAIM_DIALOG(win->window); | 107 GAIM_DIALOG(win->window); |
108 gaim_debug(GAIM_DEBUG_INFO, "gtkdebug", "Setting dimensions to %d, %d\n", | |
109 width, height); | |
110 | |
108 gtk_window_set_default_size(GTK_WINDOW(win->window), width, height); | 111 gtk_window_set_default_size(GTK_WINDOW(win->window), width, height); |
109 gtk_window_set_role(GTK_WINDOW(win->window), "debug"); | 112 gtk_window_set_role(GTK_WINDOW(win->window), "debug"); |
110 gtk_window_set_title(GTK_WINDOW(win->window), _("Debug Window")); | 113 gtk_window_set_title(GTK_WINDOW(win->window), _("Debug Window")); |
111 | 114 |
112 g_signal_connect(G_OBJECT(win->window), "delete_event", | 115 g_signal_connect(G_OBJECT(win->window), "delete_event", |
191 } | 194 } |
192 | 195 |
193 void | 196 void |
194 gaim_gtk_debug_init(void) | 197 gaim_gtk_debug_init(void) |
195 { | 198 { |
196 /* Debug window preferences. */ | |
197 gaim_prefs_add_none("/gaim/gtk/debug"); | |
198 gaim_prefs_add_bool("/gaim/gtk/debug/enabled", FALSE); | |
199 gaim_prefs_add_bool("/gaim/gtk/debug/timestamps", FALSE); | |
200 gaim_prefs_add_bool("/gaim/gtk/debug/toolbar", TRUE); | |
201 gaim_prefs_add_int("/gaim/gtk/debug/width", 400); | |
202 gaim_prefs_add_int("/gaim/gtk/debug/height", 150); | |
203 | |
204 gaim_prefs_connect_callback("/gaim/gtk/debug/enabled", | 199 gaim_prefs_connect_callback("/gaim/gtk/debug/enabled", |
205 debug_enabled_cb, NULL); | 200 debug_enabled_cb, NULL); |
206 } | 201 } |
207 | 202 |
208 void | 203 void |