pidgin: bdc04e58: Use a more appropriate signal for the ma...

sadrul at pidgin.im sadrul at pidgin.im
Tue Nov 11 23:20:22 EST 2008


-----------------------------------------------------------------
Revision: bdc04e580534b5b4e2678682060464c8ecf1eb32
Ancestor: 9f6fc9dfce2fc8afe8d3a779884af3f0e934885d
Author: sadrul at pidgin.im
Date: 2008-11-12T04:18:54
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/bdc04e580534b5b4e2678682060464c8ecf1eb32

Modified files:
        pidgin/plugins/markerline.c

ChangeLog: 

Use a more appropriate signal for the markerline plugin. Fixes #7518.

-------------- next part --------------
============================================================
--- pidgin/plugins/markerline.c	db46fcd6eafae8d68a446899a552f0196820ed27
+++ pidgin/plugins/markerline.c	8731abe98dcefb6fa5d0a949b46781861d24fa0a
@@ -202,16 +202,14 @@ static void
 }
 
 static void
-conv_created(PurpleConversation *conv, gpointer null)
+conv_created(PidginConversation *gtkconv, gpointer null)
 {
-	PidginConversation *gtkconv = PIDGIN_CONVERSATION(conv);
 	PidginWindow *win;
 
-	if (!gtkconv)
+	win = pidgin_conv_get_window(gtkconv);
+	if (!win)
 		return;
 
-	win = pidgin_conv_get_window(gtkconv);
-
 	detach_from_pidgin_window(win, NULL);
 	attach_to_pidgin_window(win, NULL);
 }
@@ -247,7 +245,7 @@ plugin_load(PurplePlugin *plugin)
 {
 	attach_to_all_windows();
 
-	purple_signal_connect(purple_conversations_get_handle(), "conversation-created",
+	purple_signal_connect(pidgin_conversations_get_handle(), "conversation-displayed",
 						plugin, PURPLE_CALLBACK(conv_created), NULL);
 
 	purple_signal_connect(purple_conversations_get_handle(), "conversation-extended-menu",


More information about the Commits mailing list