comparison plugins/mailchk.c @ 11033:50224ac8184d

[gaim-migrate @ 12919] Ok, this is debug window filtering. Sadrul was going to do this with a text entry, but I like this better, feel free to disagree with me. It's not the prettiest in a couple places, most notable gtkmain.c where a bunch of categories that don't currently have a home get registered. I added some plugin_(un)load functions to some plugins to place the (un)register functions. Though I didn't do that for the prpls. Comments and cleanups welcome. (Oh, I've been seeing some crashes on quit, but I haven't been able to get it to happen reliably so I'm not sure if it's my code or some transient HEAD oscar/other crash.) committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Tue, 28 Jun 2005 06:13:07 +0000
parents 0f7452b1f777
children bb0d7b719af2
comparison
equal deleted inserted replaced
11032:31c1c48daba1 11033:50224ac8184d
115 plugin_load(GaimPlugin *plugin) 115 plugin_load(GaimPlugin *plugin)
116 { 116 {
117 GaimBuddyList *list = gaim_get_blist(); 117 GaimBuddyList *list = gaim_get_blist();
118 void *conn_handle = gaim_connections_get_handle(); 118 void *conn_handle = gaim_connections_get_handle();
119 119
120 gaim_debug_register_category("mailchk");
121
120 if (!check_timeout(NULL)) { 122 if (!check_timeout(NULL)) {
121 gaim_debug_warning("mailchk", "Could not read $MAIL or /var/spool/mail/$USER"); 123 gaim_debug_warning("mailchk", "Could not read $MAIL or /var/spool/mail/$USER");
122 return FALSE; 124 return FALSE;
123 } 125 }
124 126
140 g_source_remove(timer); 142 g_source_remove(timer);
141 timer = 0; 143 timer = 0;
142 if (mail) 144 if (mail)
143 gtk_widget_destroy(mail); 145 gtk_widget_destroy(mail);
144 mail = NULL; 146 mail = NULL;
147
148 gaim_debug_unregister_category("mailchk");
145 149
146 return TRUE; 150 return TRUE;
147 } 151 }
148 152
149 static GaimPluginInfo info = 153 static GaimPluginInfo info =