* src/engine/gnc-transaction-xml-v2.c: read & write split action

field


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4045 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2001-04-25 08:13:19 +00:00
parent 6d90b234f2
commit 2b85080282
2 changed files with 21 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2001-04-25 Dave Peticolas <dave@krondo.com>
* src/engine/gnc-transaction-xml-v2.c: read & write split action
field
* src/gnome/druid-commodity.c: do gncFileNew after gncFileQuit
* src/guile/gnc.gwp: remove pokey functions (not used anymore)

View File

@ -79,6 +79,15 @@ split_to_dom_tree(const gchar *tag, Split *spl)
}
}
{
const char *action = xaccSplitGetAction(spl);
if(action && safe_strcmp(action, "") != 0)
{
xmlNewTextChild(ret, NULL, "split:action", action);
}
}
{
char tmp[2];
@ -216,6 +225,12 @@ spl_memo_handler(xmlNodePtr node, gpointer spl)
return set_spl_string(node, (Split*)spl, xaccSplitSetMemo);
}
static gboolean
spl_action_handler(xmlNodePtr node, gpointer spl)
{
return set_spl_string(node, (Split*)spl, xaccSplitSetAction);
}
static gboolean
spl_reconciled_state_handler(xmlNodePtr node, gpointer spl)
{
@ -283,6 +298,7 @@ struct dom_tree_handler spl_dom_handlers[] =
{
{ "split:id", spl_id_handler, 1, 0 },
{ "split:memo", spl_memo_handler, 0, 0 },
{ "split:action", spl_action_handler, 0, 0 },
{ "split:reconciled-state", spl_reconciled_state_handler, 1, 0 },
{ "split:reconcile-date", spl_reconcile_date_handler, 0, 0 },
{ "split:value", spl_value_handler, 1, 0 },