Display glyphs in the register for transaction associations if a font
has them. A test is made when the register is loaded to see if there is
a font that has the two glyphs available otherwise the usual characters
are used. The two glyphs used are...
GLYPH_PAPERCLIP // Codepoint U+1F4CE
GLYPH_LINK // Codepoint U+1F517
Change the way the user picks a file association from using a
GtkFileChooserWidget to a GtkFileChooserButton so that you will get a
native file dialogue if you have at least Gtk+ version 3.20
When the path head is changed the associations are not updated so this
change adds a dialog to ask if you want the old relative paths updated
to absolute ones and whether to update existing absolute paths to new
relative ones.
Currently to refresh the list the dialog needs to be closed and
re-opened so add a button to reload the model instead. Also added
another button that does a reload and location check in one.
The transaction association dialog was all setup from gnc-split-reg but
it seems logical to move all the association source to one file so this
commit does that as well as changing the dialog to be based on a glade
file. The existing toolbar menu entries have changed to Update, Open and
Remove the association.
It might be different from the parent account's. Also check the
commodity, not the currency-or-parent; moving widgets to flidgets
is just as bad as pounds to dollars.
Set the expanding columns in the lot viewer to be the 'Title' and the
'Description'. Also ellipsize the description to help with long
transaction descriptions.
When you try and sort on balance, amount and value the columns are
sorted alphabetically as opposed to numeric value. Fixed by adding
extra double columns to the list store and use them to sort the numeric
columns.
A few preparatory changes...
* calculated-cells augmented to allow 7 fields instead of 6. 7th field
defines whether cell is mergeable for subtotal-table. note only the
first element in calculated-cells is currently considered for the
subtotal-table accumulator.
* backward compatible upgrade to trep-engine's add-subtotal-row --
handles both 6-field and 7-field calculated-cells. 7th field, if
missing, is assumed to be #f.
* transaction report: unlock subtotal-table when amount='double in
addition to 'single.
And finally the bug fix itself:
* reconcile-report: fix subtotal-table accumulator to consider both Dr
and Cr
Connect to the GtkEntry's preedit-changed signal and stash the preedit
length.
Uses the PangoLayout's text instead of the GtkEntry's because the former
includes the current preedit string and the latter does not. Add the
preedit length to the cursor position so that the cursor is drawn to the
right (left in RTL languages) of the preedit.
several speed ups
1. split->owner will now cache results, bypassing
gncOwnerGetOwnerFromLot and gncInvoiceGetInvoiceFromLot for repeated
calls to the same split.
2. previously each call to split->owner would allocate a new
gncOwner. now a new gncOwner is only allocated during a cache
miss. the list of gncOwners is maintained and is purged when
split->owner is called with #f. There is no need to maintain a tofree
list of gncOwners anymore.
3. instead of slow gncOwnerReturnGUID to test equality, use gncOwnerEqual