Move all of the #include <glib> to before the extern "C" blocks
so that the include guards will protect against headers inside
the extern "C" block also including glib.h.
1. Protect strlen call in gnucash_sheet_modify_current_cell to
prevent it from crashing.
2. Handle NULL selection in gnc_item_list_key_event when key is
GDK_KEY_Return so that new string in combo control is handled
correctly.
When you return from editing a scheduled transaction the highlight is
missing in the tree view. This is partly due to the model being
recreated when ever a change is made to a scheduled transaction. To
overcome this, the selected schedules are added to a GList which is
used in a new call back signal that has been added to indicate when the
model is populated. When this happens, the model is scanned for the
schedules that are in the GList so they can be reselected.
The GtkFileChooserButton was grabbing focus on load but was not
responding to it, possibly due to it already been created but hidden so
change it to a normal button that starts a GtkFileChooserNative dialog.
Also stop grabbing focus on the use of the toggle buttons to aid
navigation by keyboard.
Refactors and centralises SX GtkWidget property sensitivities logic
into one function, with the following logic:
* SX properties are disabled if the SX enabledOpt is FALSE
* if autocreate then enable 'notify when autocreating'
If a row requires an entry and is not visible when you press OK, the
entry is detached from the row and is confusing so scroll the tree view
to make the required row visible.
'pre-adjusting was formerly handled in html-acct-table.scm; 1b41d517
removed this balance option due to being unused for nearly 20
years. No need to test it anymore.
This stems from trying to handle file-name when calling export code.
Export code no longer require file-name, The export-code returns a
string in the html-document object instead. Remove all file-name
handling in reports. No backward compatibility issues because most
users would not copy a GnuCash >=4.6 report code onto a <4.5
installation.
Formerly, selecting --export-type EXT would dump the cryptic "Report
REPORTNAME has no export code". Modify to hint the user on acceptable
reports with export-code.
The parameters account-less-p, column-header, account-name,
logical-depth, label-cols in html-table-add-account-balances are
unused in code.
The removal of the parameter handling will not cause crash in a custom
report.
MinGW64 gcc silently ignores C prototype with no arguments, issuing
a missing prototype error instead. set_platform_locale must return
a free-able char* even if all of LC_ALL, LC_MESSAGES, and LANG are
unset.
There are a few subtle differences between unix makefiles and ninja
that sometimes go uncaught as the core devs usually use ninja.
This commit fixes two:
- don't depend directly on files in other source/binary directories.
Use a custom target to depend on instead
- recursively create target directories, as make doesn't automatically
If there are no entries in the list, the return height of
popup_get_height was 0 but when a confirmation check is made on true
height it returned 1 and so try and queue a resize and hence a loop so
in popup_get_height return 1 if list is empty.
Also to prevent this from happening entirely, disable the toggle button
when there are no entries in the list. The entry will still be active
so new list entries can be created as before.
- Move Macos specific bits to its own source file. As this is objective-c use .mm extension
- Use common function signature for Macos and Windows init function and include via common header file