# HG changeset patch # User Nathan Walp # Date 1054484235 0 # Node ID 78c02cfa43eaca998333fe329e42f5350530e286 # Parent e4f0898ba2cdb52d2c1e4fb58286fa1bf4bcbd0e [gaim-migrate @ 6044] online/offline toggle in accounts works again diff -r e4f0898ba2cd -r 78c02cfa43ea 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);