mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
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:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user