| 199 */ |
192 */ |
| 200 gaim_account_set_enabled(account, GAIM_GTK_UI, FALSE); |
193 gaim_account_set_enabled(account, GAIM_GTK_UI, FALSE); |
| 201 } |
194 } |
| 202 } |
195 } |
| 203 |
196 |
| |
197 static void gaim_gtk_connection_network_connected () |
| |
198 { |
| |
199 GList *list = gaim_accounts_get_all_active(); |
| |
200 while (list) { |
| |
201 GaimAccount *account = (GaimAccount*)list->data; |
| |
202 GaimAutoRecon *info = g_hash_table_lookup(hash, account); |
| |
203 if (info) |
| |
204 free_auto_recon(info); |
| |
205 do_signon(account); |
| |
206 list = list->next; |
| |
207 } |
| |
208 } |
| |
209 |
| |
210 static void gaim_gtk_connection_network_disconnected () |
| |
211 { |
| |
212 GList *l = gaim_accounts_get_all_active(); |
| |
213 while (l) { |
| |
214 GaimAccount *a = (GaimAccount*)l->data; |
| |
215 gaim_account_disconnect(a); |
| |
216 l = l->next; |
| |
217 } |
| |
218 } |
| |
219 |
| |
220 static void gaim_gtk_connection_notice(GaimConnection *gc, const char *text) |
| |
221 { } |
| |
222 |
| 204 static GaimConnectionUiOps conn_ui_ops = |
223 static GaimConnectionUiOps conn_ui_ops = |
| 205 { |
224 { |
| 206 gaim_gtk_connection_connect_progress, |
225 gaim_gtk_connection_connect_progress, |
| 207 gaim_gtk_connection_connected, |
226 gaim_gtk_connection_connected, |
| 208 gaim_gtk_connection_disconnected, |
227 gaim_gtk_connection_disconnected, |
| 209 gaim_gtk_connection_notice, |
228 gaim_gtk_connection_notice, |
| 210 gaim_gtk_connection_report_disconnect, |
229 gaim_gtk_connection_report_disconnect, |
| |
230 gaim_gtk_connection_network_connected, |
| |
231 gaim_gtk_connection_network_disconnected |
| 211 }; |
232 }; |
| 212 |
233 |
| 213 GaimConnectionUiOps * |
234 GaimConnectionUiOps * |
| 214 gaim_gtk_connections_get_ui_ops(void) |
235 gaim_gtk_connections_get_ui_ops(void) |
| 215 { |
236 { |