Commit Graph

19677 Commits

Author SHA1 Message Date
Di Mang
232dcb5cbc Remove the emacs comments at the end of files 2018-03-15 12:54:31 +01:00
Di Mang
7439b27f96 Remove the emacs comments at the end of files 2018-03-14 23:04:00 +01:00
fell
273532c561 Merge branch 'maint' into unstable
PR #311
2018-03-14 08:53:01 +01:00
John Ralls
c381b2c965 Bug 787439 - Segmentation Fault in Transfer dialog after clearing...
Date field and pressing escape.

gtk_widget_destroy() ran the signals on the dialog controls which
tried to access the XferDialog data, but since gnc_xfer_dialog_close_cb()
had already run that memory had been freed and then used by the std::string
in GncDate::format; later handlers attempting to access the XferData had
garbage pointers to work with, causing a crash.

Running gtk_widget_destroy() first preserves the pointers long enough for
the dialog control callbacks to function without crashing.
2018-03-13 11:39:18 -07:00
John Ralls
363b259bd5 Merge branch 'unstable' 2018-03-12 15:21:56 -07:00
Di Mang
2391db37c1 Update GC version and date. 2018-03-12 14:35:50 -07:00
Robert Fewell
28b2e732ab When doing a file save from the a new start we have no key file
Test for Key_file not being NULL before trying to free it.
2018-03-12 06:48:01 +00:00
Robert Fewell
e589200402 Stop critical error due to testing null filename
g_filename_from_uri returns NULL if it is not a file uri so test for the
file:// prefix before doing g_file_test
2018-03-12 06:48:01 +00:00
Robert Fewell
fb973e008f Change dialog-new-user to use a GtkWindow
Change from using a GtkDialog to a GtkWindow to stop the transient
parent warning and add parent for cancel dialog. No strings have been
changed just the top level container.
2018-03-12 06:48:01 +00:00
Robert Fewell
5f51145e95 A couple of changes to assistant glade files 2018-03-12 06:48:01 +00:00
Robert Fewell
b74609221e Bug 794242 - Remove keep above setting for assistant hierarchy 2018-03-12 06:48:01 +00:00
Robert Fewell
41298bfd52 Fix transient parent warnings in import dialogs 2018-03-12 06:48:01 +00:00
Robert Fewell
a54a1a159b Add missing response section to the account picker dialog 2018-03-12 06:48:01 +00:00
Robert Fewell
4bbf70e103 Glade 3.20 adds surplus padding option to action area
When glade files are saved which have GtkAssistants defined a packing
section is added to the assistant action area which then causes a
warning so remove them.
2018-03-12 06:48:01 +00:00
John Ralls
4a8c2645b4 Release 2.7.6 2018-03-11 22:23:32 -07:00
John Ralls
8c9855a6bb Pass GTEST_ROOT and GMOCK_ROOT through to distcheck.
So that they don't have to be exported in the environment if they're needed.
2018-03-11 10:38:05 -07:00
Di Mang
9d2fdd41ae Add XML namespaces for all Account Hierarchy Templates.
ca, cs, da, de_AT, de_CH, el_GR, en_GB, en_IN, es_ES,
es_MX, fi_FI, fr_CA, fr_CH, fr_FR, hu_HU, it, ja, ko,
lt, lv, nb, nl, pl, pt_BR, pt_PT, sk, sv_AX, sv_FI,
sv_SE, tr_TR, zh_CN, zh_HK, zh_TW
2018-03-11 17:21:43 +01:00
Christopher Lam
496f0faf6f Increase default options dialog size
The old 400x400 was woefully inadequate for most options especially
options involving account trees.
2018-03-11 11:59:24 +08:00
John Ralls
3ccebde831 Update the Spanish translation from the Translation Project. 2018-03-10 15:56:00 -08:00
John Ralls
fc5dd9d2c8 Merge Bob Fewell's two bug fixes, PR302, into unstable. 2018-03-10 13:12:54 -08:00
John Ralls
21c5219937 Merge Bob Fewell's focus-fix PR304. 2018-03-10 12:31:04 -08:00
John Ralls
daca1312e7 Merge Bob Fewell's transient parent PR308 into unstable. 2018-03-10 12:12:48 -08:00
mpuels
fd0ba2c760 Fix typo 2018-03-10 12:07:02 -08:00
John Ralls
dc39110584 Put the crlf line-endings back on windows text files. 2018-03-10 11:24:44 -08:00
fell
fdfa6f528c Merge branch 'maint' into unstable 2018-03-10 11:06:59 +01:00
fell
d61cd79ae3 Minor fix in de.po 2018-03-10 10:23:56 +01:00
fell
df26146d2a Backport and review of commit c0fd3b3:
Remove all references to the now-defunct Yahoo! quote retrieval
2018-03-10 10:20:26 +01:00
John Ralls
867fdce4e4 Gcc-4.8 doesn't have std::codecvt.
Use boost::locale::conv::utf_to_utf instead.
2018-03-09 16:28:00 -08:00
John Ralls
10b7cbc257 Fix boost linking problem on Unbuntu 14. 2018-03-09 16:24:16 -08:00
John Ralls
c9f3c0760c Provide fallback value for test_core_dir in case it hasn't been built yet. 2018-03-09 13:48:36 -08:00
John Ralls
fbb172d096 Bug 793900 - 2.7.5: test failure: 105 - python-bindings.
unittest_support.py is in ${CMAKE_SOURCE_DIR} for a tarball build
and ${CMAKE_BINARY_DIR} for a vcs build. Look for it rather than
assuming it's in ${CMAKE_BINARY_DIR}.
2018-03-09 13:07:29 -08:00
John Ralls
c3180ab374 Operator << fix. 2018-03-09 13:07:29 -08:00
Geert Janssens
79dd7d69d0 Csv Importer - Prevent crash if number of saved columns is higher than actually detected ones.
I ran into this while trying to load a utf-16 encoded file
and loading a saved preset using utf-8. By applying the preset
the columns in the utf-16 file were no longer detected, but
the importer was still trying to read from a preset account column.
2018-03-09 00:34:56 +01:00
fell
6ee1c71d50 Merge branch 'maint' into unstable
PR #305, #:306
2018-03-08 23:04:18 +01:00
fell
6a1af63800 PR #306: Merge branch 'maint-transfer-01' of
https://github.com/DiMan/Gnucash into maint
2018-03-08 22:53:26 +01:00
Carsten Rinke
25883b17eb Bug764245 - multi-column reports include incorrect sub-reports 2018-03-08 18:55:20 +01:00
Geert Janssens
563d716161 Csv imp settings - internalize prefix handling
This information is not relevant outside of the settings code
The way it's implemented now each settings module defines its
own unique prefix and the generic code can just use it when
needed.
2018-03-08 18:55:20 +01:00
Geert Janssens
b577a7daf1 Csv import settings - undo rename of common methods
Use C++-style to call method with same name in parent class
2018-03-08 18:55:20 +01:00
Geert Janssens
751a3fec43 Csv importer - align file names
Done in a separate commit
2018-03-08 18:55:20 +01:00
Geert Janssens
e71f561236 Bug 793467 - GnuCash crashes when trying to open a binary file instead of a CSV
The cause was an uncaught exception from boost::tokenizer.
Fix and add test case.
2018-03-08 18:55:20 +01:00
Geert Janssens
6fe7d88548 Enable test to handle attempt to load non-existing file in csv importer 2018-03-08 18:55:20 +01:00
Geert Janssens
89c1534d51 Csv import - improve memory handling in the assistant class
Make it more RAII, in that whatever the class allocates, it should
also deallocate. This simplifies a couple of memory handling cases.
The only exception is the generic import matcher that for some reason
has chosen to deallocate itself. To be fixed when more importers are
converted to c++
2018-03-08 18:55:20 +01:00
Geert Janssens
1449d4ca68 Add some background info on memory management in CSV importers
As the assistant code combines multiple memory management models care should be taken
not to mix them up. The notes should give some insights in how to do this.

Also fix a few minor issues
- delete default copy and move constructor/assignment for the assistant gui class
- nullify a freed pointer
2018-03-08 18:55:20 +01:00
Robert Fewell
612cb5c69f Fix transient parent warnings for various import dialogs 2018-03-08 04:24:55 +00:00
Robert Fewell
59ae857142 Fix transient parent warnings for report dialogs 2018-03-08 04:24:55 +00:00
Robert Fewell
6cbf5dbba5 Fix transient parent warnings for various business dialogs 2018-03-08 04:24:55 +00:00
Robert Fewell
95329f2354 Fix transient parent warnings for various dialogs 2018-03-08 04:24:55 +00:00
Di Mang
6f587f8c16 clean up of account hierarchy templates for "de_DE" 2018-03-07 20:59:09 +01:00
Di Mang
edd89aafd0 clean up of account hierarchy templates for "C" 2018-03-07 20:54:18 +01:00
Robert Fewell
3fce50a29e Fix Segmentation fault when going to File->New
When selecting the File->New with existing register pages open a crash
can happen as the register pages get closed forcing a page-changed
signal to queue the page focus function when there is no page. Add a
call to remove the page focus function in the ..destroy_widget function.

Also with the addition of g_idle_remove before the add when page-changed
is emitted the page focus function only gets run once.
2018-03-07 16:47:08 +00:00