Mercurial > pidgin.yaz
comparison plugins/autorecon.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 | a32bf50ee5d1 |
comparison
equal
deleted
inserted
replaced
11255:1b1d63602d77 | 11256:bb0d7b719af2 |
---|---|
225 | 225 |
226 | 226 |
227 static gboolean | 227 static gboolean |
228 plugin_load(GaimPlugin *plugin) | 228 plugin_load(GaimPlugin *plugin) |
229 { | 229 { |
230 gaim_debug_register_category("autorecon"); | |
231 | |
232 /* this was the suggested way to override a single function of the | 230 /* this was the suggested way to override a single function of the |
233 real ui ops. However, there's a mild concern of having more than one | 231 real ui ops. However, there's a mild concern of having more than one |
234 bit of code making a new ui op call-through copy. If plugins A and B | 232 bit of code making a new ui op call-through copy. If plugins A and B |
235 both override the ui ops (in that order), B thinks that the | 233 both override the ui ops (in that order), B thinks that the |
236 overridden ui ops A created was the original. If A unloads first, | 234 overridden ui ops A created was the original. If A unloads first, |
278 | 276 |
279 gaim_connections_set_ui_ops(old_ops); | 277 gaim_connections_set_ui_ops(old_ops); |
280 g_free(new_ops); | 278 g_free(new_ops); |
281 old_ops = new_ops = NULL; | 279 old_ops = new_ops = NULL; |
282 | 280 |
283 gaim_debug_unregister_category("autorecon"); | |
284 | |
285 return TRUE; | 281 return TRUE; |
286 } | 282 } |
287 | 283 |
288 | 284 |
289 static | 285 static |