Rob Browning's patch to make gnucash work with g-wrap 1.1.5.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3473 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2001-01-15 22:13:26 +00:00
parent e3ae15cb93
commit e29fc65b3e
6 changed files with 55 additions and 8 deletions

View File

@ -1,3 +1,49 @@
2001-01-15 Rob Browning <rlb@cs.utexas.edu>
* configure.in (G_WRAP_LINK_ARGS): require g-wrap 1.1.5. This
should fix a number of problems, including guile 1.3.4
compatibility (g-wrap was using the *_NEWSMOB macros which guile
1.3.4 doesn't have), and maybe even Dave's ugly memory issues.
* src/scm/report/average-balance.scm: new g-wrap fix.
Essentially all of these g-wrap fixes are to accomodate the new
type names and visible bindings for g-wrapped non-native types.
Where we had <gw:wct-void*> we now have <gw:void*>. This naming
convention has been applied unilaterally, even for native types,
so we now have <gw:int>. Further, types that are gnucash types
appear as <gnc:Account*>, and types that are glib appear as
<glib:GList*>, etc. Finally, in cases where the name of the type
is already prefixed with gnc, the prefix is not doubled, so we
have gncSomeThing -> <gnc:SomeThing> and gnc-commodity* ->
<gnc:commodity*>.
* src/scm/report-utilities.scm
(gnc:account-get-balance-at-date): new g-wrap fix.
* src/guile/option-util.c
(gnc_option_db_register_change_callback): new g-wrap fix.
* src/guile/guile-util.c
(gnc_copy_split): new g-wrap fix.
(gnc_copy_split_scm_onto_split): new g-wrap fix.
(gnc_copy_trans): new g-wrap fix.
(gnc_copy_trans_scm_onto_trans_swap_accounts): new g-wrap fix.
(gnc_glist_account_ptr_to_scm_internal): new g-wrap fix.
(gnc_scm_to_commodity): new g-wrap fix.
(gnc_commodity_to_scm): new g-wrap fix.
(gnc_glist_commodity_ptr_to_scm): new g-wrap fix.
* src/guile/gnucash.c.in (gnucash_main_helper): new g-wrap fix.
* src/guile/gnc.gwp: major rework (mostly s///) for new g-wrap.
* src/guile/gnc-helpers.c (gnc_scm_traversal_adapter): new g-wrap fix.
* src/gnome/top-level.c (gnc_ui_show_main_window): new g-wrap fix.
* src/doc/design/engine.texinfo (Splits): mention location of
kvp_frame.txt -- the reserved key list.
2001-01-12 Bill Gribble <grib@billgribble.com>
* doc/html/C/account-tree-demo.html: add a simple demo of

View File

@ -362,10 +362,10 @@ AC_DEFINE(GNOME)
G_WRAP_COMPILE_ARGS=""
G_WRAP_LINK_ARGS=""
AM_PATH_GWRAP(1.1.3, , [AC_MSG_ERROR([
AM_PATH_GWRAP(1.1.5, , [AC_MSG_ERROR([
g-wrap does not appear to be installed correctly, or is not new
enough. Right now gnucash requires at least version 1.1.3 to build.
enough. Right now gnucash requires at least version 1.1.5 to build.
If you need to install g-wrap, you can find it at
ftp://ftp.gnucash.org/pub/g-wrap.
])])

View File

@ -1169,9 +1169,10 @@ reconciliation states for a Split are:
@end table
In addition to the above, Splits contain a Memo field, an Action field,
and a key-value pair frame. The Memo and Action fields are for arbitrary
user input.
In addition to the above, Splits contain a Memo field, an Action
field, and a key-value pair frame. The Memo and Action fields are for
arbitrary user input. See src/engine/kvp_frame.txt for the names of
keys that have already been reserved for use in the frame.
@menu

View File

@ -361,7 +361,7 @@ gnc_ui_show_main_window(void)
{
SCM run_danglers = gh_eval_str("gnc:hook-run-danglers");
SCM hook = gh_eval_str("gnc:*main-window-opened-hook*");
SCM window = gw_wcp_assimilate_ptr(app, gh_lookup("<gw:wt-gncUIWidget>"));
SCM window = gw_wcp_assimilate_ptr(app, gh_lookup("<gnc:UIWidget>"));
gh_call2(run_danglers, hook, window);
}
return 0;

View File

@ -351,7 +351,7 @@
(set! splits (gnc:glist->list
(gnc:query-get-splits query)
<gw:wt-Split*>))
<gnc:Split*>))
(if (and splits (not (null? splits)))
(set! balance (gnc:numeric-to-double
(gnc:split-get-balance (car splits))))

View File

@ -284,7 +284,7 @@
;; get the query results
(set! splits (gnc:glist->list (gnc:query-get-splits query)
<gw:wt-Split*>))
<gnc:Split*>))
;; find the net starting balance for the set of accounts
(for-each