r18594 - gnucash/trunk/src - Create routines qof_book_get_string_option() and qof_book_set_string_option() to get/set a kvp string, respectively.
Phil Longstaff
plongstaff at code.gnucash.org
Sun Jan 31 15:03:24 EST 2010
Author: plongstaff
Date: 2010-01-31 15:03:23 -0500 (Sun, 31 Jan 2010)
New Revision: 18594
Trac: http://svn.gnucash.org/trac/changeset/18594
Modified:
gnucash/trunk/src/app-utils/gnc-ui-util.c
gnucash/trunk/src/backend/sql/gnc-book-sql.c
gnucash/trunk/src/gnome/dialog-tax-info.c
gnucash/trunk/src/libqof/qof/qofbook.c
gnucash/trunk/src/libqof/qof/qofbook.h
Log:
Create routines qof_book_get_string_option() and qof_book_set_string_option() to get/set a kvp string, respectively.
qof_book_set_string_option() also handles saving the book so that the kvp is updated in the db.
In the future, qof_book_set_<type>_option() and qof_book_get_<type>_option() should be created, where type is
boolean, int, double, ... In addition, other places which handle options in the book should use these routines.
More information about the gnucash-patches
mailing list