Mercurial > pidgin
comparison src/connection.c @ 10827:53e7884c549a
[gaim-migrate @ 12492]
this should fix some problems with contact aware conversations, while
possibly introducing new problems, and breaking some plugins.
Someone needs to just remove GaimConvWindows all together.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Fri, 15 Apr 2005 22:32:00 +0000 |
parents | c94f40ffcafb |
children | a9d989c84609 |
comparison
equal
deleted
inserted
replaced
10826:2a5fe8e67195 | 10827:53e7884c549a |
---|---|
197 | 197 |
198 presence = gaim_account_get_presence(account); | 198 presence = gaim_account_get_presence(account); |
199 if (gaim_presence_is_online(presence) == TRUE) | 199 if (gaim_presence_is_online(presence) == TRUE) |
200 gaim_presence_set_status_active(presence, "offline", TRUE); | 200 gaim_presence_set_status_active(presence, "offline", TRUE); |
201 | 201 |
202 #if 0 | |
203 /* see comment later in file on if 0'd same code | |
202 /* | 204 /* |
203 * XXX This is a hack! Remove this and replace it with a better event | 205 * XXX This is a hack! Remove this and replace it with a better event |
204 * notification system. | 206 * notification system. |
205 */ | 207 */ |
206 for (wins = gaim_get_windows(); wins != NULL; wins = wins->next) { | 208 for (wins = gaim_get_windows(); wins != NULL; wins = wins->next) { |
207 GaimConvWindow *win = (GaimConvWindow *)wins->data; | 209 GaimConvWindow *win = (GaimConvWindow *)wins->data; |
208 gaim_conversation_update(gaim_conv_window_get_conversation_at(win, 0), | 210 gaim_conversation_update(gaim_conv_window_get_conversation_at(win, 0), |
209 GAIM_CONV_ACCOUNT_OFFLINE); | 211 GAIM_CONV_ACCOUNT_OFFLINE); |
210 } | 212 } |
213 #endif | |
211 | 214 |
212 gaim_request_close_with_handle(gc); | 215 gaim_request_close_with_handle(gc); |
213 gaim_notify_close_with_handle(gc); | 216 gaim_notify_close_with_handle(gc); |
214 | 217 |
215 gaim_debug_info("connection", "Destroying connection %p\n", gc); | 218 gaim_debug_info("connection", "Destroying connection %p\n", gc); |
291 | 294 |
292 /* | 295 /* |
293 * XXX This is a hack! Remove this and replace it with a better event | 296 * XXX This is a hack! Remove this and replace it with a better event |
294 * notification system. | 297 * notification system. |
295 */ | 298 */ |
299 #if 0 | |
300 /* This looks like it was horribly broken before I got here... */ | |
301 /* Why is it updating the first tab of each window? */ | |
296 for (wins = gaim_get_windows(); wins != NULL; wins = wins->next) { | 302 for (wins = gaim_get_windows(); wins != NULL; wins = wins->next) { |
297 GaimConvWindow *win = (GaimConvWindow *)wins->data; | 303 GaimConvWindow *win = (GaimConvWindow *)wins->data; |
298 gaim_conversation_update(gaim_conv_window_get_conversation_at(win, 0), | 304 gaim_conversation_update(gaim_conv_window_get_conversation_at(win, 0), |
299 GAIM_CONV_ACCOUNT_ONLINE); | 305 GAIM_CONV_ACCOUNT_ONLINE); |
300 } | 306 } |
301 | 307 #endif |
302 gaim_signal_emit(gaim_connections_get_handle(), "signed-on", gc); | 308 gaim_signal_emit(gaim_connections_get_handle(), "signed-on", gc); |
303 | 309 |
304 /* let the prpl know what buddies we pulled out of the local list */ | 310 /* let the prpl know what buddies we pulled out of the local list */ |
305 /* XXX - Remove this and let the prpl take care of it itself? */ | 311 /* XXX - Remove this and let the prpl take care of it itself? */ |
306 for (gnode = gaim_get_blist()->root; gnode; gnode = gnode->next) { | 312 for (gnode = gaim_get_blist()->root; gnode; gnode = gnode->next) { |