From 30c58032b42d453c424ed48887fe927cab6b5209 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Sun, 20 Aug 2023 09:10:34 +0800 Subject: [PATCH] [import-match-picker] ditto last commit, use GncTreeData::set and deduce type from argument --- gnucash/import-export/import-match-picker.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/gnucash/import-export/import-match-picker.cpp b/gnucash/import-export/import-match-picker.cpp index 7b27438a794..e3d4c237980 100644 --- a/gnucash/import-export/import-match-picker.cpp +++ b/gnucash/import-export/import-match-picker.cpp @@ -130,15 +130,13 @@ downloaded_transaction_append(GNCImportMatchPicker * matcher, auto imbalance = g_strdup (xaccPrintAmount (xaccTransGetImbalanceValue(trans), gnc_commodity_print_info (xaccTransGetCurrency (trans), TRUE))); - gtk_list_store_set (store, &iter->get_iter(), - DOWNLOADED_COL_ACCOUNT, account, - DOWNLOADED_COL_DATE, date, - DOWNLOADED_COL_AMOUNT, amount, - DOWNLOADED_COL_DESCRIPTION, desc, - DOWNLOADED_COL_MEMO, memo, - DOWNLOADED_COL_BALANCED, imbalance, - DOWNLOADED_COL_INFO_PTR, transaction_info, - -1); + iter->set (DOWNLOADED_COL_ACCOUNT, account); + iter->set (DOWNLOADED_COL_DATE, date); + iter->set (DOWNLOADED_COL_AMOUNT, amount); + iter->set (DOWNLOADED_COL_DESCRIPTION, desc); + iter->set (DOWNLOADED_COL_MEMO, memo); + iter->set (DOWNLOADED_COL_BALANCED, imbalance); + iter->set (DOWNLOADED_COL_INFO_PTR, transaction_info); gtk_tree_selection_select_iter (gtk_tree_view_get_selection(matcher->downloaded_view), &iter->get_iter());