880 {
881 auto widget{GNC_TREE_VIEW_ACCOUNT(get_widget())};
882 GList *acc_list = nullptr;
883 const GncOptionAccountList& accounts =
884 option.get_value<GncOptionAccountList>();
885 auto book{gnc_get_current_book()};
886 for (auto guid : accounts)
887 {
889 acc_list = g_list_prepend(acc_list, account);
890 }
891 acc_list = g_list_reverse(acc_list);
893 g_list_free(acc_list);
894 }
Account * xaccAccountLookup(const GncGUID *guid, QofBook *book)
The xaccAccountLookup() subroutine will return the account associated with the given id,...
void gnc_tree_view_account_set_selected_accounts(GncTreeViewAccount *view, GList *account_list, gboolean show_last)
This function selects a set of accounts in the account tree view.