2002-11-24 Christian Stimming <stimming@tuhh.de>

* src/import-export/ofx/gnc-ofx-import.c: As a trial, use new
	generic transaction importer GUI. Changes are marked with 'CS:'.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7540 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2002-11-24 21:41:10 +00:00
parent fefd3c6d48
commit b20a836c69
2 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-11-24 Christian Stimming <stimming@tuhh.de>
* src/import-export/ofx/gnc-ofx-import.c: As a trial, use new
generic transaction importer GUI. Changes are marked with 'CS:'.
2002-11-24 Derek Atkins <derek@ihtfp.com>
* src/engine/Account.c -- fix some compiler warnings

View File

@ -43,7 +43,7 @@
#include "gnc-engine-util.h"
#include "gnc-book.h"
#include "gnc-ui-util.h"
#include "gnc-gen-transaction.h"
#include "dialog-utils.h"
@ -60,6 +60,10 @@ SCM scm_gnc_file_ofx_import ()
return SCM_EOL;
}
/* CS: Store the reference to the created importer gui so that the
ofx_proc_transaction_cb can use it. */
GNCGenTransaction *gnc_ofx_importer_gui = NULL;
void gnc_file_ofx_import (void)
{
extern int ofx_PARSER_msg;
@ -93,6 +97,9 @@ void gnc_file_ofx_import (void)
filenames[1]= (char *)selected_filename;
/* filenames[1]=file;*/
filenames[2]=NULL;
/* CS: Create the Generic transaction importer GUI. */
gnc_ofx_importer_gui = gnc_gen_trans_new(NULL, NULL);
DEBUG("Opening selected file");
ofx_proc_file(2, filenames);
}
@ -490,7 +497,10 @@ int ofx_proc_transaction_cb(struct OfxTransactionData data)
}
gnc_import_add_trans(transaction);
/* Previous importer GUI: gnc_import_add_trans(transaction); */
/* CS: Use new importer GUI. */
if (gnc_ofx_importer_gui)
gnc_gen_trans_add_trans (gnc_ofx_importer_gui, transaction);
}
else
{