r19447 - gnucash/trunk/src/import-export/aqbanking - Aqbanking: Enable gwengui-gtk2 implementation and fix setup wizard.
Christian Stimming
cstim at code.gnucash.org
Wed Aug 18 16:32:42 EDT 2010
Author: cstim
Date: 2010-08-18 16:32:42 -0400 (Wed, 18 Aug 2010)
New Revision: 19447
Trac: http://svn.gnucash.org/trac/changeset/19447
Modified:
gnucash/trunk/src/import-export/aqbanking/druid-ab-initial.c
gnucash/trunk/src/import-export/aqbanking/gnc-gwen-gui.c
Log:
Aqbanking: Enable gwengui-gtk2 implementation and fix setup wizard.
Setup wizard was missing OnlineInit/OnlineFini calls around it; with
them and the newest gwenhywfar, the setup wizard is now working again
in a gtk2 implementation.
Modified: gnucash/trunk/src/import-export/aqbanking/druid-ab-initial.c
===================================================================
--- gnucash/trunk/src/import-export/aqbanking/druid-ab-initial.c 2010-08-17 21:30:17 UTC (rev 19446)
+++ gnucash/trunk/src/import-export/aqbanking/druid-ab-initial.c 2010-08-18 20:32:42 UTC (rev 19447)
@@ -243,6 +243,11 @@
PERR ("Unfortunately starting the setup wizard of aqbanking is not yet implemented in gnucash for aqbanking5. Please see http://lists.gnucash.org/pipermail/gnucash-devel/2010-August/029188.html and http://lists.gnucash.org/pipermail/gnucash-devel/2010-August/029189.html .");
+ if (AB_Banking_OnlineInit(banking) != 0)
+ {
+ PERR("Got error on AB_Banking_OnlineInit!");
+ }
+
rv = GWEN_Gui_ExecDialog(dlg, 0);
if (rv <= 0)
{
@@ -255,6 +260,11 @@
druid_enable_next_button(info);
}
GWEN_Dialog_free(dlg);
+
+ if (AB_Banking_OnlineFini(banking) != 0)
+ {
+ PERR("Got error on AB_Banking_OnlineFini!");
+ }
}
#else
/* Previous implementation for aqbanking <= 4.99.8: Use the
Modified: gnucash/trunk/src/import-export/aqbanking/gnc-gwen-gui.c
===================================================================
--- gnucash/trunk/src/import-export/aqbanking/gnc-gwen-gui.c 2010-08-17 21:30:17 UTC (rev 19446)
+++ gnucash/trunk/src/import-export/aqbanking/gnc-gwen-gui.c 2010-08-18 20:32:42 UTC (rev 19447)
@@ -45,18 +45,14 @@
#include "md5.h"
#include "qof.h"
-#if GWENHYWFAR_VERSION_INT > 39913
-/* Only for the brave: You can enable the gwenhywfar gtk2 gui object
- * by un-commenting this here. */
-/*# define USING_GWENHYWFAR_GTK2_GUI*/
+#if GWENHYWFAR_VERSION_INT >= 39921
+/* For sufficiently new gwenhywfar (>=3.99.21) the gtk2 gui object is
+ * working fine and it is enabled here here. */
+# define USING_GWENHYWFAR_GTK2_GUI
#endif
#ifdef USING_GWENHYWFAR_GTK2_GUI
-# if GWENHYWFAR_VERSION_INT >= 39920
-# include <gwen-gui-gtk2/gtk2_gui.h>
-# else
-# error "You must be using libgwenhywfar >= 3.99.20 because otherwise the -lgwengui-gtk2 is not added into the linker flags"
-# endif
+# include <gwen-gui-gtk2/gtk2_gui.h>
#endif
/* This static indicates the debugging module that this .o belongs to. */
More information about the gnucash-changes
mailing list