Mercurial > pidgin.yaz
comparison pidgin/plugins/markerline.c @ 24327:38f4670c3daa
Use a more appropriate signal for the markerline plugin. Fixes #7518.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 12 Nov 2008 04:18:54 +0000 |
parents | 47731d2e9fe4 |
children | ea62e934c80b |
comparison
equal
deleted
inserted
replaced
24326:af8b35c7730d | 24327:38f4670c3daa |
---|---|
200 { | 200 { |
201 g_list_foreach(pidgin_conv_windows_get_list(), (GFunc)attach_to_pidgin_window, NULL); | 201 g_list_foreach(pidgin_conv_windows_get_list(), (GFunc)attach_to_pidgin_window, NULL); |
202 } | 202 } |
203 | 203 |
204 static void | 204 static void |
205 conv_created(PurpleConversation *conv, gpointer null) | 205 conv_created(PidginConversation *gtkconv, gpointer null) |
206 { | 206 { |
207 PidginConversation *gtkconv = PIDGIN_CONVERSATION(conv); | |
208 PidginWindow *win; | 207 PidginWindow *win; |
209 | 208 |
210 if (!gtkconv) | 209 win = pidgin_conv_get_window(gtkconv); |
210 if (!win) | |
211 return; | 211 return; |
212 | |
213 win = pidgin_conv_get_window(gtkconv); | |
214 | 212 |
215 detach_from_pidgin_window(win, NULL); | 213 detach_from_pidgin_window(win, NULL); |
216 attach_to_pidgin_window(win, NULL); | 214 attach_to_pidgin_window(win, NULL); |
217 } | 215 } |
218 | 216 |
245 static gboolean | 243 static gboolean |
246 plugin_load(PurplePlugin *plugin) | 244 plugin_load(PurplePlugin *plugin) |
247 { | 245 { |
248 attach_to_all_windows(); | 246 attach_to_all_windows(); |
249 | 247 |
250 purple_signal_connect(purple_conversations_get_handle(), "conversation-created", | 248 purple_signal_connect(pidgin_conversations_get_handle(), "conversation-displayed", |
251 plugin, PURPLE_CALLBACK(conv_created), NULL); | 249 plugin, PURPLE_CALLBACK(conv_created), NULL); |
252 | 250 |
253 purple_signal_connect(purple_conversations_get_handle(), "conversation-extended-menu", | 251 purple_signal_connect(purple_conversations_get_handle(), "conversation-extended-menu", |
254 plugin, PURPLE_CALLBACK(conv_menu_cb), NULL); | 252 plugin, PURPLE_CALLBACK(conv_menu_cb), NULL); |
255 return TRUE; | 253 return TRUE; |