Commit Graph

22730 Commits

Author SHA1 Message Date
c-holtermann
7bf38ef837 test info 2020-05-28 20:29:33 +02:00
c-holtermann
ca21f32249 remove global gettext import 2020-05-28 20:21:31 +02:00
c-holtermann
efe9b4b606 remove debug info 2020-05-28 20:19:39 +02:00
c-holtermann
f788e59318 remove debug stuff (temporarily) 2020-05-28 18:51:01 +02:00
c-holtermann
fc87e275fa further debugging 2020-05-28 18:51:01 +02:00
c-holtermann
8d429d8295 further debugging 2020-05-28 18:51:01 +02:00
c-holtermann
2c09fe4f44 debug on travis 2020-05-28 18:51:01 +02:00
c-holtermann
694e5a26ff add test for gettext 2020-05-28 18:50:55 +02:00
c-holtermann
31d2b3cb44 install gettext 2020-05-28 18:41:34 +02:00
c-holtermann
101a2ca09d add translatable python files 2020-05-28 18:41:34 +02:00
c-holtermann
22848c6b0a localize strings for python 2020-05-28 18:41:34 +02:00
c-holtermann
41dc6ddbe2 implement gettext localization for python
make gnc_path_get_localedir() and GETTEXT_PACKAGE available for python
to access locales. Import gettext module to provide _ as translator
method. Provide null _-method returning english text in case of missing gettext.
Make a lot of messages translatable by adding _-method. Include python
files to create .pot-files.
2020-05-28 18:41:34 +02:00
Robert Fewell
890637b2dc Delete Account: Short circuit checks if no transactions or subaccounts
Count of splits and number of children need to be or'd
2020-05-28 12:13:14 +01:00
Robert Fewell
3457dd150b Add file name to dialog used in ofx import 2020-05-28 11:21:04 +01:00
Robert Fewell
8bf426e274 Rename a couple of functions used in multiple OFX file import 2020-05-28 11:20:59 +01:00
Robert Fewell
e69c8a237c Set the reconcile after close button in import-main-matcher
Set the default visibility of the reconcile after close check button
to be hidden and set it so it does not respond to gtk_show_all.
2020-05-28 10:49:56 +01:00
Robert Fewell
2dcc0b7a19 Merge Jean Laroche's branch 'add_multi_ofx_import_master' PR 697 to master 2020-05-28 10:32:32 +01:00
Christopher Lam
4fd5a2cd59 typo fix 2020-05-28 13:35:58 +08:00
John Ralls
de9d6a3339 Delete Account: Use subaccount commodity for subaccount splits.
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.
2020-05-27 18:50:35 -07:00
John Ralls
7218bfef37 Delete Account: Short circuit checks if no transactions or subaccounts. 2020-05-27 18:50:34 -07:00
John Ralls
a584806e07 Delete account: Rename and reflow helper functions. 2020-05-27 18:50:34 -07:00
John Ralls
ccdeda4292 Extract function account_delete_dialog. 2020-05-27 18:50:34 -07:00
John Ralls
0af5883d6e Delete Account: Abstract the disposition adopters into a struct.
With functions for the operations done on the members.
2020-05-27 18:50:34 -07:00
John Ralls
1f8dfbac99 Delete Account: Modify strings for single subaccount.
Because we bail out and make the user sort it out if there is more
than one subaccount.
2020-05-27 18:50:34 -07:00
John Ralls
d65a29c4c0 gnc-plugin-page-account-tree.c: delete_account_next fix leaks and whitespace. 2020-05-27 18:50:34 -07:00
John Ralls
ee4f0daa47 Plugin-page-account: Extract function commodity_mismatch_dialog. 2020-05-27 18:50:34 -07:00
John Ralls
2af5d52c4c Merge Jean Laroche's '797220_delete_account_wrong_currency' into master. 2020-05-27 18:49:33 -07:00
John Ralls
fa769090e8 Fix printf arg mismatch, windows build failure. 2020-05-27 11:26:36 -07:00
Robert Fewell
1adbc54865 Change the position the register pop up so it aligns better 2020-05-27 14:43:26 +01:00
Robert Fewell
5de1c6d711 Fix the alignment of the Notes label in Transfer dialog 2020-05-27 14:26:44 +01:00
Robert Fewell
b50acc3ba9 Set horizontal paned position in Lot viewer
Set the initial Split horizontal paned position to be half way when the
window is realized.
2020-05-27 14:19:26 +01:00
Robert Fewell
85e6396dcd Set the expanding column in the lot viewer
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.
2020-05-27 14:08:12 +01:00
Robert Fewell
923b25ffed Change the alignment of the numeric values in the lot viewer
Change the alignment of the numeric columns to be right aligned so the
number align up.
2020-05-27 14:02:02 +01:00
Robert Fewell
c0abdb28d1 Bug 797768 - View Lots sorting numbers not right.
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.
2020-05-27 13:52:27 +01:00
Christopher Lam
6419857462 Bug 797770 - Reconciliation report does not consider credit transactions
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
2020-05-27 18:31:41 +08:00
John Ralls
12680ebb58 gnucash-item-edit.c: Small whitespace fixup. 2020-05-26 12:27:20 -07:00
John Ralls
a873cae90e Place the cursor after the preedit.
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.
2020-05-26 12:27:20 -07:00
John Ralls
fde6be6e01 Fix binreloc compile error with gcc. 2020-05-25 08:01:47 -07:00
Mike Alexander
159ceb6490 Don't call gnc_path_get_localedir vefore binreloc is initialized. 2020-05-25 03:31:20 -04:00
Mike Alexander
b1ffe2246a CLean up the binreloc code a bit. It is won't work pervectly, but it's better.
Make it do something plausible in a non0QUartz Mac build and make it handle
running GnuCash from a symlink.
2020-05-25 03:30:59 -04:00
John Ralls
c12ae077f7 Exclude mock files from translation. 2020-05-24 13:45:32 -07:00
John Ralls
947b9ea7aa Make static gnucash_sheet_cursor_get, used only internally. 2020-05-24 13:37:26 -07:00
John Ralls
77a8f71da2 Delete unused function gnucashsh_sheet_get_text_cursor_position. 2020-05-24 13:34:30 -07:00
John Ralls
608e700a24 Merge Bob Fewell's 'gnc-edit-changes' into master. 2020-05-24 11:22:43 -07:00
Christopher Lam
3036b72657 [dashboard] enable Dashboard report properly
8adac3c3 didn't enable dashboard report because of trailing "" in menu
path. proper fix.
2020-05-23 15:23:26 +08:00
Christopher Lam
d8aecf9695 [new-aging] speed up split->owner
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
2020-05-23 10:14:11 +08:00
Robert Fewell
fafb3ef3a8 Drop gnucash-scrolled-window.c in POTFILES.in as it has
been removed.
2020-05-22 23:16:43 +01:00
Robert Fewell
5f3ff8b652 Remove extra vbox in gnc_item_edit.c
The button is no longer required to be placed in an extra vortical box
as the required Gtk+ version is 3.22.30
2020-05-22 23:16:43 +01:00
Robert Fewell
22cd3d7296 Change the way the sheet popup treeview height is obtained.
Instead of using the sheet row height as the basis of obtaining the
popup height use the treeview cellrenderer height instead. This has the
advantage that any CSS font change applied to the treeview will be used
to get the correct height.
2020-05-22 23:16:37 +01:00
Robert Fewell
4da11b10e5 Move setting up of the sheet popup size-allocate callback
As the popup_item is cell dependant, the popup size-allocate check
callback needs to be setup when entering a cell and removed when
leaving so move this to the gnc_item_edit_set_popup function.
2020-05-22 18:22:39 +01:00