Commit Graph
2246 Commits
Author SHA1 Message Date
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
David Hampton 7940c68a7a Make the cut/paste change compile on gtk 2.4 systems.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13048 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-30 04:57:46 +00:00
David Hampton f990299ddb Remove extraneous carriage returns from text that will be put into a
GtkLabel (since labels know how to wrap text).


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13046 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-30 03:13:28 +00:00
David Hampton c98c4d9794 Dave Herman's patch to suppresses extraneous entries table entries in
reports when there are no files specified for the "logo pix" file or
the "header pix" file.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13044 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-30 01:56:13 +00:00
David Hampton d9f937a004 Eskil Bylund's patch from Epiphany to enable cut/paste. Extended to
support GtkTextView widgets as well as GtkEditable widgets.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13043 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-30 01:49:35 +00:00
David Hampton 1992088cff Andreas Köhler's patch to fix a problem where switching windows
repeatedly confusing the Windows menu.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13039 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-29 23:19:34 +00:00
David Hampton 2d984ba480 Andreas Köhler's patch to fix commodity editor warnings/crash.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13037 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-29 22:50:39 +00:00
Joshua Sled eb8f68139b SX Since-Last-Run now reports transaction-creation errors to the user, degrades (somewhat) gracefully; report cleanup.
2006-01-29  Joshua Sled  <jsled@asynchronous.org>

	* src/report/utility-reports/welcome-to-gnucash.scm: register
	menu item for self.

	* src/report/report-gnome/report-gnome.scm
	(gnc:report-menu-setup): Remove report menu-item creation.

	* src/gnome/dialog-sxsincelast.c (create_each_transaction_helper):
	Degrade more gracefully in the face of errors during scheduled-transaction
	creation; record errors in-band rather than simply to the log, and
	display them to the user.  Resolves bugs: 151157, 167858, 151487.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13035 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-29 19:32:48 +00:00
David Hampton 6bd55f970d HIG changes for the "radio option" query dialog.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13034 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-29 19:23:25 +00:00
David Hampton 67b746b581 Michael Wahlbrink's cvs to svn changes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13029 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-29 18:21:54 +00:00
David Hampton aa02242b0a Use a format string of "%s" when building a message dialog from a
single string.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13021 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-29 16:08:51 +00:00
David Hampton 1bd014def0 HIG rework. Remove newlines from dialog message strings. Give some
dialogs more descriptive button labels.  Clean up the code around the
file save query dialog.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13019 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-29 14:53:19 +00:00
Joshua Sled 9b0321bb9f Maintain the html-document title while rendering so the progress bar is setup with the right name. Bug#327650.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13016 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-29 00:19:09 +00:00
Joshua Sled c506f3d188 Remove gnc-split-reg "create" and "capabilities" flags and dead code.
2006-01-28  Joshua Sled  <jsled@asynchronous.org>

	* src/gnome/gnc-split-reg.c: Remove a lot of dead code.
	(gnc_split_reg_new): Remove create-flags and
	disallowed-cap[abilitie]s; add simple "read-only" flag.

	* src/gnome/gnc-plugin-page-register.c
	(gnc_plugin_page_register_actions): remove stock-missing icon for
	"edit exchange rate" action.
	(GncPluginPageRegisterPrivate, gnc_plugin_page_register_init) 
	(gnc_plugin_page_register_create_widget): Replace "disallow
	cap[abilitie]s" with specific read-only flag.

	* src/gnome/dialog-scheduledxaction.c (schedXact_editor_create_ledger): 
	* src/gnome/dialog-sxsincelast.c (create_to_create_ledger) 
	(create_autoCreate_ledger, create_created_ledger): Set read-only
	flag on register.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13014 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-28 23:31:30 +00:00
David Hampton afbad0352a Add an include so gnucash compiles on gnome2.13 again.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13013 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-28 23:22:28 +00:00
Joshua Sled f93228f504 Be a bit more defensive about the plugin page's window being a GncWindow, not necessarily a GtkWindow.
2006-01-28  Joshua Sled  <jsled@asynchronous.org>

	* src/gnome/gnc-plugin-page-register.c (gnc_plugin_page_register_cmd_reverse_transaction) 
	(gnc_plugin_page_register_cmd_view_sort_by) 
	(gnc_plugin_page_register_cmd_view_filter_by) 
	(gnc_plugin_page_register_cmd_transfer) 
	(gnc_plugin_page_register_cmd_reconcile) 
	(gnc_plugin_page_register_cmd_jump): Treat
	GNC_PLUGIN_PAGE(page)->window as a GncWindow, not necessarily and
	immediately a GtkWindow; fixes issues with GTK cast warnings on
	GncEmbeddedWindow usages of the register.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13012 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-28 22:42:10 +00:00
Joshua Sled 6db18440d2 Fix UI of SX-related registers.
2006-01-28  Joshua Sled  <jsled@asynchronous.org>

	* src/gnome/ui/gnc-sxed-window-ui-full.xml: Add.
	* src/gnome/dialog-scheduledxaction.c (gnc_sxed_menu_entries) 
	(schedXact_editor_create_ledger)
	* src/gnome/dialog-sxsincelast.c (create_autoCreate_ledger) 
	(create_created_ledger, create_to_create_ledger) 
	(gnc_sxsld_menu_entries): Setup SX-related registers to only
	display and allow relevant register functionality. Bug#327642.

	* src/gnome/gnc-plugin-page-register.c
	(gnc_plugin_page_register_actions): Change stock icons for
	BlankTransaction and ScheduleTransaction Actions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13011 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-28 21:44:28 +00:00
Joshua Sled a3f4252965 Change libgsf/goffice libraries and paths to be gnucash-specific.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13003 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-28 18:57:29 +00:00
Joshua Sled 41ba299b51 Bugs 327775, 327641: minor scheduled-transaction fixes.
2006-01-25  Joshua Sled  <jsled@asynchronous.org>

	* src/gnome/glade/sched-xact.glade: Bug#327775: consistency in
	case of dialog title.
	Bug#327641: fix glade-spec'ed response-codes for OK/Cancel
	buttons, thus letting logic work again.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13002 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-28 18:45:48 +00:00
Christian Stimming 62275638c8 Revert r12998 -- we only require aqbanking-1.0.0
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13001 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-28 18:00:11 +00:00