Use new GncTaxTable g-object parameters

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22183 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff
2012-05-20 21:22:30 +00:00
parent 7ea5a2bf98
commit 0a3c14ed4b
+2 -21
View File
@@ -46,8 +46,6 @@
static QofLogModule log_module = G_LOG_DOMAIN;
static void set_invisible( gpointer data, gboolean value );
typedef struct
{
GncSqlBackend* be;
@@ -70,11 +68,8 @@ static GncSqlColumnTableEntry tt_col_table[] =
{
{ "guid", CT_GUID, 0, COL_NNUL | COL_PKEY, "guid" },
{ "name", CT_STRING, MAX_NAME_LEN, COL_NNUL, "name" },
{ "refcount", CT_INT64, 0, COL_NNUL, NULL, GNC_TT_REFCOUNT },
{
"invisible", CT_BOOLEAN, 0, COL_NNUL, NULL, NULL,
(QofAccessFunc)gncTaxTableGetInvisible, (QofSetterFunc)set_invisible
},
{ "refcount", CT_INT64, 0, COL_NNUL, "ref-count" },
{ "invisible", CT_BOOLEAN, 0, COL_NNUL, "invisible" },
/* { "child", CT_TAXTABLEREF, 0, 0, NULL, NULL,
get_child, (QofSetterFunc)gncTaxTableSetChild }, */
{
@@ -146,20 +141,6 @@ set_obj_guid( gpointer pObject, gpointer pValue )
// Nowhere to put the GncGUID
}
static void
set_invisible( gpointer data, gboolean value )
{
GncTaxTable* tt = GNC_TAXTABLE(data);
g_return_if_fail( data != NULL );
g_return_if_fail( GNC_IS_TAXTABLE(data) );
if ( value )
{
gncTaxTableMakeInvisible( tt );
}
}
static gpointer
get_child( gpointer pObject, const QofParam* param )
{