Mercurial > pidgin.yaz
comparison plugins/timestamp.c @ 13753:c066473fff04
[gaim-migrate @ 16164]
SF Patch #1482906 from Sadrul
"The timestamp plugin was not working. This makes it
work again. Looks like I didn't update this one when
the displaying- signals were moved to gtkconv from conv.
Also, I think having this timestamp work for chat
windows can't hurt. So I have added support for that too."
If you object to the change in functionality, that's easy to remove. I wasn't sure, since I don't use this plugin, but I kept it because I can't think of a reason you wouldn't want the timestamps in chats as well.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 09 May 2006 01:42:39 +0000 |
parents | 779dfb7925be |
children | 8bda65b88e49 |
comparison
equal
deleted
inserted
replaced
13752:c502ed5ae9f6 | 13753:c066473fff04 |
---|---|
206 | 206 |
207 static gboolean | 207 static gboolean |
208 plugin_load(GaimPlugin *plugin) | 208 plugin_load(GaimPlugin *plugin) |
209 { | 209 { |
210 void *conv_handle = gaim_conversations_get_handle(); | 210 void *conv_handle = gaim_conversations_get_handle(); |
211 void *gtkconv_handle = gaim_gtk_conversations_get_handle(); | |
211 | 212 |
212 init_timer_list(); | 213 init_timer_list(); |
213 | 214 |
214 gaim_signal_connect(conv_handle, "conversation-created", | 215 gaim_signal_connect(conv_handle, "conversation-created", |
215 plugin, GAIM_CALLBACK(timestamp_new_convo), NULL); | 216 plugin, GAIM_CALLBACK(timestamp_new_convo), NULL); |
216 | 217 |
217 /* record IM display events for each conversation */ | 218 gaim_signal_connect(gtkconv_handle, "displaying-chat-msg", |
218 gaim_signal_connect(conv_handle, "displaying-im-msg", | 219 plugin, GAIM_CALLBACK(timestamp_displaying_conv_msg), NULL); |
220 gaim_signal_connect(gtkconv_handle, "displaying-im-msg", | |
219 plugin, GAIM_CALLBACK(timestamp_displaying_conv_msg), NULL); | 221 plugin, GAIM_CALLBACK(timestamp_displaying_conv_msg), NULL); |
220 | 222 |
221 interval = gaim_prefs_get_int("/plugins/gtk/timestamp/interval"); | 223 interval = gaim_prefs_get_int("/plugins/gtk/timestamp/interval"); |
222 | 224 |
223 return TRUE; | 225 return TRUE; |