2001-06-08 Dave Peticolas <dave@krondo.com>

* src/SplitLedger.c (xaccSRGetEntryHandler): handle reconcile
	cell string as appropriate for translate flag.

	* src/register/table-allgui.c (gnc_table_get_entry): return
	translated version
	(gnc_table_get_entry_internal): return untranslated version

	* src/register/table-allgui.h: add 'translate' argument to
	entry handler api.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4547 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2001-06-08 22:41:03 +00:00
parent 6526b8cd68
commit 3bdfeb5be9
5 changed files with 20 additions and 3 deletions

View File

@ -1,3 +1,15 @@
2001-06-08 Dave Peticolas <dave@krondo.com>
* src/SplitLedger.c (xaccSRGetEntryHandler): handle reconcile
cell string as appropriate for translate flag.
* src/register/table-allgui.c (gnc_table_get_entry): return
translated version
(gnc_table_get_entry_internal): return untranslated version
* src/register/table-allgui.h: add 'translate' argument to
entry handler api.
2001-06-08 Christian Stimming <stimming@tuhh.de>
* configure.in, accounts/Makefile.am, accounts/de_DE/*: add

View File

@ -3636,7 +3636,7 @@ use_security_cells (SplitRegister *reg, VirtualLocation virt_loc)
}
const char *
xaccSRGetEntryHandler (VirtualLocation virt_loc,
xaccSRGetEntryHandler (VirtualLocation virt_loc, gboolean translate,
gboolean *conditionally_changed, gpointer user_data)
{
SplitRegister *reg = user_data;
@ -3724,6 +3724,9 @@ xaccSRGetEntryHandler (VirtualLocation virt_loc,
break;
case RECN_CELL:
if (translate)
return gnc_get_reconcile_str (xaccSplitGetReconcile (split));
else
{
static char s[2];

View File

@ -206,6 +206,7 @@ gboolean xaccSRFullRefreshOK (SplitRegister *reg);
void xaccSRLoadXferCells (SplitRegister *reg, Account *base_account);
const char * xaccSRGetEntryHandler (VirtualLocation virt_loc,
gboolean translate,
gboolean *changed,
gpointer user_data);
const char * xaccSRGetLabelHandler (VirtualLocation virt_loc,

View File

@ -172,7 +172,7 @@ gnc_table_get_entry_internal (Table *table, VirtualLocation virt_loc,
{
const char *entry;
entry = table->view.entry_handler (virt_loc,
entry = table->view.entry_handler (virt_loc, FALSE,
conditionally_changed,
table->view.handler_user_data);
if (!entry)
@ -211,7 +211,7 @@ gnc_table_get_entry (Table *table, VirtualLocation virt_loc)
return cb_cell->cell->value;
}
entry = table->view.entry_handler (virt_loc, NULL,
entry = table->view.entry_handler (virt_loc, TRUE, NULL,
table->view.handler_user_data);
if (!entry)
entry = "";

View File

@ -164,6 +164,7 @@ typedef void (*TableSetHelpFunc) (Table *table,
typedef void (*TableDestroyFunc) (Table *table);
typedef const char * (*TableGetEntryHandler) (VirtualLocation virt_loc,
gboolean translate,
gboolean *conditionally_changed,
gpointer user_data);