comparison plugins/filectl.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 17142948653e
comparison
equal deleted inserted replaced
11255:1b1d63602d77 11256:bb0d7b719af2
214 */ 214 */
215 215
216 static gboolean 216 static gboolean
217 plugin_load(GaimPlugin *plugin) 217 plugin_load(GaimPlugin *plugin)
218 { 218 {
219 gaim_debug_register_category("filectl");
220
221 init_file(); 219 init_file();
222 check = gaim_timeout_add(5000, (GSourceFunc)check_file, NULL); 220 check = gaim_timeout_add(5000, (GSourceFunc)check_file, NULL);
223 221
224 return TRUE; 222 return TRUE;
225 } 223 }
226 224
227 static gboolean 225 static gboolean
228 plugin_unload(GaimPlugin *plugin) 226 plugin_unload(GaimPlugin *plugin)
229 { 227 {
230 gaim_timeout_remove(check); 228 gaim_timeout_remove(check);
231
232 gaim_debug_unregister_category("filectl");
233 229
234 return TRUE; 230 return TRUE;
235 } 231 }
236 232
237 static GaimPluginInfo info = 233 static GaimPluginInfo info =