Mercurial > pidgin.yaz
comparison finch/gntdebug.c @ 25468:bf77cf06b082
propagate from branch 'im.pidgin.pidgin' (head e9234bfbd01e96e8cc032fe7d850d4108f40b82a)
to branch 'im.pidgin.pidgin.yaz' (head 9314d025b5c8c2c689ae540bf6f487ed12b44e7a)
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Thu, 26 Apr 2007 21:15:41 +0000 |
parents | 4999bbc52881 |
children | 30829e806dae |
comparison
equal
deleted
inserted
replaced
25467:be098f796b32 | 25468:bf77cf06b082 |
---|---|
34 #include "util.h" | 34 #include "util.h" |
35 | 35 |
36 #include <stdio.h> | 36 #include <stdio.h> |
37 #include <string.h> | 37 #include <string.h> |
38 | 38 |
39 #define PREF_ROOT "/purple/gnt/debug" | 39 #define PREF_ROOT "/finch/debug" |
40 | 40 |
41 static struct | 41 static struct |
42 { | 42 { |
43 GntWidget *window; | 43 GntWidget *window; |
44 GntWidget *tview; | 44 GntWidget *tview; |
133 | 133 |
134 static void | 134 static void |
135 toggle_timestamps(GntWidget *w, gpointer n) | 135 toggle_timestamps(GntWidget *w, gpointer n) |
136 { | 136 { |
137 debug.timestamps = !debug.timestamps; | 137 debug.timestamps = !debug.timestamps; |
138 purple_prefs_set_bool("/core/debug/timestamps", debug.timestamps); | 138 purple_prefs_set_bool("/purple/debug/timestamps", debug.timestamps); |
139 } | 139 } |
140 | 140 |
141 /* Xerox */ | 141 /* Xerox */ |
142 static void | 142 static void |
143 purple_glib_log_handler(const gchar *domain, GLogLevelFlags flags, | 143 purple_glib_log_handler(const gchar *domain, GLogLevelFlags flags, |
194 } | 194 } |
195 | 195 |
196 void finch_debug_window_show() | 196 void finch_debug_window_show() |
197 { | 197 { |
198 debug.paused = FALSE; | 198 debug.paused = FALSE; |
199 debug.timestamps = purple_prefs_get_bool("/core/debug/timestamps"); | 199 debug.timestamps = purple_prefs_get_bool("/purple/debug/timestamps"); |
200 if (debug.window == NULL) | 200 if (debug.window == NULL) |
201 { | 201 { |
202 GntWidget *wid, *box; | 202 GntWidget *wid, *box; |
203 debug.window = gnt_vbox_new(FALSE); | 203 debug.window = gnt_vbox_new(FALSE); |
204 gnt_box_set_toplevel(GNT_BOX(debug.window), TRUE); | 204 gnt_box_set_toplevel(GNT_BOX(debug.window), TRUE); |