# HG changeset patch # User Nathan Walp # Date 1054484235 0 # Node ID 69c92ae58876d51f27c2e8839b265c385f9497c9 # Parent 11233ca9f533aaad1de831f7cc087fa3d46a92d2 [gaim-migrate @ 6044] online/offline toggle in accounts works again committer: Tailor Script diff -r 11233ca9f533 -r 69c92ae58876 src/gtkaccount.c --- 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);