Commit Graph

2265 Commits

Author SHA1 Message Date
David Hampton
06c9aba901 Correctly open an account and its sub-accounts. Fixes 330745.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13197 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-11 03:54:24 +00:00
Derek Atkins
11a9890323 Better handling of event removal. This allows us to actually
clean up, but also makes sure we don't destroy the handler
list out from under us as we're processing events.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13196 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-10 22:43:19 +00:00
Derek Atkins
72a28d2063 check that we can find g-wrap-wct.h.
detects that we're running on a "broken" system like Ubuntu.
This is in response to #330539.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13195 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-10 15:32:39 +00:00
Derek Atkins
c4dd2190b2 added README.dependencies to the dist. Fixes #330614.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13194 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-10 15:04:12 +00:00
Derek Atkins
f04e5c24bc Test for an empty string when translating. (Fixes #330179)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13193 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-10 15:00:28 +00:00
David Hampton
1d13d5db55 Pass argc by reference instead of value so g_option_parse_context can
update it.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13192 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-10 05:44:08 +00:00
David Hampton
d1a477d98e Don't initialize the display at option parsing time. This way
--add-price-quotes can run from a cron job.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13191 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-10 04:17:38 +00:00
David Hampton
45606b3bf0 Update for known F::Q 1.11 quote sources.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13190 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-10 02:13:21 +00:00
Derek Atkins
e371fb4e39 Print more debugging when the guile version check fails.
* macros/legacy_macros.m4: when the guile version check fails,
	  print out the version of guile that we found in order to
	  aid debugging.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13174 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-09 16:28:01 +00:00
David Hampton
604cba4f4d Better fix for the code that updates the buy/sell action based on the
number of shares entered in a transaction.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13173 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-09 07:26:40 +00:00
David Hampton
7bb17ee723 Fix the code that updates the buy/sell action based on the number of
shares entered in a transaction.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13166 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-09 05:03:29 +00:00
David Hampton
dd05a94ffb A couple of performance enhancements.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13163 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-09 04:37:17 +00:00
Chris Lyttle
571ae25509 update to release 1.9.0
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13157 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-09 04:16:25 +00:00
David Hampton
124ef42e61 Set the default button.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13151 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-08 06:00:36 +00:00
Christian Stimming
1565077f47 Update glossary
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13145 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-07 21:06:26 +00:00
David Hampton
c602ef1af2 Filter out more post gtk2.4 properties.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13139 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-07 04:47:45 +00:00
David Hampton
7bbae9f949 Fix some issues when invoking from a non-utf8, non latin1 locale. Use
g_print to print to the console. Convert from popt to g_options for
glib >= 2.6.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13138 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-07 03:59:17 +00:00
David Hampton
c9166ee15a Scott Oonk' patch to fix a couple of problems with right justified
cells in the register.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13137 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-07 01:56:45 +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
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
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
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
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
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
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
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
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
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
Derek Atkins
3c92b8702f Specify the output xml encoding as utf8.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13078 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-02 15:55:16 +00:00
Derek Atkins
7ecd0df390 Allow specification of invoice sub-type when creating search dialog (#117354)
* src/gnome-search/dialog-search.c:
	* src/gnome-search/dialog-search.h:
	  Modify the gnc_search_dialog_create() API to add an optional
	  "type label" parameter, so you can manually set the string
	  presented to the user for what they are searching for...
	* src/business/business-gnome/dialog-order.c:
	* src/business/business-gnome/dialog-vendor.c:
	* src/business/business-gnome/dialog-customer.c:
	* src/business/business-gnome/dialog-job.c:
	* src/business/business-gnome/dialog-employee.c:
	* src/gnome/dialog-find-transactions.c:
	  Pass NULL into new search API parameter
	* src/business/business-gnome/dialog-invoice.c:
	  Modify how we call the search dialog.  Send in different
	  sets of parameters depending on whether we're searching for
	  a Customer Invoice, Vendor Bill, or Employee Expense Voucher.
	  Pass in a type_label as well so the dialog can properly label
	  the "new" button.  This fixes the UI Bug #117354.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13071 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-01 22:57:30 +00:00
Derek Atkins
757ab689ca Re-sort an invoice entry list when an entry date changes (#320566)
* src/business/business-core/gncInvoice.[ch]:
	  Add new API: gncInvoiceSortEntries()
	* src/business/business-core/gncEntry.c:
	  re-sort the parent when the entry date changes.
	  Only re-sort when the existing date is non-zero (i.e.
	  don't re-sort on the initial setting of the date).
	  Fixes #320566.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13069 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-01 21:49:06 +00:00
Derek Atkins
5c94f54a4b Need to put the new split into the txn as well as the acct
before we call xaccSplitSetBaseValue().  Fixes #325890.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13068 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-01 21:23:54 +00:00
Derek Atkins
1adcc37a8a Get libqof to link against glib and gmodule.
* configure.in: include gmodule in GLIB_LIBS
	* lib/libqof/qof/Makefile.am: link libqof against glib.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13058 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-31 16:29:01 +00:00
Joshua Sled
32790cb169 Do the Locale-two-step to fix graphs in non-C-locales. Bug#328773.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13055 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-31 03:34:26 +00:00
Derek Atkins
da38b024da Need to insert splits into accounts before called xaccSplitSetBaseValue().
* src/business/business-core/gncInvoice.c:
	  Make sure to insert new splits into an account before we
	  set the Base Value..  Otherwise it will fail to set the
	  value properly.  Closer to fixing 325890, but it's still
	  not completely fixed.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13053 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-30 17:17:33 +00:00
Joshua Sled
89348c97f2 Change since-last-run final-page text from "apply" to "Apply". Bug#329125.
Incidental ./glade-fixup changes to print.glade.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13051 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-30 14:47:04 +00:00
Derek Atkins
8a0f2cf7e3 Clear up the billterm data lossage (due to a broken enum definition).
* src/business/business-core/file/gnc-bill-term-xml-v2.c:
	* src/business/business-core/file/gnc-bill-term-xml-v2.h:
	  Add a new API to "find-or-create" a billterm so all the
	  code is collated in one location.
	  Add more debugging during the scrub phases.
	* src/business/business-core/file/gnc-invoice-xml-v2.c:
	* src/business/business-core/file/gnc-vendor-xml-v2.c:
	* src/business/business-core/file/gnc-customer-xml-v2.c:
	  Use the new bill-term find-or-create API
	* src/business/business-core/gncBillTerm.c:
	  add some additional debugging
	* src/business/business-core/gncBillTerm.h:
	  The Billterm Type ENUM must start at 1, not zero.  The data file
	  now appears to properly save itself without destroying data.
	  Fixes rest of #328790.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13049 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-30 05:57:08 +00:00