Commit Graph
39 Commits
Author SHA1 Message Date
J. Alex Aycinena 91f76f4eea Correct error in search dialog where results sub-window(s) is(are) erroneously created.
To reproduce the error, open Gnucash (for example with --nofile argument), open a Find Transactions dialog (Edit->Find), open a Find Customer dialog (Business->Customer->Find Customer), open a Gnucash Preferences dialog (Edit->Preferences) and change some preference (for example, under the Register tab, select Use system theme colors). Each time a preference is changed the Find dialogs get wider as a new results sub window is created and added to the dialog. This happens because any time gnc_gui_refresh_all is called, which is the case when a preference is changed, and on other occasions as well, the refresh_handler in dialog-search.c is called for any open search dialog which calls gnc_search_dialog_display_results which, in turn, erroneously creates and adds the sub window. If the search dialog was initially created with a result_cb, as is the case for Find Transactions, the results sub window should never be created. If it was not, as is the case with Find Customer and all other calls, only one sub window should be created per dialog and it should only be refreshed if it already exists.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22387 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-14 22:12:02 +00:00
J. Alex Aycinena a401751448 Add ability to import a csv column to 'notes' field; fix 'OK' and 'New Account' button widths
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22271 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-07-25 22:28:53 +00:00
J. Alex Aycinena 9fa5035107 Remove g_free of msg two lines before it is returned from function.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22204 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-01 22:59:48 +00:00
J. Alex Aycinena 365be68a84 Properly handle Windos end-of-line markers in determining xml file versions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22038 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-15 23:14:58 +00:00
J. Alex Aycinena f6a3b152fd Add to the includes in Makefile.am, which were implicitly included by until taken out in r21880; this gets make check complete
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21910 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-29 06:32:09 +00:00
J. Alex Aycinena 7c03e237b2 Update xml file backend to recognize a newer version file on load attempt, not load, and alert user of need to upgrade Gnucash.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21908 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-29 01:12:30 +00:00
J. Alex Aycinena 8a2f3a7152 Update txf.scm to reflect changes to US Income Tax Forms and Schedules for 2011.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21889 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-26 00:09:51 +00:00
J. Alex Aycinena 8668a07796 Correct memory leak found with Valgrind.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20886 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-07-10 02:02:38 +00:00
J. Alex Aycinena 920176bca2 Reverse changeset 20663; wrong place to correct memory leak found with Valgrind.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20809 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-07-01 03:50:58 +00:00
J. Alex Aycinena ceb3097728 Correct memory handling of scm_to_locale_string per guile manual
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20763 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-06-16 00:11:18 +00:00
J. Alex Aycinena 75c97e4705 Correct memory handling of scm_to_locale_string per guile manual
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20758 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-06-13 04:42:27 +00:00
J. Alex Aycinena 61208eb617 Correct memory handling of scm_to_locale_string per guile manual
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20757 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-06-13 03:49:50 +00:00
J. Alex Aycinena 3e258a2b39 Correct memory handling of scm_to_locale_string per guile manual
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20756 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-06-13 03:11:59 +00:00
J. Alex Aycinena f8c342413b Correct memory handling of scm_to_locale_string per guile manual
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20755 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-06-13 01:05:41 +00:00
J. Alex Aycinena 6e3ac5d193 Correct memory handling of scm_to_locale_string per guile manual
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20744 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-06-09 22:40:54 +00:00
J. Alex Aycinena 8d57666936 Correct memory leak found with valgrind
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20743 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-06-09 21:43:36 +00:00
J. Alex Aycinena f311fe5fd2 Correct memory leaks found with valgrind
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20741 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-06-09 00:29:41 +00:00
J. Alex Aycinena 60aa509039 Fix memory leaks found with valgrind
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20739 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-06-08 16:46:32 +00:00
J. Alex Aycinena b3779bb878 Correct memory leak found with Valgrind.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20735 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-06-04 03:37:38 +00:00
J. Alex Aycinena e6574c37e8 Correct memory leak found with Valgrind.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20734 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-06-03 23:54:55 +00:00
J. Alex Aycinena b83e53a9c5 Correct memory leak found with Valgrind.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20733 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-06-03 08:24:27 +00:00
J. Alex Aycinena 981bbfd6cc Correct memory leak found with Valgrind.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20719 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-29 03:23:05 +00:00
J. Alex Aycinena 9f6080b566 Correct memory leak found with Valgrind.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20718 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-28 23:32:33 +00:00
J. Alex Aycinena 186a7e621c Correct memory leak found with Valgrind.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20687 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-23 22:26:34 +00:00
J. Alex Aycinena 9b0f629718 Correct memory leak found with Valgrind.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20663 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-19 23:20:23 +00:00
J. Alex Aycinena 96d93595f6 Correct memory leaks found with Valgrind.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20659 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-18 23:06:09 +00:00
J. Alex Aycinena fdf8346f0b Correct memory leaks found with Valgrind.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20645 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-15 00:37:03 +00:00
J. Alex Aycinena 0e2a9d1f55 Correct memory leaks found with Valgrind.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20644 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-14 16:17:07 +00:00
J. Alex Aycinena c370528908 Correct memory leaks found with Valgrind.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20631 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-11 22:17:56 +00:00
J. Alex Aycinena b8e8f51330 Improve txf scheme routines to handle invalid tax-entity-types more gracefully.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20611 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-06 00:02:54 +00:00
J. Alex Aycinena 32dd7413dd Add validation of tax-entity-type in book relative to locale-based tsx.scm
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20608 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-03 00:06:11 +00:00
J. Alex Aycinena 556a70b9a8 Correct memory leaks found with valgrind
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20405 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-12 21:48:16 +00:00
J. Alex Aycinena 4516270399 Correct memory leaks found with valgrind
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20378 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-05 23:29:12 +00:00
J. Alex Aycinena c17a907f08 Correct memory leak found with valgrind
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20364 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-03 00:30:10 +00:00
J. Alex Aycinena 1b9023e78f Modify Tax Info on Account Page to display or not display sub-account info based on whether row is expanded.
Re-apply changes reverted in r20251. The only difference between this commit and r20207 is that, contrary to the recommendation given in gnc-tree-view.h, "Use GNC_TREE_VIEW_COLUMN_DATA_NONE if you plan on using a non-model data source for this column", it cobtinues to use "GNC_TREE_MODEL_ACCOUNT_COL_TAX_INFO". Using "GNC_TREE_VIEW_COLUMN_DATA_NONE" generates problems later in the "gnc_tree_view_add_text_column" routine when it tries to set up sorting for the column ("CRIT <Gtk> gtk_tree_sortable_set_sort_func: assertion `sort_column_id >= 0' failed").

Define a new column, GNC_TREE_MODEL_ACCOUNT_COL_TAX_INFO_SUB_ACCT, in gnc-tree-model-account.c filled with gnc_ui_account_get_tax_info_sub_acct_string.

Modify gnc-tree-view-account.c to define a tax_info_data_func that displays only the the data in the GNC_TREE_MODEL_ACCOUNT_COL_TAX_INFO model column if the row is expanded; otherwise it combines it with the data in the GNC_TREE_MODEL_ACCOUNT_COL_TAX_INFO_SUB_ACCT model column. Modily the view creation function to use the new tax_info_data_func for the text after having first set it to GNC_TREE_MODEL_ACCOUNT_COL_TAX_INFO to prevent the problem mentioned above, thereby overriding it.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20359 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-01 23:09:37 +00:00
J. Alex Aycinena 9968d038a2 Modify Tax Info on Account Page to display or not display sub-account info based on whether row is expanded.
Revert changes made in gnc-ui-util.c in rev 20039 and instead put those changes in new function: gnc_ui_account_get_tax_info_sub_acct_string.

Define a new column, GNC_TREE_MODEL_ACCOUNT_COL_TAX_INFO_SUB_ACCT, in gnc-tree-model-account.c filled with gnc_ui_account_get_tax_info_sub_acct_string.

Modify gnc-tree-view-account.c to define a tax_info_data_func that displays only the the data in the GNC_TREE_MODEL_ACCOUNT_COL_TAX_INFO model column if the row is expanded; otherwise it combines it with the data in the GNC_TREE_MODEL_ACCOUNT_COL_TAX_INFO_SUB_ACCT model column. Modily the view creation function to use the new tax_info_data_func.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20207 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-30 20:34:55 +00:00
J. Alex Aycinena f70cb1fe2f Fix typo
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20058 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-11 00:15:02 +00:00
J. Alex Aycinena 04078234c0 Add info about sub-accounts to Tax Info column on Accounts page.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20039 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-08 23:52:13 +00:00
J. Alex Aycinena c44254c424 Remove leading character N from tax code, but only if it is there, and remove leading blank character when no tax code.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19616 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-09-27 15:58:52 +00:00