mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
add minor docs, add destroy method
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@723 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
91f4cf4b1f
commit
bcaf5a8e5a
@ -70,4 +70,13 @@ xaccInitTextCell (BasicCell *cell)
|
|||||||
cell->modify_verify = TextMV;
|
cell->modify_verify = TextMV;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ================================================ */
|
||||||
|
|
||||||
|
void
|
||||||
|
xaccDestroyTextCell (BasicCell *cell)
|
||||||
|
{
|
||||||
|
cell->modify_verify = NULL;
|
||||||
|
xaccDestroyBasicCell (cell);
|
||||||
|
}
|
||||||
|
|
||||||
/* --------------- end of file ---------------------- */
|
/* --------------- end of file ---------------------- */
|
||||||
|
@ -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__
|
#ifndef __XACC_TEXT_CELL_H__
|
||||||
#define __XACC_TEXT_CELL_C__
|
#define __XACC_TEXT_CELL_H__
|
||||||
|
|
||||||
#include "basiccell.h"
|
#include "basiccell.h"
|
||||||
|
|
||||||
/* installs a callback to handle text recording */
|
/* installs a callback to handle text recording */
|
||||||
BasicCell * xaccMallocTextCell (void);
|
BasicCell * xaccMallocTextCell (void);
|
||||||
void xaccInitTextCell (BasicCell *);
|
void xaccInitTextCell (BasicCell *);
|
||||||
|
void xaccDestroyTextCell (BasicCell *);
|
||||||
|
|
||||||
#endif /* __XACC_TEXT_CELL_C__ */
|
#endif /* __XACC_TEXT_CELL_H__ */
|
||||||
|
|
||||||
/* --------------- end of file ---------------------- */
|
/* --------------- end of file ---------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user