comparison plugins/timestamp.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 bb6fea81e770
children bb0d7b719af2
comparison
equal deleted inserted replaced
11032:31c1c48daba1 11033:50224ac8184d
231 static gboolean 231 static gboolean
232 plugin_load(GaimPlugin *plugin) 232 plugin_load(GaimPlugin *plugin)
233 { 233 {
234 void *conv_handle = gaim_conversations_get_handle(); 234 void *conv_handle = gaim_conversations_get_handle();
235 235
236 gaim_debug_register_category("timestamp");
237
236 init_timer_list(); 238 init_timer_list();
237 239
238 gaim_signal_connect(conv_handle, "conversation-created", 240 gaim_signal_connect(conv_handle, "conversation-created",
239 plugin, GAIM_CALLBACK(timestamp_new_convo), NULL); 241 plugin, GAIM_CALLBACK(timestamp_new_convo), NULL);
240 242
261 for (cnvs = gaim_get_conversations(); cnvs != NULL; cnvs = cnvs->next) { 263 for (cnvs = gaim_get_conversations(); cnvs != NULL; cnvs = cnvs->next) {
262 GaimConversation *c = cnvs->data; 264 GaimConversation *c = cnvs->data;
263 GaimGtkConversation *conv = GAIM_GTK_CONVERSATION(c); 265 GaimGtkConversation *conv = GAIM_GTK_CONVERSATION(c);
264 gtk_imhtml_show_comments(GTK_IMHTML(conv->imhtml), TRUE); 266 gtk_imhtml_show_comments(GTK_IMHTML(conv->imhtml), TRUE);
265 } 267 }
268
269 gaim_debug_unregister_category("timestamp");
266 270
267 return TRUE; 271 return TRUE;
268 } 272 }
269 273
270 static GaimGtkPluginUiInfo ui_info = 274 static GaimGtkPluginUiInfo ui_info =