r23662 - gnucash/trunk/src/import-export/aqb - For aqbanking, take into account the actual purpose line length that is given from aqbanking.

Christian Stimming cstim at code.gnucash.org
Thu Jan 2 16:42:56 EST 2014


Author: cstim
Date: 2014-01-02 16:42:56 -0500 (Thu, 02 Jan 2014)
New Revision: 23662
Trac: http://svn.gnucash.org/trac/changeset/23662

Modified:
   gnucash/trunk/src/import-export/aqb/dialog-ab-trans.c
Log:
For aqbanking, take into account the actual purpose line length that is given from aqbanking.

Modified: gnucash/trunk/src/import-export/aqb/dialog-ab-trans.c
===================================================================
--- gnucash/trunk/src/import-export/aqb/dialog-ab-trans.c	2014-01-02 11:04:02 UTC (rev 23661)
+++ gnucash/trunk/src/import-export/aqb/dialog-ab-trans.c	2014-01-02 21:42:56 UTC (rev 23662)
@@ -671,6 +671,19 @@
     gtk_widget_set_sensitive(td->purpose_cont_entry, max_purpose_lines > 1);
     gtk_widget_set_sensitive(td->purpose_cont2_entry, max_purpose_lines > 2);
     gtk_widget_set_sensitive(td->purpose_cont3_entry, max_purpose_lines > 3);
+    if (joblimits)
+    {
+        gtk_entry_set_max_length(GTK_ENTRY(td->purpose_entry),
+                                 AB_TransactionLimits_GetMaxLenPurpose(joblimits));
+        gtk_entry_set_max_length(GTK_ENTRY(td->purpose_cont_entry),
+                                 AB_TransactionLimits_GetMaxLenPurpose(joblimits));
+        gtk_entry_set_max_length(GTK_ENTRY(td->purpose_cont2_entry),
+                                 AB_TransactionLimits_GetMaxLenPurpose(joblimits));
+        gtk_entry_set_max_length(GTK_ENTRY(td->purpose_cont3_entry),
+                                 AB_TransactionLimits_GetMaxLenPurpose(joblimits));
+        gtk_entry_set_max_length(GTK_ENTRY(td->recp_name_entry),
+                                 AB_TransactionLimits_GetMaxLenRemoteName(joblimits));
+    }
 
     /* Show the dialog */
     gtk_widget_show(td->dialog);



More information about the gnucash-changes mailing list