Commit Graph

5276 Commits

Author SHA1 Message Date
Dave Peticolas
3ddf61ef35 * src/app-file/gnc-file.c: suspend engine events when
creating new session


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6397 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-20 11:00:37 +00:00
Dave Peticolas
558133fb79 *** empty log message ***
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6396 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-20 10:57:24 +00:00
Dave Peticolas
94d024ff09 add app-utils to g-wrap path
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6395 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-19 23:41:54 +00:00
Dave Peticolas
a209d16f69 *** empty log message ***
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6394 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-19 11:41:06 +00:00
Dave Peticolas
bf0bc57a5a * src/engine/gw-engine-spec.scm: g-wrap event types enum
* src/engine/gnc-session.c: set book backend to NULL before
destroying old book in gnc_session_load

* src/engine/Transaction.c: do checks & events when setting
slots for transactions and splits.

* src/engine/GNCId.h: add a const typedef for GNCIdType


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6393 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-19 11:40:37 +00:00
Dave Peticolas
e9bc21cf28 * src/backend/postgres/test/test-db.c: add a test for backend
transaction rollback due to stale data in the engine


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6392 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-19 11:40:10 +00:00
Dave Peticolas
ee1d594ca4 * src/backend/postgres/txn.c: fix bugs restoring one transaction
from database.

* src/backend/postgres/putil.h: add EXEC_QUERY

* src/backend/postgres/price.h: add pgendGetCommodity

* src/backend/postgres/price.c: add pgendGetCommodity


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6391 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-19 11:39:57 +00:00
Dave Peticolas
5b18193b14 * src/app-utils/test/test-component-manager: test g-wrapped
component manager

* src/app-utils/test/Makefile.am: add test-component-manager

* src/app-utils/gw-app-utils-spec.scm: g-wrap component manager

* src/app-utils/gnc-component-manager.h: add some SCM api

* src/app-utils/gnc-component-manager.c : add some SCM api


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6390 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-19 11:39:31 +00:00
Linas Vepstas
1a01c0c43c add documentation
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6389 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-18 14:51:50 +00:00
Dave Peticolas
15161dabf3 start g-wrapping register-core
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6388 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-18 10:47:31 +00:00
Dave Peticolas
465fa68ee6 * src/gnome-utils/gw-gnome-utils-spec.scm: add wrapping for widgets
and other api

* src/backend/postgres/test/test-db.c: add check for initial
account balances

* src/backend/postgres/PostgresBackend.c: fix bug. begin/commit
account group when loading intitial balances


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6386 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-18 01:11:30 +00:00
Derek Atkins
596dd309c3 Reorder libraries to build properly with separate GTKHTML and GUILE
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6383 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-17 04:36:56 +00:00
Dave Peticolas
a54f80d6da fix bug
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6378 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-15 09:49:49 +00:00
Dave Peticolas
a5640c4109 *** empty log message ***
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6376 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-12 09:50:49 +00:00
Dave Peticolas
686111874d * src/report/report-gnome/test/test-load-module: add
* src/report/report-gnome/test/test-link-module.c: add

* src/report/report-gnome/test/Makefile.am: add

* src/report/report-gnome/test/.cvsignore: add


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6375 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-12 09:50:20 +00:00
Dave Peticolas
65263d8b67 * src/report/report-gnome/Makefile.am: add test dir
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6374 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-12 09:50:07 +00:00
Dave Peticolas
15d1dacf76 * configure.in: configure report-gnome/test directory
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6373 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-12 09:49:54 +00:00
Dave Peticolas
ccbdc243b9 fix bug in gnc:find-localized-file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6372 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-12 08:38:35 +00:00
Dave Peticolas
5e5d981a21 Jose Carlos Nascimento's Brazilian Portuguese translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6371 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-12 00:58:55 +00:00
Dave Peticolas
fbe55cafd8 Remove extra report link.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6369 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-12 00:46:21 +00:00
Rob Browning
f8374bd942 *** empty log message ***
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6368 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:52:25 +00:00
Rob Browning
a15ae2a3fc * src/scm/command-line.scm: reorganize a little to remove some of
the top-level actions.
(gnc:initialize-config-vars): new function -- initialize config
vars to defaults, respecting any relevant envt variable
overrides.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6367 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:52:00 +00:00
Rob Browning
d0191d501e * src/scm/doc.scm (gnc:find-doc-file): use
gnc:find-localized-file, not gnc:find-file.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6366 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:49:37 +00:00
Rob Browning
bc40ff84f1 * src/scm/main-window.scm: fix hooks usage to be idempotent --
file should (re)load safely now.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6365 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:48:52 +00:00
Rob Browning
aff3ad685a * src/scm/main.scm: migrate some loads to the top level - though
to really do this right, we're going to need more explicit
use-modules and gnc:module-load deps expressed everywhere.
(gnc:find-file): new exported function.
(gnc:find-localized-file): new exported function.
(gnc:*config-path*): new export.
(gnc:*share-path*): new export.
(gnc:*doc-path*): new export.
(gnc:flatten): new function.
(build-path): simplify.
(gnc:print-unstable-message): simplify.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6364 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:48:01 +00:00
Rob Browning
97a6deee86 * src/scm/path.scm: rework doc-path handling completely, migrating
much of the code to command-line.scm.
(gnc:expand-path): new function.
(gnc:load-system-config-if-needed): use gnc:*config-path*, not
gnc:*config-dir*.
(gnc:locale-prefixes): removed.
(gnc:default-doc-dirs): removed.
(gnc:_expand-doc-path_): removed.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6363 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:40:19 +00:00
Rob Browning
2659b8bdcf * src/scm/price-quotes.scm
(gnc:*finance-quote-helper*): use gnc:*share-path*, not
gnc:*share-dir*.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6362 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:36:56 +00:00
Rob Browning
675be91ad0 * src/scm/tip-of-the-day.scm: rewrite to be re-loadable -- you now
need to call an init function after loading the file.  In the long
run, this should still become a module (guile or gnc).
(gnc:initialize-tip-of-the-day): new function.
(gnc:tip-of-the-day-startup-func): new function.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6361 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:36:04 +00:00
Rob Browning
68181e3824 * src/scm/build-config.scm.in: rename -dir_ variables to -path_
and remove help-dir in favor of doc-path.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6360 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:33:51 +00:00
Rob Browning
6125478c81 * src/scm/Makefile.am (build-config.scm): remove
GNC_PKGLIB_INSTALLDIR.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6359 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:33:06 +00:00
Rob Browning
367f3da61f * src/report/utility-reports/hello-world.scm
(hello-world-renderer): modify to reflect switch from share-dir to
share-path.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6358 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:31:58 +00:00
Rob Browning
5607da97de * src/report/report-gnome/.cvsignore: add missing bits.
* src/report/report-gnome/.cvsignore: add *.lo and *.la.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6357 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:28:28 +00:00
Rob Browning
6b1a8be026 * configure.in: now that libgnc-engine doesn't depend on guile any
more, migrate the guile flags from "BASE" to the regular vars.
(GNUCASH_ENGINE_BASE_LIBS): remove guile bits.
(GNUCASH_ENGINE_LIBS): add guile bits.
(GNUCASH_ENGINE_BASE_CFLAGS): remove guile bits.
(GNUCASH_ENGINE_CFLAGS): add guile bits.

* configure.in (error-on-warning): make this the default.  I'm
tired of having to fix missing #includes, mismatched types,
etc. after an update so I can get back to work, but if anyone has
a real problem with this, I'd be happy to reconsider.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6356 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:27:44 +00:00
Rob Browning
f92e733090 * src/engine/.cvsignore: add a few missing bits.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6355 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:20:52 +00:00
Rob Browning
9a156c71f9 * src/engine/iso-currencies-to-c: new file -- convert
iso-4217-currencies.scm to iso-4217-currencies.c.  Amazingly
easily.  Woohoo for languages with built in self-parsers.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6354 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:20:28 +00:00
Rob Browning
1df3571b4c * src/engine/Makefile.am: accomodate new automatically generated C
code for default commodity table initialization.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6353 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:19:00 +00:00
Rob Browning
33b223a6d0 * src/engine/gnc-commodity.h
(gnc_commodity_table_add_default_data): new prototype.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6352 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:17:51 +00:00
Rob Browning
d3ee5ee7d2 * src/engine/gnc-commodity.c
(gnc_commodity_table_add_default_data): new function -- populate a
commodity table with the "default" commodities/namespaces.
#includes the automatically generated code from
iso-4217-currencies.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6351 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:15:08 +00:00
Rob Browning
13db328284 * src/engine/engine-helpers.c
(gnc_engine_commodity_table_new): removed.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6350 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:13:50 +00:00
Rob Browning
72081c01f3 * src/engine/commodity-table.scm: migrate commodity table
construction to be C-only.
(gnc:load-iso-4217-currencies): removed.
(gnc:setup-default-namespaces): removed.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6349 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:07:04 +00:00
Rob Browning
69b2f8bf32 * src/engine/gnc-book.c (gnc_book_init): switch to use non-guile
based gnc_commodity_table_add_default_data.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6348 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:05:24 +00:00
Rob Browning
74825580fb * src/engine/engine-helpers.h: remove
gnc_engine_commodity_table_new.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6347 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:04:24 +00:00
Rob Browning
4997570363 * src/engine/engine.scm: don't export deleted
gnc:engine-commodity-table-construct.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6346 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:03:45 +00:00
Rob Browning
84751e94ea * src/engine/iso-4217-currencies.scm: fix some typos.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6345 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:02:31 +00:00
Rob Browning
cf2c640378 * src/report/report-gnome/Makefile.am
(AM_CFLAGS): add GLADE_CFLAGS.
(.scm-links): add report link.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6344 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:02:01 +00:00
Rob Browning
9d87ec2a4b * src/optional/.cvsignore: add *.lo and *.la.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6343 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 16:00:20 +00:00
Rob Browning
1f9e166f44 * src/gnome/dialog-sxsincelast.c: #include gnc-gui-query.h
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6342 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 15:29:27 +00:00
Rob Browning
04fee1c96e * src/bin/overrides/gnucash-build-env.in: add report-gnome to
test-env.  Change envt vars to reflect new scheme:
GNC_CONFIG_PATH, GNC_SHARE_PATH, and GNC_DOC_PATH.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6341 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 15:25:40 +00:00
Rob Browning
6cb8f2e8ba * src/backend/postgres/test/test-db.c
(db_file_url): find the postgres communication socket directory
via envt var TEST_DB_SOCKET_DIR.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6340 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 15:23:50 +00:00
Rob Browning
cf02d77d89 * src/backend/postgres/test/db-control.sh: rework to communicate
with postgres through a filesystem socket rather than a TCP
connection so tests will work even on machines that don't allow
TCP.  This was a little tricky because shell substitutions were
fighting the PG_CTL "-o '-k x -p y'" syntax.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6339 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-12-11 15:22:40 +00:00