comparison plugins/timestamp.c @ 10757:bb6fea81e770

[gaim-migrate @ 12360] Plugins don't need to explicitly remove signals they have connected. It's done automatically by plugin.c when the plugin is unloaded. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 27 Mar 2005 22:44:59 +0000
parents ce098e226486
children 50224ac8184d
comparison
equal deleted inserted replaced
10756:897f98b4ca85 10757:bb6fea81e770
253 253
254 static gboolean 254 static gboolean
255 plugin_unload(GaimPlugin *plugin) 255 plugin_unload(GaimPlugin *plugin)
256 { 256 {
257 GList *cnvs; 257 GList *cnvs;
258 void *conv_handle = gaim_conversations_get_handle();
259
260 gaim_signal_disconnect(conv_handle, "conversation-created",
261 plugin, GAIM_CALLBACK(timestamp_new_convo));
262 gaim_signal_disconnect(conv_handle, "receiving-im-msg",
263 plugin, GAIM_CALLBACK(timestamp_receiving_msg));
264 gaim_signal_disconnect(conv_handle, "displaying-im-msg",
265 plugin, GAIM_CALLBACK(timestamp_displaying_conv_msg));
266 258
267 destroy_timer_list(); 259 destroy_timer_list();
268 260
269 for (cnvs = gaim_get_conversations(); cnvs != NULL; cnvs = cnvs->next) { 261 for (cnvs = gaim_get_conversations(); cnvs != NULL; cnvs = cnvs->next) {
270 GaimConversation *c = cnvs->data; 262 GaimConversation *c = cnvs->data;