From 59fe979833c31f6f2bd7293e9c945fedd24fa58b Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Wed, 25 Mar 1998 05:41:24 +0000 Subject: [PATCH] add destroy function git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@716 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/register/recncell.c | 10 +++++++++- src/register/recncell.h | 31 +++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/src/register/recncell.c b/src/register/recncell.c index 00c9e8eb09..6c20043c4a 100644 --- a/src/register/recncell.c +++ b/src/register/recncell.c @@ -7,7 +7,7 @@ * of values to be clicked through. * * HISTORY: - * Copyright (c) Linas Vepstas + * Copyright (c) 1998 Linas Vepstas */ /********************************************************************\ * This program is free software; you can redistribute it and/or * @@ -82,4 +82,12 @@ xaccInitRecnCell (BasicCell *cell) cell->enter_cell = ToggleRecn; } +/* ================================================ */ + +void +xaccDestroyRecnCell (BasicCell *cell) +{ + xaccDestroyBasicCell (cell); +} + /* --------------- end of file ---------------------- */ diff --git a/src/register/recncell.h b/src/register/recncell.h index 88bd6d8b45..b068044884 100644 --- a/src/register/recncell.h +++ b/src/register/recncell.h @@ -1,3 +1,33 @@ +/* + * FILE: + * recncell.h + * + * FUNCTION: + * The RecnCell object implements a cell handler + * that will cycle throguh a series of single-character + * values when clicked upon by the mouse. + * + * hack alert -- ther should be a way of specifying what these values + * are, instead of having them hard coded as they currently are. + * + * HISTORY: + * Copyright (c) 1998 Linas Vepstas + */ +/********************************************************************\ + * This program is free software; you can redistribute it and/or * + * modify it under the terms of the GNU General Public License as * + * published by the Free Software Foundation; either version 2 of * + * the License, or (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License* + * along with this program; if not, write to the Free Software * + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * +\********************************************************************/ #ifndef __XACC_RECN_CELL_C__ #define __XACC_RECN_CELL_C__ @@ -7,6 +37,7 @@ /* installs a callback to handle reconcile flag */ BasicCell * xaccMallocRecnCell (void); void xaccInitRecnCell (BasicCell *); +void xaccDestroyRecnCell (BasicCell *); #endif /* __XACC_RECN_CELL_C__ */