The attached patch contains some immediate bug fixes for the SQL
back end, and it adds and error message string + accessor/mutator
to Backend. Also, in xaccAccountCommitEdit(), added the use of
PWARN_GUI to display the error message.
The bug fixes in the SQL backend involved converting the *_QUERY
macros to functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7485 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome/window-register.c (gnc_register_delete_cb): Change the
order of window deletion to not cause a crash.
* src/gnome/window-register.c (regWindowSimple),
(regWindowAccGroup): Only return the GNCSplitReg, not the whole
regData. Fixes a bunch of existing and potential crashes.
* src/gnome/window-main.c (gnc_main_window_gl_cb):
* src/gnome/window-acct-tree.c
(gnc_acct_tree_window_toolbar_open_cb)
(gnc_acct_tree_window_menu_open_subs_cb)
(gnc_acct_tree_window_menu_open_cb)
(gnc_acct_tree_window_activate_cb):
* src/gnome/top-level.c (gnc_html_register_url_cb):
Modify to not necessarily expect a RegWindow for creation of a
ledger view. Fixes a bunch of existing and potential crashes.
* src/gnome/gnc-split-reg.c (gnc_split_reg_delete_cb): Removed;
dead.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7484 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/register/ledger-core/gnc-ledger-display.c
(gnc_ledger_display_template_gl): Extended to allow a template GL
without a specific transaction being displayed at the time of
creation.
* src/engine/SchedXaction.h: Removed some deprecated function defs.
* src/gnome/gnc-split-reg.c (gsr_default_jump_handler): Don't make
assumptions about the window-register.c code that we can't
support, and don't let it be responsible for too much. Fixes
recent serious register crashes.
* src/gnome/dialog-scheduledxaction.c
(scheduledxaction_editor_dialog_destroy):
* src/gnome/dialog-sxsincelast.c (sxsincelast_destroy):
Close the ledger_display on window teardown. Fixes sx-related
register crashes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7482 57a11ea4-9604-0410-9ed3-97b8803252fd
* po/*.po: Updated translations (merged from 1.6 branch plus
updates from the Translation Project).
* po/nb.po: New filename for norwegian (bokmal) translation -- it
used to be stored under no.po but that is no longer.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7481 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/import-export/Transaction-matcher.c:
-Don't show match with probability less than 1, so we don't
end up showing the whole account.
-Fix crash when importing a transaction twice
-Copy the online id to the reconciled transaction, so the
match will be remembered.
-Do not consider transaction with an online_id kvp frame as
potential match, as they have previously been downloaded
online.
-Steal a better pixmap from gnome drop down menu.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7480 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/import-export/ofx/gnc-ofx-import.c: MAJOR improvement to
investment support. All transactions created from an investment
account are now already balanced. Explicitely support Dividend
Reinvestment transactions which will now directly create a
income account -> stock account transaction, and Income
transactions which will directly create a
income account -> cash account transaction.
Support memorising the income account association. Several
stock account can use the same income account if desired.
* src/import-export/Transaction-matcher.c: Various bug fixes.
* src/import-export/Account-matcher.c and
src/import-export/gnc-generic-import.h: Support a new mode
of operation for the account matcher to allow selection of
an account without touching the online_id kvp frame.
Currently used for income account selection or creation.
* src/import-export/generic-import.glade: Set default size
to a more reasonable 800x600, since the Auto Shrink trick
doesn't work for everyone.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7479 57a11ea4-9604-0410-9ed3-97b8803252fd
Add an unpost button. It does nothing at this point.
* business/business-gnome/glade/invoice.glade
Add an unpost button.
* business/business-core/gncInvoice.c
change the readonly message to point to unposting invoices
NOTE: This just adds the icon and some new strings.. Functionality
to be added soon.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7478 57a11ea4-9604-0410-9ed3-97b8803252fd
not each time the view of the transaction is refreshed in the
register. #92156
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7476 57a11ea4-9604-0410-9ed3-97b8803252fd
Implement a generic Account Mapper for the import routines.
Still needs a GUI.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7475 57a11ea4-9604-0410-9ed3-97b8803252fd
a multi-line split) ignores whatever the user entered if you leave the
cell with the <enter> key instead of the <tab> key.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7473 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/import-export/ofx/gnc-ofx-import.c: Dynamically generate
a pixmap to display match confidence graphically.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7471 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/import-export/Transaction-matcher.c
* src/import-export/generic-import.glade: First round of
transaction matcher UI changes. Create a pseudo-widget in first
column to select the action to be taken with the transaction.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7469 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome/dialog-sxsincelast.c
(sxsincelast_tc_row_unsel, sxsincelast_tc_row_sel): Now [again]
uses the read-only register to show the relevant template
transaction, so the user has context about any variables they're
being asked to fill in values for.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7468 57a11ea4-9604-0410-9ed3-97b8803252fd
GNC MDI data structure, not a child structure that can be created and
deleted willy-nilly by the Gnome MDI code. The current child
(i.e. window) can easily be found from the main data structure.
#94972
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7467 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome/window-register.c (regWindowLedger): If we
gtk_widget_show_all the correct widget [the window], then it's
available for setting its size and changing the style and whatnot.
* src/gnome/orig-window-register.c (regWindowLedger): Hack for
Bug#97640; re-init the style after we've shown the widgets to
affect a "style change", which lets the GUI nature of the cells
[combos, autocomplete] init and function.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7465 57a11ea4-9604-0410-9ed3-97b8803252fd
pending so that the right checks are done when leaving the
transaction. Fix spelling errors in function names.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7459 57a11ea4-9604-0410-9ed3-97b8803252fd
Add a callback API for the qif-import druid. Use that callback
when the qif-import button is pressed. Make the qif-import button
sensitive only when the qif-import module is loaded (i.e. only when
the callback function is non-NULL).
* import-export/qif-import -- set the make_druid callback for the new-user
dialog.
* gnome/Makefile.am -- remove dependency on qif-import library.
* src/makefile.am -- re-order import-export after gnome
* engine/Transaction.c -- allow deletion of a non-connected Splits
(fixes a SEGV problem)
* engine/Account.c -- send an event whenever an account balance is updated.
Fixes bug # 97689
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7456 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome/window-register.c (regWindowLedger): Fix menu
extension setup by moving it after gnc_register_setup_menu.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7455 57a11ea4-9604-0410-9ed3-97b8803252fd
preferences also need to be changed to reference the new panel name.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7454 57a11ea4-9604-0410-9ed3-97b8803252fd
* gnome/window-reconcile.c: re-enable the 'jump to blank'
* gnome/window-register.c: re-enable the 'jump to blank' by calling into
the split-reg's implementation.
fixes bug #97680
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7451 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome/gnc-split-reg.c, src/gnome/glade/register.glade:
Replace the term "reinitialize" by "Remove Transaction Splits".
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7446 57a11ea4-9604-0410-9ed3-97b8803252fd
various levels in the code. Take advantage of this in the Business
Invoice code. #96024
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7445 57a11ea4-9604-0410-9ed3-97b8803252fd
* /src/report/standard-reports/cash-flow.scm: new report
which shows inflow and outflow of money to a set of accounts
* src/report/standard-reports/standard-reports.scm: add
cash-flow.scm to gncscmmod_DATA
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7444 57a11ea4-9604-0410-9ed3-97b8803252fd
in the DIST tarball -- let it be generated from i18n.h.in, which
IS distributed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7440 57a11ea4-9604-0410-9ed3-97b8803252fd
the dialog (use the output from vsprintf, not the input)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7439 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome/dialog-sxsincelast.c: Use GNCSplitReg over
GNCRegWidget.
* src/gnome/dialog-scheduledxaction.c
(schedXact_editor_create_ledger): Use GNCSplitReg over
GNCRegWidget.
* src/gnome/glade/register.glade: Moved a bunch of the
previously-shared widget definitions into seperate places to be
accessed by window-register.c and gnc-split-reg.c.
* src/gnome/window-register.c: Massive code-sucking into
gnc-split-reg.c; this file now only handles the details of being
the register window: dealing with dates and the extended menus and
whatnot.
* src/gnome/gnc-split-reg.c: Added; a better implementation of
gnc-regWidget. All the "common" register-editing code has been
moved here from window-register.c.
* src/register/ledger-core/gnc-regwidget.c: Removed; replaced with
src/gnome/gnc-split-reg.c.
* src/register/register-gnome/gnucash-date-picker.c
(gnc_date_picker_new): Call gtk_widget_show_all rather than
gtk_widget_realize in order to setup the calendar to a state
sufficient for subsequent calls.
* HACKING: Added description of how to start GnuCash in GDB.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7437 57a11ea4-9604-0410-9ed3-97b8803252fd
completion character for the account cells. Fixes bug #97098
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7436 57a11ea4-9604-0410-9ed3-97b8803252fd