Sun, 01 Jun 2003 16:17:15 +0000
[gaim-migrate @ 6044]
online/offline toggle in accounts works again
| src/gtkaccount.c | file | annotate | diff | comparison | revisions |
--- a/src/gtkaccount.c Sun Jun 01 16:11:05 2003 +0000 +++ b/src/gtkaccount.c Sun Jun 01 16:17:15 2003 +0000 @@ -277,11 +277,13 @@ GaimAccount *account; GtkTreeModel *model = GTK_TREE_MODEL(dialog->model); GtkTreeIter iter; + gboolean online; gtk_tree_model_get_iter_from_string(model, &iter, path_str); - gtk_tree_model_get(model, &iter, COLUMN_DATA, &account, -1); + gtk_tree_model_get(model, &iter, COLUMN_DATA, &account, + COLUMN_ONLINE, &online, -1); - if (gaim_account_is_connected(account)) + if (online) gaim_account_disconnect(account); else gaim_account_connect(account);