Commit Graph
100 Commits
Author SHA1 Message Date
David Hampton fc72475bef Update translator comments.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16089 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-15 02:54:56 +00:00
David Hampton 8f6abfd96e Programmatically generate check file names from the title input by the
user.  Fixes #436255.  Also reload the check format combobox each time
a custom format is successfully saved.  Fixes #436394.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16088 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-15 02:47:06 +00:00
David Hampton 0964eebb45 Limit the values of randomly generated numbers a little bit more.
This prevents the test-lots case from dying when it attempts to divide
one split into two splits, and the ration of the two splits ends up
producing numbers less than 0.01.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16082 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-13 20:54:57 +00:00
David Hampton f2feb3016e Use the last second of the statement date when determining whether
clears transaction should be checked when the reconciliation dialog is
created.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16056 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-06 04:35:53 +00:00
David Hampton 5990e0be74 Fix several problems with the QOF book merge code. Use unique error
codes in the qof_book_merge_commit() function.  Fixes 343730.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16055 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-06 00:27:43 +00:00
David Hampton 5277bb1d87 For report pages, make the "Refresh" menu item synonymous with the
Reload toolbar button.  Fixes 381737.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16053 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-05 23:23:29 +00:00
David Hampton 54deadecda Now that check printing has been rewritten, there no longer a need to
have the custom translation fields always enabled.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16052 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-05 22:20:09 +00:00
David Hampton cf71fd4795 When saving a check format, query the user for the title to write into
that format.  Fixed #434409.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16051 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-05 21:46:06 +00:00
David Hampton 3eb070ab80 Fix two bugs in custom check printing. One swaps the placement of the
amount(number) and amount(words) when printing directly from the
custom check page of the print dialog.  (No bugzilla.)  The other bug
is that GnuCash fails to write the guid in newly saved check
files. (Bug #434407)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16046 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-05 19:25:04 +00:00
David Hampton 9ec864163d Collapse the various "idata" fields into a single field attached to
the QofInstance object.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16042 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-03 03:56:31 +00:00
David Hampton cad2164810 Collapse the various "version" and "version_check" fields into a
single pair of fields attached to the QofInstance object.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16041 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-03 02:56:56 +00:00
David Hampton 62dce55fb8 Fix a problem copying a guid from an object to a local variable.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16040 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-03 02:56:15 +00:00
David Hampton 285a5216b3 Move QofInstance guid property from its public data structure to its
private data structure.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16039 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-02 05:42:41 +00:00
David Hampton 4f6fd1b090 Move QofInstance book properties from its public data structure to its
private data structure.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16038 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-02 03:18:46 +00:00
David Hampton 7d3c6b9a38 More a large number of the QofInstance properties from the public data
structure to a private data structure, with access to them as properties
of the object.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16037 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-05-02 01:57:49 +00:00
David Hampton fd26e126ec Remove the macro versions of qof_begin_edit and qof_commit_edit_part<x>.
The function call versions of these routines should be used instead.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16033 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-30 17:06:48 +00:00
David Hampton ce65024722 Start putting an API in place for access to the members of the
QofInstance object.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16025 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-30 05:33:33 +00:00
David Hampton 80a0403ebb Collapse two functions into their only caller. Move a third function
to the same file.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16003 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-28 02:40:54 +00:00
David Hampton a654961e1b Use gtk_widget_show, not gtk_widget_show_all. The latter screws up the
synchronization between the edit menu and which items are shown in the
window.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15995 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-23 02:06:19 +00:00
David Hampton 65bdd3a246 New version of the file from Zach Sadecki that include three different
image sizes.  Fixes #432425


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15994 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-23 01:56:42 +00:00
David Hampton e37f251ac8 Update ignore properties.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15993 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-22 22:15:00 +00:00
David Hampton 6b1d6e0ffd Use simpler behavior for setting the "1 xxx = 2 yyy" exchange rate sample
strings in the lower right corner of the transfer dialog.  Don't try and
duplicate the logic that sets the number in the exchange rate field, just pull
the the existing number straight out of the widget.  Fixes #408703.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15992 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-22 22:02:16 +00:00
David Hampton 78c862c325 Move the price manupilation buttons to the right side of the dialog. For
languages where one of the button labels is very long, this prevents the
dialog from becoming excessively wide.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15991 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-22 21:20:06 +00:00
David Hampton a5d420c9a4 Add the Moldovan Leu. Fixes #414064.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15990 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-22 20:22:06 +00:00
David Hampton ecd3e31481 Changing the transaction number can affect the split sort order and
thus the running account balances.  Fixes #386074.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15989 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-22 20:04:53 +00:00
David Hampton 6582c6b95b Catch and short circuit the case of trying to get the balance of an account
that is so new it hasn't had a currency assigned yet.  Fixes #432227.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15988 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-22 19:29:53 +00:00
David Hampton 14da30d2bf Allow NULL pointers when calling xaccAccountGetFullName. Fixes #432314.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15987 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-22 18:30:48 +00:00
David Hampton 434905ea1a Remember the current session when an option dialog boxes is opened,
and close it when the session is closed.  Fixes #394074.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15976 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-22 05:59:51 +00:00
David Hampton c0dd45b5d2 Suspend qof events for the interval between swapping the books between
two sessions, and installing the new session as the current session.
The books end up same before and after, but there is small interval in
the middle where any call to get the current book will get bogus
results.  Fixes #414783.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15975 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-22 05:22:51 +00:00
David Hampton 2b16fa1f41 Use GNC_TYPE_NUMERIC instead of GNC_NUMERIC.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15967 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-21 20:07:23 +00:00
David Hampton d6d784617a Disable the close callback while updating reports. Fixes #416986.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15959 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-21 19:18:16 +00:00
David Hampton b1248d827c Validate whether or not an account exists before calling various
functions in Account.c.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15954 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-21 18:31:39 +00:00
David Hampton e1d77fb1d1 Relax the check on whether xaccAccountGetCommodity is called with a
valid commodity.  This function is called from many places without
testing to see if the account is non-NULL.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15953 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-21 18:30:20 +00:00
David Hampton cfa50383a5 Replace a function name mapping with the real function call.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15936 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-19 05:09:34 +00:00
David Hampton 29a5d3fbca Fix an error in a test data file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15935 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-19 04:19:03 +00:00
David Hampton 4c7b6f45fa Replace silent failures with noisy assertions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15934 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-19 04:18:19 +00:00
David Hampton 468b8995bf Finish moving account specific properties from the public data
structure to a private data structure.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15933 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-19 04:16:39 +00:00
David Hampton 973cacb3c0 Fix mistake in property install.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15922 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-18 05:11:56 +00:00
David Hampton c6a609b8f7 Move more account properties from the public data structure to a
private data structure, with access to them as properties of the
object.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15921 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-18 04:50:34 +00:00
David Hampton 8a8fb70a8a Make sure to distribute all the check files in the tarball.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15907 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-16 04:30:20 +00:00
David Hampton aa8e077947 Mark the number-to-word code as non-translatable because, as the
comment in the code says, adding a word-by-word translation is almost
surely wrong for almost every language.  This change was recommended
by the translation manager.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15903 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-15 18:53:56 +00:00
David Hampton c089bf0fbd More moving of properties from the public data structure to a private
data structure, with access to them as properties of the object.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15891 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-14 22:48:22 +00:00
David Hampton eac1893c3d The root account name should never be visible, so no need to mark it
for translation.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15887 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-14 18:22:58 +00:00
David Hampton 78587b5a02 Ignore generated files
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15886 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-14 16:19:12 +00:00
David Hampton 6536479c48 Begin the GObjectification of the Account object. Move some
properties from the public data structure to a private data
structure, and enable access to them as properties of the object.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15885 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-14 16:01:55 +00:00
David Hampton 4a8089b4c5 Add some const declarations.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15857 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-09 23:28:09 +00:00
David Hampton 13d841930b Add some begin_edit/commit_edit checks.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15856 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-09 23:26:43 +00:00
David Hampton 7e6d9f8a5f Re-enable -Wunused checks.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15855 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-09 23:24:35 +00:00
David Hampton a2269e623e Fix compiler complaints about dereferencing type-punned pointers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15849 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-07 18:24:53 +00:00
David Hampton 65c3b8d3c5 Conditionally remove some more deprecated functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15840 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 04:44:07 +00:00
David Hampton df0cfeddc2 The function name xaccSplitDateOrder is misleading, so rename it to
xaccSplitOrder.  Add a new xaccSplitOrderDateOnly function.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15838 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 02:31:28 +00:00
David Hampton d2f7b84a4e Remove some deprecated functions. Bump version numbers were GnuCash
sets the "disable deprecated" flags.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15834 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 01:15:15 +00:00
David Hampton 392cd816a3 Balance ENTER/LEAVE calls on some functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15829 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 00:19:08 +00:00
David Hampton 8c332ae13b Implement idea from Mike Alexander (in #346063) to key lot scrubbing
off the environment variable GNC_AUTO_SCRUB_LOTS instead of commenting
it out of the code.  This make it easier for developers to test/users
to try lot scrubbing.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15791 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 04:58:07 +00:00
David Hampton 09f8e28a83 Patch from Klee Dienes <klee@mit.edu> (bugzilla #420550) to
re-implement gnc_lot_get_earliest_split and gnc_lot_get_latest_split
using xaccSplitDateOrder.  This greatly simplifies the functions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15790 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 04:36:16 +00:00
David Hampton d4a33b2311 Print a different warning messages if unsaved changes have existed for
longer than an hour or a day.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15789 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 04:16:57 +00:00
David Hampton b4ca2231db Fix window corruption problems when adding prices to the price
database. (#376298)
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15788 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 03:57:04 +00:00
David Hampton 3a612f804f Play nicer with recent releases of glib that have tightened what's
considered a valid key in a key/value file. This change will cause
gnucash to rewrite any opened state file into a new version where all
key names fit the new glib requirements.

This code was originally committed to trunk as #15458 on 1/28/07, and
then backed out with #15461 on 1/29/07.  Backward compatibility
support for this code was committed to the 2.0 branch in #15460 and
was released as part of 2.0.5.  Now that 2.0.5 has now been out for
six weeks, this commit puts the original changes back into trunk.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15787 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 03:40:14 +00:00
David Hampton cdc906c887 Allow the user to specify the maximum width of the page labels in the
main window (#338161).  Also add a tooltip showing the account full
name to the page labels in the main window (#343239).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15774 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-02 03:42:21 +00:00
David Hampton e6e85a13ec Allow the base gconf path to be specified at run time, either via an
environment variable or via a command line option.  Based on a patch
from James Radley.  Implements #328762.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15760 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-27 03:06:09 +00:00
David Hampton 5edeb504e2 Add an option to change the tab closing behavior. The two choices are
to move to the tab immediately to the left, or to move to the most
recently viewed tab.  Implements #346314.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15759 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-27 01:55:38 +00:00
David Hampton 9ca73549ce Add a preference for printing "***" immediately before and after all
text fields on checks.  Implements enhancement request #420224.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15758 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-27 01:10:09 +00:00
David Hampton 498c193a63 Record a couple of user suggestions for things to do with gnucash's
gtkrc file.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15756 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-26 03:02:55 +00:00
David Hampton eab98d53f8 Don't crash if an example account file has no root account. Also
filter the file names (*xea) when reading accounts directories.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15755 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-26 02:58:23 +00:00
David Hampton 72b00e4027 Add preferences support for printing the date format immediately below
the date (GtkPrint only), and for setting the font used by the check
printing code (GnomePrint and GtkPrint).  The fonts actually used by
GnomePrint seem very limited compared to those used by GtkPrint, but
the font size specification always seems to be honored.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15753 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-24 18:17:38 +00:00
David Hampton 2c8690b5d8 Add preferences support for a GtkFontButton widget.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15752 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-24 18:14:08 +00:00
David Hampton f506b75fdb If the specified check format guid can't be found then select the
first check format in the list.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15741 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-20 05:19:20 +00:00
David Hampton 13f1be4d84 Use a single key for check position names instead of a series of
manufactured key names, one key per name.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15739 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-20 01:08:12 +00:00
David Hampton a0e5db4497 Add GUID numbers to check formats. Detect duplicate check format
files (by guid) and show a warning dialog to the user.  Remember the
users selected check format by GUID and not by index.  Add text
clipping when using GnomePrint.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15734 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-18 17:37:53 +00:00
David Hampton cfba9052a5 In the Print Checks dialog, provide an easy way for users to save the
data from the "Custom Format" page to a check format file.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15724 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-15 05:20:58 +00:00
David Hampton 0cfc36f955 Add support for printing the check number, the action, and the real
memo line.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15719 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-15 02:24:07 +00:00
David Hampton 19fdc8ff94 In the print check dialog, the notes field has always incorrectly been
called the memo field.  This fix corrects that misnaming.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15717 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-15 00:55:52 +00:00
David Hampton ddd108fcf3 Another 64 bit fix.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15714 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-14 02:21:07 +00:00
David Hampton fae458ad81 Make the new check printing code compile on systems that don't have
glib 2.12.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15710 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-13 15:18:11 +00:00
David Hampton 2af48fcb16 Convert the check printing code from Scheme to C. Add support for
using the GtkPrint API when compiled against gtk+ 2.10 or later.  Add
support for reading check description files instead of hard coding
check descriptions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15709 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-13 03:43:24 +00:00
David Hampton 5246632fb4 ISO 8601 requires a four digit year.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15708 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-13 01:18:42 +00:00
David Hampton 1c379e731d Fix two instances where a function name didn't get changed for the
swig-style naming.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15703 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-09 20:16:36 +00:00
David Hampton 37e232fc10 Find the root based off the current account and not the book. It
matters in this situation as the accounts haven't actually been added
to the book yet.  Fixes #414118.




git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15677 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-03-03 16:41:42 +00:00
David Hampton ad231f4c57 Patch from Bill Nottingham to remove redundant ofx checks.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15675 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-02-28 05:57:19 +00:00
David Hampton 541e1f7156 Destroy no longer used template accounts when reading scheduled
transactions from a file.  Fixes #412673.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15674 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-02-28 04:42:44 +00:00
David Hampton b0d1f0d6a6 Remove some unused variables and function declarations.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15667 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-02-26 05:40:46 +00:00
David Hampton 8627d4c024 Guile 1.8 seems to be pickier about inexact->exact producing integer
numbers.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15653 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-02-25 06:19:35 +00:00
David Hampton 6357b489a8 Show a busy cursor while deleting an account, in case the deletion
takes a while.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15650 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-02-23 03:53:08 +00:00
David Hampton 069c21bcfe When deleting an account, correctly display the new account to which
transactions will be moved.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15649 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-02-23 03:42:11 +00:00
David Hampton 8f7a9afccc Update the example account trees to include a new root account.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15648 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-02-23 01:24:57 +00:00
David Hampton 6fbada92ec Remove all traces of the AccountGroup data structure. Accounts now
point directly to their parent and have a simple GList of children.
(The old method was alternating data structures in the form Account,
AccountGroup, Account, AccountGroup, etc.)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15647 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-02-23 01:23:31 +00:00
David Hampton 88456c2b3c Simplify function parameters.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15639 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-02-21 06:59:50 +00:00
David Hampton 43277fef39 Remove obsoleted files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15638 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-02-21 02:05:55 +00:00
David Hampton c8e74e95e1 Remove extra argument to gtk_list_store_set. Fixes #409758.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15635 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-02-19 23:00:24 +00:00
David Hampton a23e280d8d Prevent a crash when reading a new state file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15468 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-30 04:35:34 +00:00
David Hampton 44e614a706 Back out #15458 on trunk. This is temporary until after 2.0.5
(w/backward compatibility support) has been released for a while, and
then this patch will be re-committed.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15461 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-29 05:30:32 +00:00
David Hampton 4209e9bd88 Play nicer with recent releases of glib that have tightened what's
considered a valid key in a key/value file.  This change will cause
gnucash to rewrite any opened state file into a new version where all
key names fit the new glib requirements.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15458 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-28 21:58:20 +00:00
David Hampton 10d17674e6 Remove unused functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15448 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-28 06:20:43 +00:00
David Hampton 0927d97115 Fix glib28 utils on non-win32 system.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15447 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-28 06:19:45 +00:00
David Hampton 8e40824e19 Update for the new base level of gtk2.6. Add all the gtk2.6
properties that have been stripped out in the past.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15433 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-27 04:33:37 +00:00
David Hampton 440e1e7323 Update for the new base level of gtk2.6.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15432 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-27 04:31:29 +00:00
David Hampton 0cced7a60b Make trunk compile again on FC4.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15431 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-27 04:29:54 +00:00
David Hampton 6be85d06d0 Make the dependency requirements consistent with the other gnc-fq-xxx
programs.  This program does not use the additional requirements, but
since its used as a diagnostic to find problems with gnucash, it
should be helpful to have them listed here.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15416 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-22 00:48:58 +00:00
David Hampton a789aaee70 Don't abort when F::Q fails to return a quote. GnuCash may have
more quote sources to query.  Fixes #387410.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15397 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-19 05:53:30 +00:00
David Hampton 17f3998566 Fix cases where something that should be a GType isn't defined
properly.  Problem pointed out by Steve Langasek and is listed as
Debian bug 406378.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15381 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-01-15 00:52:04 +00:00