|
|
|
|
@ -45,6 +45,7 @@
|
|
|
|
|
|
|
|
|
|
#include "gtk-compat.h"
|
|
|
|
|
#include "dialog-utils.h"
|
|
|
|
|
#include "gnc-glib-utils.h"
|
|
|
|
|
#include "gnc-ui.h"
|
|
|
|
|
#include "gnc-amount-edit.h"
|
|
|
|
|
#include "dialog-transfer.h"
|
|
|
|
|
@ -246,7 +247,7 @@ gnc_hbci_dialog_new (GtkWidget *parent,
|
|
|
|
|
GList *templates)
|
|
|
|
|
{
|
|
|
|
|
GladeXML *xml;
|
|
|
|
|
const char *hbci_bankid, *hbci_bankname;
|
|
|
|
|
const char *hbci_bankid;
|
|
|
|
|
HBCITransDialog *td;
|
|
|
|
|
GtkTreeSelection *selection;
|
|
|
|
|
GtkTreeViewColumn *column;
|
|
|
|
|
@ -258,7 +259,6 @@ gnc_hbci_dialog_new (GtkWidget *parent,
|
|
|
|
|
td->trans_type = trans_type;
|
|
|
|
|
g_assert (h_acc);
|
|
|
|
|
hbci_bankid = AB_Account_GetBankCode(h_acc);
|
|
|
|
|
hbci_bankname = AB_Account_GetBankName(h_acc);
|
|
|
|
|
#if HAVE_KTOBLZCHECK_H
|
|
|
|
|
td->blzcheck = AccountNumberCheck_new();
|
|
|
|
|
#endif
|
|
|
|
|
@ -272,6 +272,7 @@ gnc_hbci_dialog_new (GtkWidget *parent,
|
|
|
|
|
GTK_WINDOW (parent));
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
gchar *hbci_bankname, *hbci_ownername;
|
|
|
|
|
GtkWidget *heading_label;
|
|
|
|
|
GtkWidget *recp_name_heading;
|
|
|
|
|
GtkWidget *recp_account_heading;
|
|
|
|
|
@ -394,9 +395,16 @@ gnc_hbci_dialog_new (GtkWidget *parent,
|
|
|
|
|
/* Make this button insensitive since it's still unimplemented. */
|
|
|
|
|
gtk_widget_destroy (exec_later_button);
|
|
|
|
|
|
|
|
|
|
/* aqbanking up to 2.3.0 did not guarantee the following strings
|
|
|
|
|
to be correct utf8; mentioned in bug#351371. */
|
|
|
|
|
hbci_bankname =
|
|
|
|
|
gnc_utf8_strip_invalid_strdup (AB_Account_GetBankName(h_acc));
|
|
|
|
|
hbci_ownername =
|
|
|
|
|
gnc_utf8_strip_invalid_strdup (AB_Account_GetOwnerName(h_acc));
|
|
|
|
|
|
|
|
|
|
/* Fill in the values from the objects */
|
|
|
|
|
gtk_label_set_text (GTK_LABEL (orig_name_label),
|
|
|
|
|
AB_Account_GetOwnerName (h_acc));
|
|
|
|
|
hbci_ownername);
|
|
|
|
|
gtk_label_set_text (GTK_LABEL (orig_account_label),
|
|
|
|
|
AB_Account_GetAccountNumber (h_acc));
|
|
|
|
|
gtk_label_set_text (GTK_LABEL (orig_bankname_label),
|
|
|
|
|
@ -405,6 +413,8 @@ gnc_hbci_dialog_new (GtkWidget *parent,
|
|
|
|
|
_("(unknown)")));
|
|
|
|
|
gtk_label_set_text (GTK_LABEL (orig_bankcode_label),
|
|
|
|
|
hbci_bankid);
|
|
|
|
|
g_free (hbci_ownername);
|
|
|
|
|
g_free (hbci_bankname);
|
|
|
|
|
|
|
|
|
|
/* fill list for choosing a transaction template */
|
|
|
|
|
gtk_tree_view_set_headers_visible(td->template_gtktreeview, FALSE);
|
|
|
|
|
|