Fix warning about deprecated aqbanking function in aqbanking-1.0.7

2005-04-02  Christian Stimming  <stimming@tuhh.de>

        * src/import-export/hbci/dialog-hbcitrans.c: Fix warning about
        deprecated aqbanking function in aqbanking-1.0.7


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10943 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2005-04-02 09:25:56 +00:00
parent 803907e022
commit 1d4bc05065
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-04-02 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/dialog-hbcitrans.c: Fix warning about
deprecated aqbanking function in aqbanking-1.0.7
2005-03-20 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/gnc-hbci-utils.c: Retrieve the current

View File

@ -27,6 +27,7 @@
#endif
#include <gnome.h>
#include <aqbanking/version.h>
#include <aqbanking/account.h>
#include <aqbanking/jobsingletransfer.h>
#include <aqbanking/jobsingledebitnote.h>
@ -440,7 +441,16 @@ int gnc_hbci_dialog_run_until_ok(HBCITransDialog *td,
printf("gnc_hbci_trans_dialog_enqueue: Oops, job not available. Aborting.\n");
return -1;
}
#if ((AQBANKING_VERSION_MAJOR > 1) || \
((AQBANKING_VERSION_MAJOR == 1) && \
((AQBANKING_VERSION_MINOR > 0) || \
((AQBANKING_VERSION_MINOR == 0) && \
(AQBANKING_VERSION_PATCHLEVEL > 6)))))
max_purpose_lines = AB_TransactionLimits_GetMaxLinesPurpose
( AB_JobSingleTransfer_GetFieldLimits(job) );
#else
max_purpose_lines = AB_JobSingleTransfer_GetMaxPurposeLines(job);
#endif
/* these are the number of fields, 27 characters each. */
AB_Job_free(job);
}