Commit Graph

19585 Commits

Author SHA1 Message Date
Robert Fewell
3f7d70ace3 Error for lineedit when setting text
Critical errors were logged when trying to set the gtkentry text when
value is null, test for this before setting entry text.
2018-03-31 17:08:53 +01:00
Robert Fewell
f7211edbab Couple of missing properties for groupbox
When fixing related combo error a couple of critical errors were logged
for 'Function is not appropriate for this type of widget' which turned
out to be visibility properties so added them to stop error.
2018-03-31 17:05:05 +01:00
Robert Fewell
7033b331ee Bug794707 - Aqbanking combo boxes missing selection.
Modified w_combobox.c setup procedure was had an error when modified
for gtk3 use.
2018-03-31 17:01:56 +01:00
Christopher Lam
f910d931f7 gncInvoice: complete removal gncInvoiceDateExists 2018-03-31 05:35:49 +08:00
Christopher Lam
b99dee1736 Replace gncInvoiceDateExists to gncInvoiceIsPosted
This commit partially reverts commit 862956a760 which exported
gncInvoiceDateExists. Remove this API and use gncInvoiceIsPosted
instead.
2018-03-31 05:35:49 +08:00
John Ralls
4601cfcbc3 Merge Chris Lam's Bug 792800 Pull Request into unstable. 2018-03-30 14:16:30 -07:00
John Ralls
c141edd9ab Merge Bob Fewell's Autosize PR into unstable. 2018-03-30 14:14:39 -07:00
John Ralls
a382caccdb Fix more transient-for warnings.
If a GtkDialog builder description has the visible property set,
GtkBuilder will call gtk_window_show on it before we've had a chance
to call gtk_window_set_transient_for, and that raises a warning.
2018-03-30 14:06:47 -07:00
John Ralls
a23f103ebb Bug 794730 - SIGSEGV when entering an exchange rate, Part 2
91f4b19 changed the test for gncInvoiceDateExists from date != 0
to date != INT64_MAX, which isn't backwards compatible, so test
for both. But the submitted file had a posted date of -1 so
gncInvoiceIsPosted returned true anyway. That's not consistent with
the logic in dialog-invoice.c, which checked gncInvoicePostedAcc != NULL,
a better test. The result was that the "Post" button lit up but
gncInvoicePost returned immediately, doing nothing, so change
gncInvoiceIsPosted to use gncInvoicePostedAcc instead.
2018-03-30 11:19:51 -07:00
Geert Janssens
7271ce3dee Add feature kvp frame to the dbi test file 2018-03-30 19:02:57 +02:00
Geert Janssens
152277274f Fix slot loading in sql backend
Be smarter about what is path and key for each slot.
Instead of assuming a slash is always a path separator (first attempt
on unstable) or never a separator (second attempt),
track the parent path while loading kvp slots from the db
and deduce the slot's name by substracting this parent path.
2018-03-30 19:02:57 +02:00
John Ralls
2ea165c732 Bug 794730 - SIGSEGV when entering an exchange rate
Clean up the dialog's components *before* calling gtk_widget_destroy!
2018-03-29 16:53:49 -07:00
Christopher Lam
5922cbbc4b invoice, easy-invoice.scm: %discount from html-table to string
Old code would nest a small single-row, 2-column html-table within the
entry-list html-table to display discount percentage and '%'. This is
an overkill and causes alignment issues. Display a string instead.
2018-03-30 06:35:51 +08:00
Christopher Lam
7cfb48fea3 TR: Price Column shown in commodity SCU
xaccSplitGetSharePrice will typically return a gnc-numeric (or scm
rational) value. This leads to the TR showing a price of, eg. $22 +
12228521/25349850 which is not ideal. This commit will modify the
share price to round the exact rational to an inexact decimal
according to the account share price currency SCU. If the SCU is less
than 10000, increase the precision by 2 significant digits.
2018-03-30 06:35:51 +08:00
Christopher Lam
84ab44bfb6 Bug 792800 - Advanced Portfolio Report tries to divide by zero balance and aborts.
This fixes a numerical-overflow error identified in bug 792800. It is
related to negative-stock-balance situation.
2018-03-30 06:35:51 +08:00
Robert Fewell
e076474d77 Bug794806 - Autosize too small
When double clicking on header to autosize columns need to add the
padding_border values to get correct width.
2018-03-29 21:15:32 +01:00
Geert Janssens
59e9f7a6d7 Remove duplicate css definitions 2018-03-29 09:56:54 +02:00
Mike Alexander
82f31a5e4d Change portfolio.scm like advanced-portfolio.scm was changed in 9fd53e6.
It needs to use the t64 version of gnc-pricedb-lookup-nearest-in-time-any-currency.
2018-03-28 01:10:00 -04:00
Di Mang
5f0025954f ru.po: some more translations 2018-03-28 00:23:28 +02:00
Di Mang
9d3402d524 ru.po: Update some translations
4669 translated messages, 344 fuzzy translations, 177 untranslated messages.
2018-03-28 00:23:27 +02:00
Di Mang
af02f62845 Update ru.po from new gnucash.pot file 2018-03-28 00:23:27 +02:00
Di Mang
2db4901d5d de.po: Update some translations
4863 translated messages, 196 fuzzy translations, 131 untranslated messages.
2018-03-26 21:23:23 +02:00
Di Mang
c2ff57785f Updating de.po from new gnucash.pot file 2018-03-26 21:11:27 +02:00
John Ralls
dfb5de91ff Release 2.7.8. 2018-03-25 12:37:11 -07:00
John Ralls
dedb5265f0 Merge branch 'maint' into unstable 2018-03-25 09:36:21 -07:00
John Ralls
a0f49d8b17 Revert "Load the environment file when initializing the python bindings."
It's unnecessary, the swigged gnucash_core init function already does it.
This reverts commit 7b6854c163.
2018-03-25 09:17:17 -07:00
John Ralls
9cd22ee667 Merge Chris Lam's Fix-794030 into maint 2018-03-25 09:02:43 -07:00
Christopher Lam
a670238f80 Bug 794030 - relative date functions compute wrong day of month
Convert > to < and rename month-length to month-days for consistency.
2018-03-25 18:49:57 +08:00
John Ralls
8081e78ee3 Merge Bob Fewell's Bug 794360 PR into unstable. 2018-03-24 17:50:38 -07:00
John Ralls
7b6854c163 Load the environment file when initializing the python bindings. 2018-03-24 17:49:01 -07:00
John Ralls
148c02d231 [python bindings] Add required posted dates to the transactions. 2018-03-22 15:29:08 -07:00
John Ralls
bea89a50ac More python 3 fixups. 2018-03-22 15:19:59 -07:00
Robert Fewell
2571baff9f Bug 794644 - Deleting prices slow
Detach the price tree model from the price tree view while prices are
being deleted and then reattach.
2018-03-21 13:11:39 +00:00
Robert Fewell
9135ec4524 Fix a couple of Transient parent warnings 2018-03-21 13:11:39 +00:00
Robert Fewell
f1dd8cfaf1 Component not found error when accounts are deleted
When accounts are deleted that have an open register window a component
not found error is triggered. After the account is destroyed, a call to
'gnc_resume_gui_refresh' calls 'gnc_gui_refresh_internal' and this then
calls 'find_component_ids_by_class' which is used in order resulting in
'register-single' being unregistered before 'GncPluginPageRegister' and
hence 'ld' being freed but the register not knowing this. Reversing the
list fixes this.
2018-03-21 13:11:39 +00:00
Robert Fewell
34d921803d Bug 794360 Critical error when deleting accounts with children
When an account is deleted which has sub accounts a dialog is displayed
that had parts destroyed so they are not shown depending on certain
criteria and as a result an error occurred as it tried to get the
sensitivity of a destroyed widget. Change this so all parts of the
dialog are present but made in-sensitive when not applicable so the
dialog layout is the same on all occurrences.
2018-03-21 13:11:39 +00:00
John Ralls
2b6047f952 Fix a string msgid generation.
Call gettext in the macro, not on the macro. xgettext doesn't run cpp and can't see inside macros.
2018-03-20 11:41:21 -07:00
John Ralls
f05bbe2475 Bug 794330 - Scheduled Transaction Editor Transfer Button Does Not Work
It works fine, it just doesn't have anything to do with scheduled
transactions. Remove it from the SX Editor toolbar.
2018-03-19 15:52:06 -07:00
John Ralls
6cce41b0d1 Actually change CMakeLists.txt for the release. 2018-03-18 13:27:21 -07:00
John Ralls
b39687d35e Fix release narrative in NEWS. 2018-03-18 12:53:50 -07:00
John Ralls
0e3f60166a Release 2.7.7. 2018-03-18 12:49:20 -07:00
luc14n0
a893a632e9 Add COMPILE_GSCHEMAS to allow disabling gschemas compilation 2018-03-18 12:30:13 -07:00
John Ralls
7378c13948 Update es.po from the Translation Project. 2018-03-18 12:24:13 -07:00
John Ralls
4ecd9c2dd4 Fix the Python Console for Python3.
Replacing libgncmod-python, libgncmod-core-utils-python, and
libgncmod-app-utils-python with _sw_core_utils and _sw_app_utils.
The latter two are the modules that init.py wants to load and with
Python3 Swig appears to no longer make them available via libgncmod.

Note that there may still be some problems with actually using the
console, but it at least loads at startup without complaint.
2018-03-18 11:59:13 -07:00
John Ralls
b9d2344d34 Merge Chris Lam's Increase default options dialog size PR into unstable. 2018-03-17 16:13:40 -07:00
John Ralls
1f7edb23f6 Merge Bob Fewell's assorted GUI fixups PR 310 into unstable.
Although the PR was titled "Some [fixes] for missing transient parent
warnings", it actually has a bugfix and an assorted collection of
GUI cleanups that happen to include a couple of transient-parent fixes.
2018-03-17 16:04:17 -07:00
John Ralls
7989f02c73 Merge Tomas Schlosser's "Allow creation of prices in Python bindings" into unstable. 2018-03-17 15:53:46 -07:00
Julian Wollrath
a43b115a45 Bug 791831 - Add python3 support
This switches swig to use python 3 specific features when generating the
bindings, switches the build over to python 3 and makes the neccesary
python 2 to 3 conversions in the bindings and tests.
2018-03-17 15:10:00 -07:00
John Ralls
85ec07ec30 Revert "Add COMPILE_SCHEMA to allow disabling gschema compilation"
This reverts commit 6b46299e8d, which was
pushed by mistake.
2018-03-17 14:56:37 -07:00
John Ralls
25d9431dc1 Merge Luciano Santos's 'compile-schema-patch' PR into unstable. 2018-03-17 14:18:11 -07:00