Mercurial > pidgin
comparison src/connection.c @ 10840:a9d989c84609
[gaim-migrate @ 12512]
sf patch #1185438, from Richard Laager
"Someone #if 0'ed code. I get warnings now. This fixes the
warnings. (Yes, the comment change is legitimate. The
compiler was warning because the comment is unclosed.)"
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 19 Apr 2005 03:16:43 +0000 |
parents | 53e7884c549a |
children | 3e43c132f151 |
comparison
equal
deleted
inserted
replaced
10839:7a3d8d498f45 | 10840:a9d989c84609 |
---|---|
148 | 148 |
149 void | 149 void |
150 gaim_connection_destroy(GaimConnection *gc) | 150 gaim_connection_destroy(GaimConnection *gc) |
151 { | 151 { |
152 GaimAccount *account; | 152 GaimAccount *account; |
153 #if 0 | |
153 GList *wins; | 154 GList *wins; |
155 #endif | |
154 GaimPresence *presence = NULL; | 156 GaimPresence *presence = NULL; |
155 GaimPluginProtocolInfo *prpl_info = NULL; | 157 GaimPluginProtocolInfo *prpl_info = NULL; |
156 | 158 |
157 g_return_if_fail(gc != NULL); | 159 g_return_if_fail(gc != NULL); |
158 | 160 |
198 presence = gaim_account_get_presence(account); | 200 presence = gaim_account_get_presence(account); |
199 if (gaim_presence_is_online(presence) == TRUE) | 201 if (gaim_presence_is_online(presence) == TRUE) |
200 gaim_presence_set_status_active(presence, "offline", TRUE); | 202 gaim_presence_set_status_active(presence, "offline", TRUE); |
201 | 203 |
202 #if 0 | 204 #if 0 |
203 /* see comment later in file on if 0'd same code | 205 /* see comment later in file on if 0'd same code */ |
204 /* | 206 /* |
205 * XXX This is a hack! Remove this and replace it with a better event | 207 * XXX This is a hack! Remove this and replace it with a better event |
206 * notification system. | 208 * notification system. |
207 */ | 209 */ |
208 for (wins = gaim_get_windows(); wins != NULL; wins = wins->next) { | 210 for (wins = gaim_get_windows(); wins != NULL; wins = wins->next) { |
262 connections_connecting = g_list_remove(connections_connecting, gc); | 264 connections_connecting = g_list_remove(connections_connecting, gc); |
263 } | 265 } |
264 | 266 |
265 if (gc->state == GAIM_CONNECTED) { | 267 if (gc->state == GAIM_CONNECTED) { |
266 GaimBlistNode *gnode,*cnode,*bnode; | 268 GaimBlistNode *gnode,*cnode,*bnode; |
269 #if 0 | |
267 GList *wins; | 270 GList *wins; |
271 #endif | |
268 GList *add_buds = NULL; | 272 GList *add_buds = NULL; |
269 GaimAccount *account; | 273 GaimAccount *account; |
270 GaimPresence *presence; | 274 GaimPresence *presence; |
271 | 275 |
272 account = gaim_connection_get_account(gc); | 276 account = gaim_connection_get_account(gc); |