comparison src/gtkaccount.c @ 5718:c19cc2a3d65e

[gaim-migrate @ 6140] Connecting using the checkbox works again. Sean broke it. Tsk tsk. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 03 Jun 2003 20:25:21 +0000
parents 1d140b31d4b3
children d1aecc84319c
comparison
equal deleted inserted replaced
5717:1d140b31d4b3 5718:c19cc2a3d65e
1363 GtkTreeModel *model = GTK_TREE_MODEL(dialog->model); 1363 GtkTreeModel *model = GTK_TREE_MODEL(dialog->model);
1364 GtkTreeIter iter; 1364 GtkTreeIter iter;
1365 gboolean online; 1365 gboolean online;
1366 1366
1367 gtk_tree_model_get_iter_from_string(model, &iter, path_str); 1367 gtk_tree_model_get_iter_from_string(model, &iter, path_str);
1368 gtk_tree_model_get(model, &iter, COLUMN_DATA, &account, 1368 gtk_tree_model_get(model, &iter,
1369 COLUMN_ONLINE, &online, -1); 1369 COLUMN_DATA, &account,
1370 COLUMN_ONLINE, &online,
1371 -1);
1370 1372
1371 if (online) 1373 if (online)
1372 gaim_account_disconnect(account); 1374 gaim_account_disconnect(account);
1373 else 1375 else
1374 gaim_account_connect(account); 1376 gaim_account_connect(account);
1434 column = gtk_tree_view_column_new_with_attributes(_("Auto-login"), 1436 column = gtk_tree_view_column_new_with_attributes(_("Auto-login"),
1435 renderer, "active", COLUMN_AUTOLOGIN, NULL); 1437 renderer, "active", COLUMN_AUTOLOGIN, NULL);
1436 1438
1437 gtk_tree_view_insert_column(GTK_TREE_VIEW(treeview), column, -1); 1439 gtk_tree_view_insert_column(GTK_TREE_VIEW(treeview), column, -1);
1438 g_object_set(renderer, "xalign", 0.0, "xpad", 10, NULL); 1440 g_object_set(renderer, "xalign", 0.0, "xpad", 10, NULL);
1439
1440
1441 } 1441 }
1442 1442
1443 static void 1443 static void
1444 __set_account(GtkListStore *store, GtkTreeIter *iter, GaimAccount *account) 1444 __set_account(GtkListStore *store, GtkTreeIter *iter, GaimAccount *account)
1445 { 1445 {
1513 1513
1514 /* Create the list model. */ 1514 /* Create the list model. */
1515 dialog->model = gtk_list_store_new(NUM_COLUMNS, GDK_TYPE_PIXBUF, 1515 dialog->model = gtk_list_store_new(NUM_COLUMNS, GDK_TYPE_PIXBUF,
1516 G_TYPE_STRING, G_TYPE_STRING, 1516 G_TYPE_STRING, G_TYPE_STRING,
1517 G_TYPE_BOOLEAN, G_TYPE_BOOLEAN, 1517 G_TYPE_BOOLEAN, G_TYPE_BOOLEAN,
1518 G_TYPE_BOOLEAN, G_TYPE_POINTER); 1518 G_TYPE_POINTER);
1519 1519
1520 /* And now the actual treeview */ 1520 /* And now the actual treeview */
1521 treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(dialog->model)); 1521 treeview = gtk_tree_view_new_with_model(GTK_TREE_MODEL(dialog->model));
1522 dialog->treeview = treeview; 1522 dialog->treeview = treeview;
1523 gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(treeview), TRUE); 1523 gtk_tree_view_set_rules_hint(GTK_TREE_VIEW(treeview), TRUE);