Commit Graph
8837 Commits
Author SHA1 Message Date
Chris Shoemaker fccb17ff12 Replace check_open() in setter API with internal qof_{begin,commit}_edit().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13130 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-06 16:18:52 +00:00
Derek Atkins be29e4e5dd Revert Chris' change in r13128.
Keep in the error check for db-transactional data storage
until the objects can be modified to support db-transactional
autocommit (by calling BeginEdit/CommitEdit internally instead
of checking that the caller did so).  But revert for now to
make sure a caller has called BeginEdit in order to make
sure the data gets "saved" (assuming a SQLish backend).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13129 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-06 06:45:25 +00:00
Chris Shoemaker 69dc61aac4 Remove check_open() calls from Transaction setters.
These calls were probably a copied idiom from the Split setters in this
   same file, but Split and Transaction use completely different mechanisms
   for managing dirty state.  Transactions inherit from QofInstance and so
   use the .dirty field.  Splits inherit from QofEntity, so their
   check_open(split->parent) calls are their way of letting someone know
   they've changed.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13128 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-06 04:50:02 +00:00
Derek Atkins e9e033f60e - better fix for #accounts
- don't g_list_free the account_list



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13127 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 21:10:19 +00:00
Neil Williams fc0a9336ec remove obsolete strings at end of po file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13126 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 21:05:42 +00:00
Neil Williams b06260d9ca Allowing gnucash to build on a vanilla FC3 install
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13125 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 20:59:36 +00:00
Derek Atkins 58fd1ba067 A few test changes to make sure we don't fail when we're very unlucky.
- make sure a random group always has at least two accounts
	  - fix "make random transaction" to tell us when we don't
	    have at least two accounts.
	  - free the results of xaccGroupGetSubAccounts().



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13124 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 20:38:46 +00:00
Derek Atkins d1422bd6be * src/backend/file/Makefile.am: link against libcore-utils.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13123 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 20:00:33 +00:00
Derek Atkins 5a9af7ef30 use g_strdup -- cannot feed SCM_STRING_CHARS() back into guile.
(fixes a weird test-case failure in some cases).



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13122 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 19:58:20 +00:00
Neil Williams 78855e5370 updating for latest merge, 3662 translated
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13121 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 19:06:56 +00:00
Derek Atkins eb4a06281c Commit msgmerge prior to 1.9.0 release.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13120 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 17:50:56 +00:00
Neil Williams 7c475385ea removing unneeded headers and tidying up debug code
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13119 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 17:00:04 +00:00
Derek Atkins aab6a13412 * src/backend/file/test/Makefile.am: link against libcore-utils.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13118 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 16:58:50 +00:00
Neil Williams c31f9f6e66 Deprecating qof_log_set_level_global in favour of qof_log_set_level_registered.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13117 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 12:25:45 +00:00
Neil Williams 325d74fd90 Improve documentation of QofBackendProvider
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13116 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 10:58:38 +00:00
Neil Williams bd4211ad2e support logging of qofchoice by default
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13115 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 10:58:13 +00:00
Neil Williams 9a66ebdf0b line-wrapping tweak
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13114 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 10:57:28 +00:00
Neil Williams 6e50303f69 ignoring generated symlink 'g-wrapped' in svn
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13113 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 10:51:04 +00:00
Neil Williams baeb72b172 reverting change to qofsession.c from r13084, already replaced in r13097
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13112 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 10:48:12 +00:00
Neil Williams 0a388ef203 New test for recursive copying of entities between sessions
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13111 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 10:13:37 +00:00
Neil Williams 5cd32c9228 typos
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13110 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 10:12:21 +00:00
David Hampton fab1d29944 Get gnucash to compile with gcc4.1.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13108 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 03:17:28 +00:00
Derek Atkins 52514db6fa Some gnc-numeric fixes (more to come).
- Fixes for handling reciprocal values.
	  - Mark a lot of places where potential overflow bugs
	    are not handled.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13107 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 01:41:27 +00:00
Joshua Sled 0f39ebdeeb fix gnc:numeric lexical range.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13106 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 00:16:38 +00:00
Joshua Sled 8f79f2da9a Emit all used namespaces; add XML datafile schema.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13105 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-04 23:56:56 +00:00
David Hampton 4330d520fd Don't just install the schema files, also install the gconf objects
into the database. Reverts accidental change made as part of r12863.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13104 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-04 22:44:38 +00:00
David Hampton 247cb10afd Remove extra close parenthesis.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13103 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-04 22:41:21 +00:00
Joshua Sled 17e78bdd29 Seperate report titles from headlines; leave title as a string, use headline for richer markup. Related to Bug#329369.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13102 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-04 20:49:00 +00:00
David Hampton cb3d92579e Add disambiguating prefix to the single letter column titles.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13101 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-04 20:46:32 +00:00
David Hampton 21adfc1779 Dave Herman's patch to fix #327630 by copying missing "function"
(gnc:html-document-set-style!) from the plain to both the "fancy" and
"easy" stylesheets.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13100 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-04 20:36:56 +00:00
David Hampton ea587fdf3c Fix a couple of comments.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13099 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-04 20:22:38 +00:00
David Hampton 311f5bdd57 Andreas Köhler's patch to perform the i18n on column headers before
calling the generic tree view code instead of performing it a couple
steps removed. It also introduces the translatable strings "P"
(placeholder) and "Q" (quotes) used in toggle column headers.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13098 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-04 20:22:03 +00:00
Joshua Sled 443571f859 Fix file-backend options; respect runtime value changes. Fix file-compression option name in prefs dialog.
2006-02-04  Joshua Sled  <jsled@asynchronous.org>

	* src/gnome-utils/glade/preferences.glade: Fix name of
	file-compression option.

	* src/backend/file/gnc-backend-file.c (gnc_backend_new): Setup
	option initial values; register configuration-change notification.
	(retain_changed_cb, compression_changed_cb): Add.

	* src/backend/file/gnc-backend-file.h (struct FileBackend_struct):
	Move backend options into backend struct.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13097 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-04 17:56:23 +00:00
Chris Shoemaker 9291a1a514 Hook-up the new budget value estimation dialog.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13096 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-04 16:34:57 +00:00
Chris Shoemaker 186c3c0f50 New dialog for estimating budget values from past transactions.
Minor string and glade tweaks.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13095 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-04 16:32:30 +00:00
Chris Shoemaker 17927cdfe8 gnc_date_edit_set_gdate(): A GDate setter for GNCDateEdit is useful, too.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13094 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-04 16:29:00 +00:00
Chris Shoemaker 0219a9d23e Add getter gnc_date_edit_get_gdate() for getting the value of a GNCDateEdit
widget as a GDate.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13093 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-04 15:17:51 +00:00
Chris Shoemaker edb52e4d32 Factor out some code from gnc-budget into Recurrence so that the budget
estimation code can use stand-alone recurrences to estimate budget values.
  Also, tweak the initial budget so that it begins at the beginning of the 
  current month.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13092 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-04 15:12:09 +00:00
Chris Shoemaker bbb8d1be33 Teach PrintAmountInternal() to correctly handle a reciprocal denominator.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13091 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-04 15:06:19 +00:00
Chris Shoemaker 85a99a1987 Add some test-cases for gnc_numerics using the reciprocal denominator.
Even though we don't explicitly ask for this representation, certain
   calculations (e.g. those involving GNC_HOW_DENOM_SIGFIGS in the loan    
   druid and soon in budgets) will return numbers using this representation.

   Unfortunately, these numbers aren't handled correctly by most of the
   gnc_numeric functions, like the ones for comparison, equality testing,
   arithmetic and conversion.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13090 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-04 05:37:50 +00:00
Chris Shoemaker 5631500dda Use the string cache for budget name and description.
Dirty the book when the budget changes.
   Remove some obsolete budget code.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13089 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-03 21:29:06 +00:00
David Hampton bf7d801c00 Re-title the search dialog based upon the menu used to invoke it.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13088 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-03 14:45:47 +00:00
David Hampton 109f83f517 Filter out another post gtk2.4 property.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13087 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-03 07:19:55 +00:00
David Hampton 665e684050 Andreas Köhler's patch to allow explicit specification of which
columns in a tree view expand.  Updated to automatically mark a column
as expandable if it is the only visible column.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13086 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-03 06:26:50 +00:00
David Hampton 8b49655349 Change the default visibilities of the GncTreeViewAccount widget to
only show the account name column.  This is the most commonly used
case for this widget.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13085 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-03 04:38:01 +00:00
Joshua Sled 0324351b44 Fix overall and ".log"-specific file-retention issues: Bug#329670 (++).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13084 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-03 02:09:29 +00:00
David Hampton b9724e3063 Don't call g_utf8_strlen with a NULL pointer.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13083 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-03 00:47:40 +00:00
David Hampton 6e63f6b452 Better handling in the model event handling functions. Noticeable in
the commodity and price trees when adding/deleting the first/last
item.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13082 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-03 00:31:50 +00:00
David Hampton 88aff74d31 Fix a crash when manipulating commodities before crating the first
account.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13081 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-03 00:28:16 +00:00
David Hampton fa0b6374c3 Re-enable events before processing the book-opened hook. Solves some
strange problems in the account


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13080 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-03 00:24:26 +00:00