changeset 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 c502ed5ae9f6
children 69e02f13b525
files plugins/timestamp.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/timestamp.c	Tue May 09 01:35:43 2006 +0000
+++ b/plugins/timestamp.c	Tue May 09 01:42:39 2006 +0000
@@ -208,14 +208,16 @@
 plugin_load(GaimPlugin *plugin)
 {
 	void *conv_handle = gaim_conversations_get_handle();
+	void *gtkconv_handle = gaim_gtk_conversations_get_handle();
 
 	init_timer_list();
 
 	gaim_signal_connect(conv_handle, "conversation-created",
 					plugin, GAIM_CALLBACK(timestamp_new_convo), NULL);
 
-	/* record IM display events for each conversation */
-	gaim_signal_connect(conv_handle, "displaying-im-msg",
+	gaim_signal_connect(gtkconv_handle, "displaying-chat-msg",
+					plugin, GAIM_CALLBACK(timestamp_displaying_conv_msg), NULL);
+	gaim_signal_connect(gtkconv_handle, "displaying-im-msg",
 					plugin, GAIM_CALLBACK(timestamp_displaying_conv_msg), NULL);
 
 	interval = gaim_prefs_get_int("/plugins/gtk/timestamp/interval");