Commit Graph

2562 Commits

Author SHA1 Message Date
Andreas Köhler
ff513a4fcc Fix to compile on systems with glib < 2.9.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13787 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-15 18:10:22 +00:00
David Hampton
dc28af130f The kvp_frame_get_string() function returns a pointer to an internal
string.  Mark it 'const' to prevent callers from trying to free it.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13786 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-15 16:40:03 +00:00
David Hampton
39fad14808 Add a per-account "hidden" flag, and update the accounts page and the
account quickfill to respect this flag.  Also flip the "hide zero
balance" flag to a "show zero balance" flag for symmetry.  Implements
87077.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13785 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-15 03:52:44 +00:00
David Hampton
e1fdd98f98 Allow the account tree view callback to run in addition the the page
callback.  Fixes 303995.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13784 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-15 00:14:19 +00:00
David Hampton
da7b7787c0 Clarify text regarding the lines in the register. Fixes 338479.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13783 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-14 22:56:06 +00:00
David Hampton
8fd1f3a93a Fixes to compile with gcc4.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13782 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-14 22:44:28 +00:00
Andreas Köhler
14ce276877 Initial support to decode old, ambiguous data files, missing an encoding declaration, with the help of the user.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13781 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-14 17:38:57 +00:00
Derek Atkins
d9c78bd0fe Fix a bunch of 64-bit compile issues.
* src/engine/Transaction.c:
	* src/engine/test/test-date.c:
	* src/backend/file/test/test-dom-converters1.c:
	  Fix 64-bit compile: Use G_GUINT64_FORMAT instead of %llu or lld
	  for Timespec seconds.
	* src/app-utils/gnc-ui-util.c:
	  Fix 64-bit compile issues:
	  - Use QOF_SCANF_LLD instead of GNC_SCANF_LLD.
	  - Use QOF_SCANF_LLD and G_GINT64_FORMAT properly.
	  - replace %lld with G_GINT64_FORMAT



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13780 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-14 16:45:10 +00:00
David Hampton
4ee1e008a8 Add a new event for when a split associated with account is changed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13779 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-14 05:37:34 +00:00
David Hampton
5d4b4c7b22 Improve the performance of the listen_for_accounts function. Never
rebuild the list_store from scratch as the time required to sort each
account insertion takes forever with a large number of accounts.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13778 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-14 05:36:42 +00:00
David Hampton
5f3491f7d3 Finish cleaning up old uses of NS_ISO. Use the C is_currency function
for both C and Scheme calls.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13777 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-14 03:49:14 +00:00
David Hampton
9c24273f83 Replace NS_ISO with NS_CURRENCY. This substitution was already
performed by the called functions, so there this change is purely
cosmetic.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13776 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-14 02:36:00 +00:00
Andreas Köhler
9b47d47ec4 Fix loop of split account reassignments in xaccGroupMergeAccounts, because the commit of one split will change the list itself. Potentially fix 337048.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13773 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-13 19:39:37 +00:00
David Hampton
751e720a9f Update the determination of what's a currency and what isn't. Fixes
337804.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13771 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-12 15:22:57 +00:00
Andreas Köhler
8b4f3a1570 Fix leakage of old books.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13769 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-11 20:49:35 +00:00
Derek Atkins
dd321449ce * lib/libqof/qof/qofbookmerge.c: fix a few memory leaks.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13768 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-11 15:20:04 +00:00
Derek Atkins
422bf34bfe Get gnucash to build properly with the new QOF changes (0.6.4+)
* src/backend/file/sixtp-utils.c:
	  use QOF_SCANF_LLD to read 64-bit numbers.
	* src/gnome-utils/QuickFill.c:
	* src/engine/gnc-pricedb.c:
	* src/engine/Transaction.c:
	* src/engine/gnc-commodity.c:
	  convert gnc_string_cache* APIs to CACHE_* APIs.
	* src/engine/Account.c:
	  Properly convert usage of SAFE_STRCMP() to safe_strcmp()
	* src/engine/kvp-scm.c:
	  #include <qof.h> instead of <kvp_frame.h>
	* src/engine/gnc-engine.c:
	  Update the method used to shutdown QOF.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13765 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-10 22:20:12 +00:00
Derek Atkins
f9d1f3e42f Create a QOF_SCANF_LLD (because we cannot use the printf version).
Keep the deprecated GNC_SCANF_LLD defined in terms of the new
QOF_SCANF_LLD.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13764 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-10 22:13:46 +00:00
Derek Atkins
5028d178ea Revert r13749. Wedon't need to explicitly #include glib.h
because qof.h includes it for us.  Also, this changeset contains
lots of other stuff that has nothing to do with glib.h.  Note
that this revision wont build, but I'll fix that shortly.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13763 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-10 21:49:44 +00:00
Derek Atkins
18700492c5 Back out r13752. We don't need to explicitly #include glib.h
because qof.h includes it for us.  Besides, it doesn't fix
the whole problem.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13762 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-10 21:14:34 +00:00
David Hampton
454aabb1bd Eliminate some unnecessary work by comparing the account name in the
quickfill with the actual account name, and only rebuilding the
quickfill if they differ.  This improves GnuCash's response somewhat,
but still needs more improvement.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13758 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-08 23:52:20 +00:00
David Hampton
3dacd15900 Include the svn revision number in the about dialog.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13754 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-07 23:39:53 +00:00
Derek Atkins
aaa13ff290 * lib/libqof/qof/qof.h: QOF requires <glib.h>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13753 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-07 19:46:36 +00:00
Neil Williams
ba61372f97 Replacing deprecated code.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13750 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-07 18:52:28 +00:00
David Hampton
f17cbc8281 Patch from chpe@gnome.org to use the gtk_show_about_dialog to avoid an
inconsistency in the GtkAboutDialog code. Fixes 337634.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13744 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-07 15:53:52 +00:00
David Hampton
dcf55d0a40 Generate the gnc:count-data tags by hand so that the attribute will be
written properly with all versions of libxml2.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13743 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-07 04:26:59 +00:00
David Hampton
f31638e1cd Make the entire UI (menus and toolbar) insensitive when the progress
bar is showing.  Replaces the code to make the Save/Save As menus
insensitive while saving.  Should prevent a whole class of bugs caused
by gtk commands sneaking in and causing non-recursive code to be
entered recursively.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13741 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-06 03:44:50 +00:00
Chris Lyttle
7f6ca4d36c update to release 1.9.4
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13739 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-06 03:02:49 +00:00
David Hampton
79c0b4f77d Serialize access to the "Save" and "Save As" commands. Fixes 148905.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13732 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-03 22:26:39 +00:00
David Hampton
73e481da0c Use the name "Currency" internally instead of ISO4217. Make it
possible to edit the "get quotes" flag on currencies.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13731 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-03 21:39:25 +00:00
David Hampton
3ed67b5ba8 Change the access key on the "Change Split" button. Fixes 336836.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13728 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-02 22:10:16 +00:00
David Hampton
2fdbed9939 Change the access key on the Transaction menu to not conflict with the
Tools menu.  Fixes 336829.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13727 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-02 21:59:28 +00:00
Andreas Köhler
843ad075c8 Set search column for account types lists interactive search. Fix 336833.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13726 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-01 23:06:23 +00:00
David Hampton
9a3be57d8d Mike Alexander's patch to get currency quote retrieval working again,
and some other small currency quote bugfixes.  Closes 333572.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13723 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-04-01 05:45:07 +00:00
David Hampton
e615f2ec5a Restore sorting transactions by date posted. Fixes 335190.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13719 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-31 06:38:47 +00:00
Joshua Sled
3233622edc Tighten the grammar around quoted strings. Test-case fixes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13717 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-31 00:00:43 +00:00
Joshua Sled
6dbc113082 Bugs#308554, 334811: Add basic validation and test-cases for invalid expressions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13715 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-30 19:48:30 +00:00
David Hampton
a4952b7cae Fix the dialog so that the 'Cancel' button cancels all changes made
since the dialog was opened. (c.f. The HIG section on explicit apply
windows.)  The 'OK' button is now always sensitive.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13714 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-30 18:00:44 +00:00
David Hampton
36e7673159 Work around the fact that a validating XML parser barfs on gnucash's
use of an attribute in an undefined namespace.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13713 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-30 17:20:29 +00:00
Joshua Sled
1d07017814 Bug#334777: Non-placeholder leaf Expense account in 'Simple Checkbook' example account tree.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13712 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-30 15:14:24 +00:00
Christian Stimming
c9c2b97a67 Updated Spanish translation by Eneko Lacunza
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13710 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-30 08:36:05 +00:00
Christian Stimming
fe7ee4544f Move gnc:options-add-subtotal-view! options from income-statement,
account-summary, and balance-sheet to option-utilisies.scm. Try to
clarify the wording of the option -- any native english speaker please
feel free to correct the wording even more.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13709 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-28 21:19:29 +00:00
Christian Stimming
d7d2d47903 Revert report date option to the 1.8 state where the stock
gnc:options-add-report-date! was used and allowed many potential
relative dates.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13707 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-28 20:30:58 +00:00
David Hampton
04b104aa65 Change the title of the category view to track changes in the
highlighted group name. Fixes reopened 334783.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13704 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-28 02:04:07 +00:00
Christian Stimming
69d880e715 Stick with vertical padding of 2 as discussed in bug#334920.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13703 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-27 20:33:34 +00:00
David Hampton
c369d4771a Add a reconcile button to the toolbar of a register page.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13702 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-26 00:21:54 +00:00
David Hampton
37d712666a Add a context menu to the reconcile window. Fixes 120830.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13701 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-25 23:51:28 +00:00
Derek Atkins
1ce73dada8 link against GUILE_LIBS when building the test-link test app (#336007)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13700 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-25 21:03:46 +00:00
David Hampton
089197fd7f Fix the lack of action strings in the popup menu. The problem occurs
because the menu is populated before the the item edit widget is
created.  Add a list store to track these strings (what the old
menustrings list did) which is then passed off to the item_edit widget
when that is created.  Fixes 334592.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13699 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-25 16:35:31 +00:00
David Hampton
13aaa7ae85 Add toolbar icons for Postpone and Cancel. Fixes 114267.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13697 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-24 22:16:54 +00:00