Mercurial > pidgin.yaz
comparison src/debug.c @ 11256:bb0d7b719af2
[gaim-migrate @ 13430]
I give you regex filtering in the debug window.
We keep a buffer of all the text, so when unpausing all the messages that were output when paused will be displayed, as well as when you change the filter.
This _should_ be alright on systems that don't have regex.h but I haven't gotten anyone to test it recently, if it's busted, just #ifdef HAVE_REGEX_H it.
committer: Tailor Script <tailor@pidgin.im>
author | Gary Kramlich <grim@reaperworld.com> |
---|---|
date | Sat, 13 Aug 2005 22:09:34 +0000 |
parents | 50224ac8184d |
children | 921f64947cad |
comparison
equal
deleted
inserted
replaced
11255:1b1d63602d77 | 11256:bb0d7b719af2 |
---|---|
156 gaim_debug_vargs(GAIM_DEBUG_FATAL, category, format, args); | 156 gaim_debug_vargs(GAIM_DEBUG_FATAL, category, format, args); |
157 va_end(args); | 157 va_end(args); |
158 } | 158 } |
159 | 159 |
160 void | 160 void |
161 gaim_debug_register_category(const char *category) | |
162 { | |
163 GaimDebugUiOps *ops; | |
164 | |
165 g_return_if_fail(category != NULL); | |
166 | |
167 ops = gaim_debug_get_ui_ops(); | |
168 | |
169 if (ops != NULL && ops->register_category != NULL) | |
170 ops->register_category(category); | |
171 } | |
172 | |
173 void | |
174 gaim_debug_unregister_category(const char *category) | |
175 { | |
176 GaimDebugUiOps *ops; | |
177 | |
178 g_return_if_fail(category != NULL); | |
179 | |
180 ops = gaim_debug_get_ui_ops(); | |
181 | |
182 if (ops != NULL && ops->unregister_category != NULL) | |
183 ops->unregister_category(category); | |
184 } | |
185 | |
186 void | |
187 gaim_debug_set_enabled(gboolean enabled) | 161 gaim_debug_set_enabled(gboolean enabled) |
188 { | 162 { |
189 debug_enabled = enabled; | 163 debug_enabled = enabled; |
190 } | 164 } |
191 | 165 |