From bcaf5a8e5aedeb2d4fcc020bf24618dca4b4e152 Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Wed, 25 Mar 1998 07:47:58 +0000 Subject: [PATCH] add minor docs, add destroy method git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@723 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/register/textcell.c | 9 +++++++++ src/register/textcell.h | 34 +++++++++++++++++++++++++++++++--- 2 files changed, 40 insertions(+), 3 deletions(-) diff --git a/src/register/textcell.c b/src/register/textcell.c index 15dcef207b..d7cbcdfb1e 100644 --- a/src/register/textcell.c +++ b/src/register/textcell.c @@ -70,4 +70,13 @@ xaccInitTextCell (BasicCell *cell) cell->modify_verify = TextMV; } +/* ================================================ */ + +void +xaccDestroyTextCell (BasicCell *cell) +{ + cell->modify_verify = NULL; + xaccDestroyBasicCell (cell); +} + /* --------------- end of file ---------------------- */ diff --git a/src/register/textcell.h b/src/register/textcell.h index 52ffebe04c..60af70bd76 100644 --- a/src/register/textcell.h +++ b/src/register/textcell.h @@ -1,13 +1,41 @@ +/* + * FILE: + * textcell.h + * + * FUNCTION: + * The TextCell object implements the simplest possible cell -- + * a text cell. The text cell simply accepts any and all typed + * data from the keyboard, and displays in in the cell. + * + * 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_TEXT_CELL_C__ -#define __XACC_TEXT_CELL_C__ +#ifndef __XACC_TEXT_CELL_H__ +#define __XACC_TEXT_CELL_H__ #include "basiccell.h" /* installs a callback to handle text recording */ BasicCell * xaccMallocTextCell (void); void xaccInitTextCell (BasicCell *); +void xaccDestroyTextCell (BasicCell *); -#endif /* __XACC_TEXT_CELL_C__ */ +#endif /* __XACC_TEXT_CELL_H__ */ /* --------------- end of file ---------------------- */