Commit Graph

9048 Commits

Author SHA1 Message Date
Chris Shoemaker
cdf1e2e316 Convert the AccountType selection functions to work with GtkTreeSelections
from views using the filtered GncTreeModelAccountTypes.
   Privatize the unfiltered GncTreeModelAccountTypes - now, every accessible
     account-types TreeModel is a new GtkTreeModelFilter, and their 
     ref-counting is always the same.
   Add some tweaks to gnc-tree-model-account-types.[ch] from 
     Andreas Köhler <andi5.py@gmx.net>, plus the conversion of the Account 
     Dialog's account-types field to use the filtered GncTreeModelAccountTypes
     instead of a GtkListStore, but simplified to use the AccountType 
     selection functions.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13271 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-15 22:06:37 +00:00
Derek Atkins
22e48923c7 set the document title properly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13270 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-15 16:42:29 +00:00
Derek Atkins
25bb23b8d0 Small QOF build fix for dist and non-srcdir builds:
* lib/libqof/qof/Makefile.am: keep qofla-dir.h out of the dist
	* configure.in: look in builddir for qof includes.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13269 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-15 16:19:17 +00:00
Derek Atkins
f53542a337 Fix a typo; forgot one procedure name-change instance.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13268 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-15 15:16:45 +00:00
Chris Shoemaker
9808b664a5 Remove --enable-opt-style-install configure option.
That's one less thing to test.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13267 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-15 14:58:34 +00:00
Chris Shoemaker
387b8eca2f Changed balance calculations in three reports from using local
copies of buggy accountlist-get-comm-balance-at-date to using a new
   gnc:accountlist-get-comm-balance-interval provided by
   report-utilities.scm.  For the affected calculations, the balances no 
   longer exclude transactions on the first day of the reporting period.  
   This fixes http://bugzilla.gnome.org/show_bug.cgi?id=331005.

   Changed calculations:
     Income Statement: Total Expenses, Total Revenues
     Balance Sheet: Retained Earnings (*)
     Equity Statement: Retained Earnings (*), Net Income

   (*) The Retained Earning calculations use a start-date of "forever-ago"
   so they are not affected, but still converted to the new function.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13266 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-15 01:52:15 +00:00
Derek Atkins
1ae86e7c23 Mention libtool-ltdl-devel for FC4 if ltdl.h is missing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13265 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-15 01:33:07 +00:00
Derek Atkins
b9525a269e Andrew Sackville-West's patch to add display options and fix
the multicurrency patch.  Fixes #314554 and #330577.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13264 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-14 23:48:52 +00:00
Christian Stimming
fae052e775 Updated German translation - 3524 out of 3716 done.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13263 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-14 21:16:42 +00:00
Christian Stimming
3fc8a1b10b Make the gconf key wordings consistent across all of our schemas
files, as discussed and prepared on
http://wiki.gnucash.org/wiki/GConf_Wording .



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13262 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-14 21:03:36 +00:00
Christian Stimming
e081feb3a8 For latest aqbanking changes, define AQBANKING_NOWARN_DEPRECATED to
disable aqbanking compiler warnings because we will still use those
functions for some time to come.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13261 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-14 19:58:50 +00:00
Christian Stimming
54002fd73c Updated French translation by Didier Vidal <didier-devel@9online.fr>
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13260 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-14 19:41:31 +00:00
David Hampton
b3e92f5c24 Andreas Köhler's patch to convert the account types list in the
account edit dialog to a GtkTreeView/GtkListStore.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13259 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-13 23:45:18 +00:00
David Hampton
f4ee1b4226 Andreas Köhler's patch to prevent crash when voiding a transaction.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13258 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-13 23:21:09 +00:00
Derek Atkins
b4e25ac2e4 use glib macro instead of cast to convert pointer to int. Fixes #330581.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13257 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-13 16:23:30 +00:00
David Hampton
b85cd56cc5 Andreas Köhler's patch to wrap label text in a couple of dialogs.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13256 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-13 15:42:09 +00:00
Neil Williams
f07a0d5a73 correcting the logic in the error state
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13255 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-13 14:06:48 +00:00
Neil Williams
c2d72fa910 make it clearer that the return value of 0.0 is an error by using g_return_val_if_fail - cannot use assert as return value needs to be modified.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13254 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-13 11:22:36 +00:00
Neil Williams
8b22532713 preventing data loss in normal use - retain unsigned int check for zero as a special case error state indicating immediate abort.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13253 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-13 09:02:29 +00:00
Derek Atkins
effc0e7a9c Revert advanced-portfolio.scm r13244 because it breaks the report.
* src/report/standard-reports/advanced-portfolio.scm:
	  revert r13244 in this file because it's badly formed and
	  breaks the report.  Reopened bug #314554.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13252 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-13 05:05:55 +00:00
Derek Atkins
f06a206c07 Error out of autogen if one of the programs fails.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13251 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-13 03:32:10 +00:00
Derek Atkins
61562b683a depend on autoconf 2.59 and automake 1.9
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13250 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-13 03:28:50 +00:00
Neil Williams
f48ea7baa2 ChangeLog entry for bug 107876 fix in fin.c
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13249 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-13 00:15:15 +00:00
Neil Williams
b29d88dc90 Fix Bug 107876 - financial calculator would call exit(1) if calculation resulted in an interest rate of zero.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13248 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-13 00:12:45 +00:00
Chris Shoemaker
850dd5b341 Copy 'svn log -v' output from past 20 days to ChangeLog.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13247 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 23:13:06 +00:00
Derek Atkins
299562c8f9 Christian Neumair's desktop patch (#145545)
* src/gnome/gnucash.desktop.in
	* src/gnome/Makefile.am
	  Make the desktop more HIG-compliant.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13246 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 22:19:37 +00:00
Derek Atkins
73b2c29692 Mike Alexander's reconcile preselection patch (#112653).
* src/gnome/window-reconcile.c (gnc_reconcile_window_create_list_box):
        * src/gnome/reconcile-list.c (gnc_reconcile_list_new):
        * src/gnome/reconcile-list.h (gnc_reconcile_list_new):
          Don't pre-select the reconciled status for transactions after the
          statement date.
	Fixes #112653.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13245 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 22:09:08 +00:00
Derek Atkins
f0f7210097 Mike Alexander's patch to handle multiple currencies in reports. (#314554)
* src/report/standard-reports/portfolio.scm:
        * src/report/standard-reports/advanced-portfolio.scm:
          Report currency option
          Sort accounts
          Handle "nearest price" option better
        * src/report/standard-reports/cash-flow.scm:
          Handle multiple currencies better
        * src/report/standard-reports/transaction.scm:
          Add common currency option.
          Handle "nearest price" option better.
        * src/report/report-system/commodity-utilities.scm
          (gnc:exchange-by-pricedb-nearest):
          Use price nearest to noon on the day specified.
	Fixes bug #314554.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13244 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 21:46:36 +00:00
Chris Shoemaker
bcdf245a9b Don't continue to parse the expression if we've already reached the end.
Fixes http://bugzilla.gnome.org/show_bug.cgi?id=166840.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13243 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 20:31:11 +00:00
Derek Atkins
77099e3545 Boris Zbarsky's advanced-portfolio patch. (#311549)
* src/report/standard-reports/advanced-portfolio.scm:
	  Apply dividend and brokerage to moneyin and moneyout to more
	  accurately reflect account activity.  Fixes bug #311549.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13242 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 20:29:05 +00:00
Derek Atkins
f2c2caa5b0 Mike Alexander's Currency Scrub patch.
* src/engine/Scrub.c:
        * src/engine/Scrub.h:
          Try to fix transactions that have no currency, perhaps because
          of a log replay.  Workaround for bug #143720.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13241 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 20:03:46 +00:00
Derek Atkins
35808690de Des Dougan's patch to let the user choose the fancy-stylesheet image alignment. Fixes #314048.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13240 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 19:32:06 +00:00
Neil Williams
92a82737df ChangeLog for my commits today
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13239 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 18:56:10 +00:00
Neil Williams
d7309a5261 Ensuring get_random_double returns at least some decimal places more often than not.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13238 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 18:55:36 +00:00
Derek Atkins
1e2c372b0a Brian's patch to fancy-invoice to parameterize everything.
* src/business/business-utils/business-prefs.scm:
	* src/business/business-utils/business-utils.scm:
	  Add a bunch of new File -> Properties to describe the business.
	* src/business/business-reports/fancy-invoice.scm:
	  Parameterize all the various settings in the report so
	  they can all be set through the options or file->properties
	  settings.  Patch by "Brian", but slightly modified to not
	  hard-code some strings.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13237 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 18:31:30 +00:00
Neil Williams
80b8819625 Improve QOF_TYPE_COLLECT handling and recursive copies
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13236 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 18:28:56 +00:00
Neil Williams
87c16f98cb Check that files can be opened before
trying to work out their type. Use new QofBackendError value

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13235 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 18:25:23 +00:00
Neil Williams
1853bee97c New QofBackendError code if files cannot be read
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13234 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 18:24:59 +00:00
Derek Atkins
dd03084db4 Rework some APIs for the fancy-invoice set the client name font. #327545.
* src/business/business-core/business-core.scm:
	  add gnc:owner-get-name-dep and gnc:owner-get-address-dep APIs
	* src/business/business-reports/fancy-invoice.scm:
	  Change the font of the client company name to match the
	  owner company name.  Fixes #327545.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13233 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 16:16:20 +00:00
Derek Atkins
6dacd59a05 rename gnc:owner-get-address-dep to gnc:owner-get-name-and-address-dep
in preparation of some other patches.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13232 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 15:28:58 +00:00
Christian Stimming
4f50bbc80b Updated German translation - 3500 out of 3657 done.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13231 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 11:13:28 +00:00
Christian Stimming
c5dd052244 String cleanup; fix manual emulation of ngettext; fix some memory leaks due to g_strconcat, but not yet all
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13230 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 11:10:43 +00:00
Chris Shoemaker
465a454667 Use the price nearest to midday to get the value in the default currency.
Patch by Mike Alexander <mta.umich.edu>, closes bug #330361


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13229 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 05:21:09 +00:00
Chris Shoemaker
358f677a4b Take #2: Fixups for two botched gnc-plugin-page-report.c commits tonight.
1) Correctly handle gc protection for non-boolean 'edited_reports' field.
   2) Pass list argument instead of immediate to gfec_apply.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13228 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 04:13:29 +00:00
Chris Shoemaker
0dccf4e0cb Gracefully handle errors in report options.
This prevents the whole program from crashing when unrecognized report
   options are used.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13227 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 02:40:35 +00:00
Derek Atkins
c9bef42eda Um, quote the sed script so it actually works right. Oops.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13226 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 01:59:02 +00:00
Derek Atkins
75ef10c0d1 rework the initialization to require autoconf-2.59 and automake-1.9
parse the version out of the AC_PACKAGE_VERSION macro, so
we still only need to set it in one place.  This should
solve a number of old-automake related problems people have seen.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13225 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-11 23:24:01 +00:00
Derek Atkins
87fd8b71dc set the document title properly AFTER type-str is set.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13224 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-11 22:50:28 +00:00
Chris Shoemaker
c1e65f6925 gc_protect SCM reports while they are in the GHashTable.
Also, use gfec to be a bit more defensive about potential errors while 
   running a report.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13223 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-11 21:07:32 +00:00
Derek Atkins
a52e1d9e13 don't need to scm_gc_{un,}protect_object on SCM_BOOL_F.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13219 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-11 20:22:40 +00:00