mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Remove gncBoolean typedef and constants. Replace all uses of them
with the glib equivalents. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2682 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
2c2d1baef2
commit
0256e9db4a
@ -1,3 +1,8 @@
|
||||
2000-08-21 Dave Peticolas <dave@krondo.com>
|
||||
|
||||
* src/engine/gnc-common.h: remove gncBoolean type and constants.
|
||||
Replace all uses with glib versions.
|
||||
|
||||
2000-08-12 Dave Peticolas <dave@krondo.com>
|
||||
|
||||
* src/engine/Transaction.c (xaccSplitSetBaseValue): don't adjust
|
||||
|
@ -66,14 +66,14 @@ static AccountGroup *topgroup = NULL; /* the current top of the hierarchy */
|
||||
uh_oh = 1; \
|
||||
break; \
|
||||
case ERR_FILEIO_FILE_TOO_OLD: \
|
||||
if (!gnc_verify_dialog( FILE_TOO_OLD_MSG, GNC_T )) { \
|
||||
if (!gnc_verify_dialog( FILE_TOO_OLD_MSG, TRUE )) { \
|
||||
xaccFreeAccountGroup (newgrp); \
|
||||
newgrp = NULL; \
|
||||
uh_oh = 1; \
|
||||
} \
|
||||
break; \
|
||||
case ERR_FILEIO_FILE_BAD_READ: \
|
||||
if (!gnc_verify_dialog( FILE_BAD_READ_MSG, GNC_T )) { \
|
||||
if (!gnc_verify_dialog( FILE_BAD_READ_MSG, TRUE )) { \
|
||||
xaccFreeAccountGroup (newgrp); \
|
||||
newgrp = NULL; \
|
||||
uh_oh = 1; \
|
||||
@ -151,7 +151,7 @@ gncFileNew (void)
|
||||
|
||||
/* ======================================================== */
|
||||
|
||||
gncBoolean
|
||||
gboolean
|
||||
gncFileQuerySave (void)
|
||||
{
|
||||
Session *sess;
|
||||
@ -498,7 +498,7 @@ gncFileSaveAs (void)
|
||||
tmpmsg = alloca (strlen (FMB_EEXIST_MSG) + strlen (newfile));
|
||||
sprintf (tmpmsg, FMB_EEXIST_MSG, newfile);
|
||||
/* if user says cancel, we should break out */
|
||||
if (! gnc_verify_dialog (tmpmsg, GNC_F)) return;
|
||||
if (! gnc_verify_dialog (tmpmsg, FALSE)) return;
|
||||
|
||||
/* Whoa-ok. Blow away the previous file.
|
||||
* Do not disable logging ... we want to capture the
|
||||
|
@ -68,9 +68,9 @@
|
||||
* otherwise no action will be performed. If there is no currently
|
||||
* locked session, a popup will query the user for a filename
|
||||
* (using the gncFileSaveAs() routine). The routine will return
|
||||
* GNC_T if the user hits "Yes" or "No" and GNC_F if the user
|
||||
* TRUE if the user hits "Yes" or "No" and GNC_F if the user
|
||||
* hits "Cancel". If nothing needed to be saved, the routine
|
||||
* will return GNC_T.
|
||||
* will return TRUE.
|
||||
*
|
||||
* The gncFileNew() routine will check for an existing edit session.
|
||||
* If one exists, it will ask the user if they want to save it,
|
||||
@ -132,7 +132,7 @@ void gncFileSaveAs (void);
|
||||
|
||||
void gncFileOpenFile (const char *);
|
||||
|
||||
gncBoolean gncFileQuerySave (void);
|
||||
gboolean gncFileQuerySave (void);
|
||||
|
||||
void gncFileQuit (void);
|
||||
|
||||
|
@ -208,7 +208,7 @@ static GUID copied_leader_guid;
|
||||
static Split * xaccSRGetTransSplit (SplitRegister *reg,
|
||||
int phys_row, int phys_col);
|
||||
static void xaccSRLoadRegEntry (SplitRegister *reg, Split *split);
|
||||
static gncBoolean xaccSRSaveRegEntryToSCM (SplitRegister *reg,
|
||||
static gboolean xaccSRSaveRegEntryToSCM (SplitRegister *reg,
|
||||
SCM trans_scm, SCM split_scm);
|
||||
static Transaction * xaccSRGetTrans (SplitRegister *reg,
|
||||
int phys_row, int phys_col);
|
||||
@ -699,7 +699,7 @@ LedgerMoveCursor (Table *table,
|
||||
xaccTransCommitEdit (trans);
|
||||
info->pending_trans_guid = *xaccGUIDNULL();
|
||||
pending_trans = NULL;
|
||||
saved = GNC_T;
|
||||
saved = TRUE;
|
||||
}
|
||||
|
||||
/* redrawing the register can muck everything up */
|
||||
@ -799,7 +799,7 @@ LedgerMoveCursor (Table *table,
|
||||
info->cursor_hint_phys_col = -1;
|
||||
}
|
||||
|
||||
info->hint_set_by_traverse = GNC_F;
|
||||
info->hint_set_by_traverse = FALSE;
|
||||
}
|
||||
|
||||
/* This function determines if auto-completion is appropriate and,
|
||||
@ -874,8 +874,8 @@ LedgerAutoCompletion(SplitRegister *reg, gncTableTraversalDir dir,
|
||||
if (auto_trans == NULL)
|
||||
return;
|
||||
|
||||
xaccTransBeginEdit(trans, GNC_F);
|
||||
gnc_copy_trans_onto_trans(auto_trans, trans, GNC_F);
|
||||
xaccTransBeginEdit(trans, FALSE);
|
||||
gnc_copy_trans_onto_trans(auto_trans, trans, FALSE);
|
||||
|
||||
if (info->default_source_account != NULL)
|
||||
{
|
||||
@ -916,7 +916,7 @@ LedgerAutoCompletion(SplitRegister *reg, gncTableTraversalDir dir,
|
||||
pending_trans = trans;
|
||||
info->pending_trans_guid = *xaccTransGetGUID(pending_trans);
|
||||
|
||||
info->blank_split_edited = GNC_T;
|
||||
info->blank_split_edited = TRUE;
|
||||
|
||||
refresh_accounts = xaccSRSaveChangedCells(reg, trans, blank_split);
|
||||
|
||||
@ -998,13 +998,13 @@ LedgerAutoCompletion(SplitRegister *reg, gncTableTraversalDir dir,
|
||||
fullname = xaccAccountGetFullName (xaccSplitGetAccount (auto_split),
|
||||
account_separator);
|
||||
xaccSetComboCellValue (reg->xfrmCell, fullname);
|
||||
xaccBasicCellSetChanged(&(reg->xfrmCell->cell), GNC_T);
|
||||
xaccBasicCellSetChanged(&(reg->xfrmCell->cell), TRUE);
|
||||
|
||||
amount = xaccSplitGetValue (auto_split);
|
||||
|
||||
xaccSetDebCredCellValue (reg->ndebitCell, reg->ncreditCell, -amount);
|
||||
xaccBasicCellSetChanged (&(reg->ndebitCell->cell), GNC_T);
|
||||
xaccBasicCellSetChanged (&(reg->ncreditCell->cell), GNC_T);
|
||||
xaccBasicCellSetChanged (&(reg->ndebitCell->cell), TRUE);
|
||||
xaccBasicCellSetChanged (&(reg->ncreditCell->cell), TRUE);
|
||||
|
||||
/* copy cursor contents into the table */
|
||||
gnc_table_commit_cursor (reg->table);
|
||||
@ -1114,7 +1114,7 @@ LedgerTraverse (Table *table,
|
||||
info->cursor_hint_split = split;
|
||||
info->cursor_hint_trans_split = xaccSRGetCurrentTransSplit (reg);
|
||||
info->cursor_hint_phys_col = -1;
|
||||
info->hint_set_by_traverse = GNC_T;
|
||||
info->hint_set_by_traverse = TRUE;
|
||||
|
||||
return;
|
||||
}
|
||||
@ -1460,11 +1460,11 @@ xaccSRGetSplitRowCol (SplitRegister *reg, Split *split,
|
||||
if (virt_col != NULL)
|
||||
*virt_col = v_col;
|
||||
|
||||
return GNC_T;
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
return GNC_F;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* ======================================================== */
|
||||
@ -1475,9 +1475,9 @@ xaccSRGetTransSplitRowCol (SplitRegister *reg, Transaction *trans,
|
||||
int *virt_row, int *virt_col)
|
||||
{
|
||||
Table *table = reg->table;
|
||||
gboolean found_trans = GNC_F;
|
||||
gboolean found_trans_split = GNC_F;
|
||||
gboolean found_something = GNC_F;
|
||||
gboolean found_trans = FALSE;
|
||||
gboolean found_trans_split = FALSE;
|
||||
gboolean found_something = FALSE;
|
||||
CursorType cursor_type;
|
||||
int v_row, v_col;
|
||||
Transaction *t;
|
||||
@ -1492,10 +1492,10 @@ xaccSRGetTransSplitRowCol (SplitRegister *reg, Transaction *trans,
|
||||
cursor_type = xaccSplitRegisterGetCursorTypeRowCol(reg, v_row, v_col);
|
||||
|
||||
if (t == trans)
|
||||
found_trans = GNC_T;
|
||||
found_trans = TRUE;
|
||||
|
||||
if ((cursor_type == CURSOR_TRANS) && (s == trans_split))
|
||||
found_trans_split = GNC_T;
|
||||
found_trans_split = TRUE;
|
||||
|
||||
if (found_trans && (s == split))
|
||||
{
|
||||
@ -1504,7 +1504,7 @@ xaccSRGetTransSplitRowCol (SplitRegister *reg, Transaction *trans,
|
||||
if (virt_col != NULL)
|
||||
*virt_col = v_col;
|
||||
|
||||
found_something = GNC_T;
|
||||
found_something = TRUE;
|
||||
}
|
||||
|
||||
if (found_trans_split && (s == split))
|
||||
@ -1514,7 +1514,7 @@ xaccSRGetTransSplitRowCol (SplitRegister *reg, Transaction *trans,
|
||||
if (virt_col != NULL)
|
||||
*virt_col = v_col;
|
||||
|
||||
return GNC_T;
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1573,7 +1573,7 @@ xaccSRDuplicateCurrent (SplitRegister *reg)
|
||||
if (result == GNC_VERIFY_CANCEL)
|
||||
return NULL;
|
||||
|
||||
xaccSRSaveRegEntry(reg, GNC_T);
|
||||
xaccSRSaveRegEntry(reg, TRUE);
|
||||
|
||||
/* If the split is NULL, then we were on a blank split row
|
||||
* in an expanded transaction. The new split (created by
|
||||
@ -1594,7 +1594,7 @@ xaccSRDuplicateCurrent (SplitRegister *reg)
|
||||
|
||||
new_split = xaccMallocSplit();
|
||||
|
||||
xaccTransBeginEdit(trans, GNC_T);
|
||||
xaccTransBeginEdit(trans, TRUE);
|
||||
xaccTransAppendSplit(trans, new_split);
|
||||
xaccTransCommitEdit(trans);
|
||||
|
||||
@ -1621,9 +1621,9 @@ xaccSRDuplicateCurrent (SplitRegister *reg)
|
||||
|
||||
new_trans = xaccMallocTransaction();
|
||||
|
||||
gnc_copy_trans_onto_trans(trans, new_trans, GNC_T);
|
||||
gnc_copy_trans_onto_trans(trans, new_trans, TRUE);
|
||||
|
||||
xaccTransBeginEdit(new_trans, GNC_T);
|
||||
xaccTransBeginEdit(new_trans, TRUE);
|
||||
xaccTransSetDateSecs(new_trans, info->last_date_entered);
|
||||
xaccTransCommitEdit(new_trans);
|
||||
|
||||
@ -1823,7 +1823,7 @@ xaccSRPasteCurrent (SplitRegister *reg)
|
||||
{ /* We are on a null split in an expanded transaction. */
|
||||
split = xaccMallocSplit();
|
||||
|
||||
xaccTransBeginEdit(trans, GNC_T);
|
||||
xaccTransBeginEdit(trans, TRUE);
|
||||
xaccTransAppendSplit(trans, split);
|
||||
xaccTransCommitEdit(trans);
|
||||
}
|
||||
@ -1857,10 +1857,10 @@ xaccSRPasteCurrent (SplitRegister *reg)
|
||||
new_guid = xaccAccountGetGUID(info->default_source_account);
|
||||
gnc_copy_trans_scm_onto_trans_swap_accounts(copied_item, trans,
|
||||
&copied_leader_guid,
|
||||
new_guid, GNC_T);
|
||||
new_guid, TRUE);
|
||||
}
|
||||
else
|
||||
gnc_copy_trans_scm_onto_trans(copied_item, trans, GNC_T);
|
||||
gnc_copy_trans_scm_onto_trans(copied_item, trans, TRUE);
|
||||
|
||||
num_splits = xaccTransCountSplits(trans);
|
||||
if (split_index >= num_splits)
|
||||
@ -2098,7 +2098,7 @@ xaccSRCancelCursorSplitChanges (SplitRegister *reg)
|
||||
xaccSRLoadRegEntry(reg, split);
|
||||
xaccSplitRegisterClearChangeFlag(reg);
|
||||
|
||||
if (gnc_table_find_valid_cell_horiz(reg->table, &row, &col, GNC_F))
|
||||
if (gnc_table_find_valid_cell_horiz(reg->table, &row, &col, FALSE))
|
||||
gnc_table_move_cursor_gui(reg->table, row, col);
|
||||
|
||||
gnc_table_refresh_gui(reg->table);
|
||||
@ -2175,12 +2175,12 @@ xaccSRSaveRegEntryToSCM (SplitRegister *reg, SCM trans_scm, SCM split_scm)
|
||||
* cut down on uneccessary register redraws. */
|
||||
changed = xaccSplitRegisterGetChangeFlag (reg);
|
||||
if (!changed)
|
||||
return GNC_F;
|
||||
return FALSE;
|
||||
|
||||
/* get the handle to the current split and transaction */
|
||||
trans = xaccSRGetCurrentTrans (reg);
|
||||
if (trans == NULL)
|
||||
return GNC_F;
|
||||
return FALSE;
|
||||
|
||||
/* copy the contents from the cursor to the split */
|
||||
if (MOD_DATE & changed) {
|
||||
@ -2316,7 +2316,7 @@ xaccSRSaveRegEntryToSCM (SplitRegister *reg, SCM trans_scm, SCM split_scm)
|
||||
gnc_split_scm_set_share_price_and_amount(split_scm, price, value);
|
||||
}
|
||||
|
||||
return GNC_T;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* ======================================================== */
|
||||
@ -2338,7 +2338,7 @@ xaccSRSaveRegEntry (SplitRegister *reg, gboolean do_commit)
|
||||
split = xaccSRGetCurrentSplit (reg);
|
||||
trans = xaccSRGetCurrentTrans (reg);
|
||||
if (trans == NULL)
|
||||
return GNC_F;
|
||||
return FALSE;
|
||||
|
||||
/* use the changed flag to avoid heavy-weight updates
|
||||
* of the split & transaction fields. This will help
|
||||
@ -2347,7 +2347,7 @@ xaccSRSaveRegEntry (SplitRegister *reg, gboolean do_commit)
|
||||
if (!changed)
|
||||
{
|
||||
if (!do_commit)
|
||||
return GNC_F;
|
||||
return FALSE;
|
||||
|
||||
if (trans == blank_trans)
|
||||
{
|
||||
@ -2355,14 +2355,14 @@ xaccSRSaveRegEntry (SplitRegister *reg, gboolean do_commit)
|
||||
{
|
||||
info->last_date_entered = xaccTransGetDate(trans);
|
||||
info->blank_split_guid = *xaccGUIDNULL();
|
||||
info->blank_split_edited = GNC_F;
|
||||
info->blank_split_edited = FALSE;
|
||||
blank_split = NULL;
|
||||
}
|
||||
else
|
||||
return GNC_F;
|
||||
return FALSE;
|
||||
}
|
||||
else if (!xaccTransIsOpen(trans))
|
||||
return GNC_F;
|
||||
return FALSE;
|
||||
|
||||
if (xaccTransIsOpen(trans))
|
||||
xaccTransCommitEdit(trans);
|
||||
@ -2373,7 +2373,7 @@ xaccSRSaveRegEntry (SplitRegister *reg, gboolean do_commit)
|
||||
info->pending_trans_guid = *xaccGUIDNULL();
|
||||
}
|
||||
|
||||
return GNC_T;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
ENTER ("xaccSRSaveRegEntry(): save split is %p \n", split);
|
||||
@ -2382,7 +2382,7 @@ xaccSRSaveRegEntry (SplitRegister *reg, gboolean do_commit)
|
||||
if (pending_trans != trans) {
|
||||
if (xaccTransIsOpen (pending_trans))
|
||||
xaccTransCommitEdit (pending_trans);
|
||||
xaccTransBeginEdit (trans, GNC_F);
|
||||
xaccTransBeginEdit (trans, FALSE);
|
||||
pending_trans = trans;
|
||||
info->pending_trans_guid = *xaccTransGetGUID(trans);
|
||||
}
|
||||
@ -2439,7 +2439,7 @@ xaccSRSaveRegEntry (SplitRegister *reg, gboolean do_commit)
|
||||
info->last_date_entered = xaccTransGetDate(trans);
|
||||
}
|
||||
else
|
||||
info->blank_split_edited = GNC_T;
|
||||
info->blank_split_edited = TRUE;
|
||||
}
|
||||
|
||||
/* If requested, commit the current transaction and set the pending
|
||||
@ -2462,7 +2462,7 @@ xaccSRSaveRegEntry (SplitRegister *reg, gboolean do_commit)
|
||||
g_list_free(refresh_accounts);
|
||||
}
|
||||
|
||||
return GNC_T;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* ======================================================== */
|
||||
@ -2923,12 +2923,12 @@ xaccSRLoadRegEntry (SplitRegister *reg, Split *split)
|
||||
|
||||
{
|
||||
Split *s = xaccGetOtherSplit (split);
|
||||
gboolean need_to_free = GNC_F;
|
||||
gboolean need_to_free = FALSE;
|
||||
|
||||
if (s) {
|
||||
accname = xaccAccountGetFullName (xaccSplitGetAccount (s),
|
||||
account_separator);
|
||||
need_to_free = GNC_T;
|
||||
need_to_free = TRUE;
|
||||
} else {
|
||||
/* determine whether s is null because threre are three
|
||||
* or more splits, or whether there is only one ... */
|
||||
@ -2977,10 +2977,10 @@ xaccSRCountRows (SplitRegister *reg,
|
||||
Transaction *find_trans,
|
||||
Split *find_split,
|
||||
Split *find_trans_split,
|
||||
gncBoolean *ext_found_trans,
|
||||
gncBoolean *ext_found_split,
|
||||
gncBoolean *ext_found_trans_split,
|
||||
gncBoolean *ext_on_blank_split)
|
||||
gboolean *ext_found_trans,
|
||||
gboolean *ext_found_split,
|
||||
gboolean *ext_found_trans_split,
|
||||
gboolean *ext_on_blank_split)
|
||||
{
|
||||
SRInfo *info = xaccSRGetInfo(reg);
|
||||
Split *blank_split = xaccSplitLookup(&info->blank_split_guid);
|
||||
@ -2990,11 +2990,11 @@ xaccSRCountRows (SplitRegister *reg,
|
||||
Split *split;
|
||||
Table *table;
|
||||
|
||||
gboolean found_split = GNC_F;
|
||||
gboolean found_trans = GNC_F;
|
||||
gboolean found_trans_split = GNC_F;
|
||||
gboolean on_blank_split = GNC_F;
|
||||
gboolean did_expand = GNC_F;
|
||||
gboolean found_split = FALSE;
|
||||
gboolean found_trans = FALSE;
|
||||
gboolean found_trans_split = FALSE;
|
||||
gboolean on_blank_split = FALSE;
|
||||
gboolean did_expand = FALSE;
|
||||
gboolean on_trans_split;
|
||||
gboolean multi_line;
|
||||
gboolean dynamic;
|
||||
@ -3054,7 +3054,7 @@ xaccSRCountRows (SplitRegister *reg,
|
||||
while (split) {
|
||||
if (split == find_trans_split)
|
||||
{
|
||||
found_trans_split = GNC_T;
|
||||
found_trans_split = TRUE;
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
@ -3063,7 +3063,7 @@ xaccSRCountRows (SplitRegister *reg,
|
||||
|
||||
split = blank_split;
|
||||
if ((split != NULL) && (split == find_trans_split))
|
||||
found_trans_split = GNC_T;
|
||||
found_trans_split = TRUE;
|
||||
|
||||
/* now count the rows */
|
||||
i=0;
|
||||
@ -3088,8 +3088,8 @@ xaccSRCountRows (SplitRegister *reg,
|
||||
save_cursor_phys_row = num_phys_rows;
|
||||
save_cursor_virt_row = num_virt_rows;
|
||||
if (on_trans_split || !found_trans_split)
|
||||
found_split = GNC_T;
|
||||
found_trans = GNC_T;
|
||||
found_split = TRUE;
|
||||
found_trans = TRUE;
|
||||
}
|
||||
/* Otherwise, check for a close match. This could happen
|
||||
* if, e.g., we are collapsing from multi-line to single. */
|
||||
@ -3097,12 +3097,12 @@ xaccSRCountRows (SplitRegister *reg,
|
||||
save_cursor_phys_row = num_phys_rows;
|
||||
save_cursor_virt_row = num_virt_rows;
|
||||
if (trans == find_trans)
|
||||
found_trans = GNC_T;
|
||||
found_trans = TRUE;
|
||||
}
|
||||
else if (!found_trans && (trans == find_trans)) {
|
||||
save_cursor_phys_row = num_phys_rows;
|
||||
save_cursor_virt_row = num_virt_rows;
|
||||
found_trans = GNC_T;
|
||||
found_trans = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
@ -3116,7 +3116,7 @@ xaccSRCountRows (SplitRegister *reg,
|
||||
|
||||
/* make sure we only expand once on dynamic */
|
||||
if (dynamic && do_expand)
|
||||
did_expand = GNC_T;
|
||||
did_expand = TRUE;
|
||||
|
||||
if (do_expand)
|
||||
{
|
||||
@ -3152,8 +3152,8 @@ xaccSRCountRows (SplitRegister *reg,
|
||||
save_cursor_phys_row = num_phys_rows;
|
||||
save_cursor_virt_row = num_virt_rows;
|
||||
if (on_trans_split || !found_trans_split)
|
||||
found_split = GNC_T;
|
||||
found_trans = GNC_T;
|
||||
found_split = TRUE;
|
||||
found_trans = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
@ -3184,7 +3184,7 @@ xaccSRCountRows (SplitRegister *reg,
|
||||
|
||||
on_trans_split = (find_trans_split == split);
|
||||
if (on_trans_split)
|
||||
found_trans_split = GNC_T;
|
||||
found_trans_split = TRUE;
|
||||
|
||||
if (split != NULL) {
|
||||
/* lets determine where to locate the cursor ... */
|
||||
@ -3192,15 +3192,15 @@ xaccSRCountRows (SplitRegister *reg,
|
||||
save_cursor_phys_row = num_phys_rows;
|
||||
save_cursor_virt_row = num_virt_rows;
|
||||
if (on_trans_split || !found_trans_split)
|
||||
found_split = GNC_T;
|
||||
found_trans = GNC_T;
|
||||
on_blank_split = GNC_T;
|
||||
found_split = TRUE;
|
||||
found_trans = TRUE;
|
||||
on_blank_split = TRUE;
|
||||
}
|
||||
else if (!found_split && (trans == find_trans)) {
|
||||
save_cursor_phys_row = num_phys_rows;
|
||||
save_cursor_virt_row = num_virt_rows;
|
||||
found_trans = GNC_T;
|
||||
on_blank_split = GNC_T;
|
||||
found_trans = TRUE;
|
||||
on_blank_split = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
@ -3230,8 +3230,8 @@ xaccSRCountRows (SplitRegister *reg,
|
||||
save_cursor_phys_row = num_phys_rows;
|
||||
save_cursor_virt_row = num_virt_rows;
|
||||
if (on_trans_split || !found_trans_split)
|
||||
found_split = GNC_T;
|
||||
found_trans = GNC_T;
|
||||
found_split = TRUE;
|
||||
found_trans = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
@ -3297,11 +3297,11 @@ xaccSRLoadRegister (SplitRegister *reg, Split **slist,
|
||||
Split *split;
|
||||
Table *table;
|
||||
|
||||
gboolean found_pending = GNC_F;
|
||||
gboolean found_split = GNC_F;
|
||||
gboolean found_trans = GNC_F;
|
||||
gboolean found_trans_split = GNC_F;
|
||||
gboolean did_expand = GNC_F;
|
||||
gboolean found_pending = FALSE;
|
||||
gboolean found_split = FALSE;
|
||||
gboolean found_trans = FALSE;
|
||||
gboolean found_trans_split = FALSE;
|
||||
gboolean did_expand = FALSE;
|
||||
gboolean on_blank_split;
|
||||
gboolean multi_line;
|
||||
gboolean dynamic;
|
||||
@ -3329,7 +3329,7 @@ xaccSRLoadRegister (SplitRegister *reg, Split **slist,
|
||||
blank_split = xaccTransGetSplit (trans, 0);
|
||||
info->blank_split_guid = *xaccSplitGetGUID (blank_split);
|
||||
|
||||
info->blank_split_edited = GNC_F;
|
||||
info->blank_split_edited = FALSE;
|
||||
}
|
||||
|
||||
info->default_source_account = default_source_acc;
|
||||
@ -3408,7 +3408,7 @@ xaccSRLoadRegister (SplitRegister *reg, Split **slist,
|
||||
while (split) {
|
||||
|
||||
if (pending_trans == xaccSplitGetParent (split))
|
||||
found_pending = GNC_T;
|
||||
found_pending = TRUE;
|
||||
|
||||
/* do not load the blank split */
|
||||
if (split != blank_split) {
|
||||
@ -3429,14 +3429,14 @@ xaccSRLoadRegister (SplitRegister *reg, Split **slist,
|
||||
if (dynamic && !found_trans && !found_trans_split &&
|
||||
(vrow == reg->cursor_virt_row)) {
|
||||
reg->cursor_phys_row = phys_row;
|
||||
do_expand = GNC_T;
|
||||
do_expand = TRUE;
|
||||
}
|
||||
|
||||
/* make sure we only expand once on dynamic */
|
||||
do_expand = do_expand && !did_expand;
|
||||
|
||||
if (dynamic && do_expand)
|
||||
did_expand = GNC_T;
|
||||
did_expand = TRUE;
|
||||
|
||||
if (do_expand)
|
||||
{
|
||||
@ -3492,7 +3492,7 @@ xaccSRLoadRegister (SplitRegister *reg, Split **slist,
|
||||
/* add the blank split at the end. */
|
||||
split = blank_split;
|
||||
if (pending_trans == xaccSplitGetParent(split))
|
||||
found_pending = GNC_T;
|
||||
found_pending = TRUE;
|
||||
|
||||
if (multi_line || (dynamic && info->blank_split_edited)) {
|
||||
/* do the transaction row of the blank split */
|
||||
@ -3539,7 +3539,7 @@ xaccSRLoadRegister (SplitRegister *reg, Split **slist,
|
||||
int row = reg->cursor_phys_row;
|
||||
int col = save_phys_col;
|
||||
|
||||
if (gnc_table_find_valid_cell_horiz(table, &row, &col, GNC_F))
|
||||
if (gnc_table_find_valid_cell_horiz(table, &row, &col, FALSE))
|
||||
{
|
||||
gnc_table_move_cursor_gui(table, row, col);
|
||||
reg->cursor_phys_row = row;
|
||||
@ -3574,8 +3574,8 @@ xaccSRLoadRegister (SplitRegister *reg, Split **slist,
|
||||
info->cursor_hint_split = xaccSRGetCurrentSplit (reg);
|
||||
info->cursor_hint_trans_split = xaccSRGetCurrentTransSplit (reg);
|
||||
info->cursor_hint_phys_col = -1;
|
||||
info->hint_set_by_traverse = GNC_F;
|
||||
info->exact_traversal = GNC_F;
|
||||
info->hint_set_by_traverse = FALSE;
|
||||
info->exact_traversal = FALSE;
|
||||
|
||||
gnc_table_refresh_gui (table);
|
||||
|
||||
@ -3701,11 +3701,11 @@ xaccSRHasPendingChanges (SplitRegister *reg)
|
||||
guint32 changed;
|
||||
|
||||
if (reg == NULL)
|
||||
return GNC_F;
|
||||
return FALSE;
|
||||
|
||||
changed = xaccSplitRegisterGetChangeFlag (reg);
|
||||
if (changed)
|
||||
return GNC_T;
|
||||
return TRUE;
|
||||
|
||||
return xaccTransIsOpen(pending_trans);
|
||||
}
|
||||
|
@ -95,10 +95,10 @@ char * xaccAccountGetTypeStr (int type)
|
||||
}
|
||||
|
||||
/* =========================================================== */
|
||||
gncBoolean
|
||||
gboolean
|
||||
xaccAccountTypesCompatible (int parent_type, int child_type)
|
||||
{
|
||||
gncBoolean compatible = GNC_F;
|
||||
gboolean compatible = FALSE;
|
||||
|
||||
switch(parent_type)
|
||||
{
|
||||
|
@ -110,7 +110,7 @@ char * xaccAccountGetTypeStr (int type); /* GUI names */
|
||||
Used for text exports */
|
||||
char * xaccAccountTypeEnumAsString (int type);
|
||||
|
||||
gncBoolean xaccAccountTypesCompatible (int parent_type, int child_type);
|
||||
gboolean xaccAccountTypesCompatible (int parent_type, int child_type);
|
||||
|
||||
|
||||
typedef struct _BankAcct BankAcct;
|
||||
|
@ -1332,11 +1332,11 @@ IthAccount (Account **list, int i)
|
||||
/********************************************************************\
|
||||
\********************************************************************/
|
||||
|
||||
gncBoolean
|
||||
gboolean
|
||||
xaccAccountsHaveCommonCurrency(Account *account_1, Account *account_2)
|
||||
{
|
||||
if ((account_1 == NULL) || (account_2 == NULL))
|
||||
return GNC_F;
|
||||
return FALSE;
|
||||
|
||||
return xaccIsCommonCurrency(account_1->currency, account_1->security,
|
||||
account_2->currency, account_2->security);
|
||||
@ -1345,24 +1345,24 @@ xaccAccountsHaveCommonCurrency(Account *account_1, Account *account_2)
|
||||
/********************************************************************\
|
||||
\********************************************************************/
|
||||
|
||||
gncBoolean
|
||||
gboolean
|
||||
xaccAccountHasAncestor (Account *account, Account * ancestor)
|
||||
{
|
||||
Account *parent;
|
||||
|
||||
if ((account == NULL) || (ancestor == NULL))
|
||||
return GNC_F;
|
||||
return FALSE;
|
||||
|
||||
parent = xaccAccountGetParentAccount(account);
|
||||
while (parent != NULL)
|
||||
{
|
||||
if (parent == ancestor)
|
||||
return GNC_T;
|
||||
return TRUE;
|
||||
|
||||
parent = xaccAccountGetParentAccount(parent);
|
||||
}
|
||||
|
||||
return GNC_F;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*************************** END OF FILE **************************** */
|
||||
|
@ -184,19 +184,18 @@ char * xaccAccountGetFullName (Account *, const char separator);
|
||||
* value is just list[i]. This routine is needed for the perl
|
||||
* swig wrappers, which cannot dereference a list.
|
||||
*/
|
||||
|
||||
Account * IthAccount (Account **list, int i);
|
||||
|
||||
/* xaccAccountsHaveCommonCurrency returns true if the two given accounts
|
||||
* have a currency in common, i.e., if they can have common transactions.
|
||||
* Useful for UI sanity checks.
|
||||
*/
|
||||
gncBoolean xaccAccountsHaveCommonCurrency(Account *account_1,
|
||||
gboolean xaccAccountsHaveCommonCurrency(Account *account_1,
|
||||
Account *account_2);
|
||||
|
||||
/* Returns true if the account has 'ancestor' as an ancestor.
|
||||
* Returns false if either is NULL. */
|
||||
gncBoolean xaccAccountHasAncestor (Account *, Account * ancestor);
|
||||
gboolean xaccAccountHasAncestor (Account *, Account * ancestor);
|
||||
|
||||
/* Get and Set a mark on the account. The meaning of this mark is
|
||||
* completely undefined. Its presented here as a utility for the
|
||||
|
@ -52,7 +52,7 @@
|
||||
void
|
||||
xaccInitializeAccountGroup (AccountGroup *grp)
|
||||
{
|
||||
grp->saved = GNC_T;
|
||||
grp->saved = TRUE;
|
||||
|
||||
grp->parent = NULL;
|
||||
grp->numAcc = 0;
|
||||
@ -131,7 +131,7 @@ xaccGroupMarkSaved (AccountGroup *grp)
|
||||
int i;
|
||||
|
||||
if (!grp) return;
|
||||
grp->saved = GNC_T;
|
||||
grp->saved = TRUE;
|
||||
|
||||
for (i=0; i<grp->numAcc; i++) {
|
||||
xaccGroupMarkSaved (grp->account[i]->children);
|
||||
@ -145,7 +145,7 @@ void
|
||||
xaccGroupMarkNotSaved (AccountGroup *grp)
|
||||
{
|
||||
if (!grp) return;
|
||||
grp->saved = GNC_F;
|
||||
grp->saved = FALSE;
|
||||
}
|
||||
|
||||
/********************************************************************\
|
||||
@ -158,7 +158,7 @@ xaccGroupNotSaved (AccountGroup *grp)
|
||||
int i;
|
||||
|
||||
if (!grp) return 0;
|
||||
if (GNC_F == grp->saved) return 1;
|
||||
if (FALSE == grp->saved) return 1;
|
||||
|
||||
for (i=0; i<grp->numAcc; i++) {
|
||||
not_saved = xaccGroupNotSaved (grp->account[i]->children);
|
||||
@ -479,7 +479,7 @@ xaccRemoveGroup (AccountGroup *grp)
|
||||
grp = acc -> parent;
|
||||
if (!grp) return;
|
||||
|
||||
grp->saved = GNC_F;
|
||||
grp->saved = FALSE;
|
||||
}
|
||||
|
||||
/********************************************************************\
|
||||
@ -512,7 +512,7 @@ xaccRemoveAccount (Account *acc)
|
||||
nacc --;
|
||||
arr[nacc] = NULL;
|
||||
grp->numAcc = nacc;
|
||||
grp->saved = GNC_F;
|
||||
grp->saved = FALSE;
|
||||
|
||||
/* if this was the last account in a group, delete
|
||||
* the group as well (unless its a root group) */
|
||||
@ -566,7 +566,7 @@ xaccGroupInsertAccount( AccountGroup *grp, Account *acc )
|
||||
if (grp == acc->parent) ralo = 0;
|
||||
xaccRemoveAccount (acc);
|
||||
}
|
||||
grp->saved = GNC_F;
|
||||
grp->saved = FALSE;
|
||||
|
||||
/* set back-pointer to the account's parent */
|
||||
acc->parent = grp;
|
||||
@ -954,24 +954,24 @@ xaccAccountsBeginStagedTransactionTraversals (Account **accounts)
|
||||
xaccAccountBeginStagedTransactionTraversals(*aptr);
|
||||
}
|
||||
|
||||
gncBoolean
|
||||
gboolean
|
||||
xaccTransactionTraverse(Transaction *trans, int stage)
|
||||
{
|
||||
if (trans == NULL) return GNC_F;
|
||||
if (trans == NULL) return FALSE;
|
||||
|
||||
if (trans->marker < stage)
|
||||
{
|
||||
trans->marker = stage;
|
||||
return GNC_T;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return GNC_F;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
gncBoolean
|
||||
gboolean
|
||||
xaccSplitTransactionTraverse(Split *split, int stage)
|
||||
{
|
||||
if (split == NULL) return GNC_F;
|
||||
if (split == NULL) return FALSE;
|
||||
|
||||
return xaccTransactionTraverse(split->parent, stage);
|
||||
}
|
||||
|
@ -275,8 +275,8 @@ void xaccAccountsBeginStagedTransactionTraversals (Account **accounts);
|
||||
* the given split.
|
||||
*/
|
||||
|
||||
gncBoolean xaccTransactionTraverse(Transaction *trans, int stage);
|
||||
gncBoolean xaccSplitTransactionTraverse(Split *split, int stage);
|
||||
gboolean xaccTransactionTraverse(Transaction *trans, int stage);
|
||||
gboolean xaccSplitTransactionTraverse(Split *split, int stage);
|
||||
|
||||
/* xaccGroupStagedTransactionTraversal() calls thunk on each
|
||||
* transaction in the group whose current marker is less than the
|
||||
|
@ -35,20 +35,20 @@ static short module = MOD_ENGINE;
|
||||
|
||||
/* ------------------------------------------------------ */
|
||||
|
||||
gncBoolean accListHasAccount (Account **list, Account *findme)
|
||||
gboolean accListHasAccount (Account **list, Account *findme)
|
||||
{
|
||||
Account *acc;
|
||||
int nacc = 0;
|
||||
if (!list || !findme) return GNC_F;
|
||||
if (!list || !findme) return FALSE;
|
||||
|
||||
acc = list[0];
|
||||
while (acc) {
|
||||
if (acc == findme)
|
||||
return GNC_T;
|
||||
return TRUE;
|
||||
nacc++;
|
||||
acc = list[nacc];
|
||||
}
|
||||
return GNC_F;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------ */
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
/** PROTOTYPES ******************************************************/
|
||||
|
||||
gncBoolean accListHasAccount (Account **list, Account *findme);
|
||||
gboolean accListHasAccount (Account **list, Account *findme);
|
||||
int accListCount (Account **list);
|
||||
Account ** accListCopy (Account **list);
|
||||
Account ** xaccGroupToList (Account *);
|
||||
|
@ -56,7 +56,7 @@ struct _querystruct {
|
||||
sort_type_t primary_sort;
|
||||
sort_type_t secondary_sort;
|
||||
sort_type_t tertiary_sort;
|
||||
gncBoolean sort_increasing;
|
||||
gboolean sort_increasing;
|
||||
int max_splits;
|
||||
|
||||
/* cache the results so we don't have to run the whole search
|
||||
@ -152,7 +152,7 @@ xaccInitQuery(Query * q, QueryTerm * initial_term) {
|
||||
q->secondary_sort = BY_NONE;
|
||||
q->tertiary_sort = BY_NONE;
|
||||
|
||||
q->sort_increasing = GNC_T;
|
||||
q->sort_increasing = TRUE;
|
||||
}
|
||||
|
||||
|
||||
@ -1812,7 +1812,7 @@ xaccQuerySetSortOrder(Query * q, sort_type_t primary,
|
||||
* xaccQuerySetSortIncreasing
|
||||
*******************************************************************/
|
||||
void
|
||||
xaccQuerySetSortIncreasing(Query * q, gncBoolean increasing)
|
||||
xaccQuerySetSortIncreasing(Query * q, gboolean increasing)
|
||||
{
|
||||
q->sort_increasing = increasing;
|
||||
}
|
||||
|
@ -190,7 +190,7 @@ void xaccQueryAddClearedMatch(Query * q, int how,
|
||||
|
||||
void xaccQuerySetSortOrder(Query * q, sort_type_t primary,
|
||||
sort_type_t secondary, sort_type_t tertiary);
|
||||
void xaccQuerySetSortIncreasing(Query * q, gncBoolean increasing);
|
||||
void xaccQuerySetSortIncreasing(Query * q, gboolean increasing);
|
||||
void xaccQuerySetMaxSplits(Query * q, int n);
|
||||
|
||||
|
||||
|
@ -813,14 +813,14 @@ xaccTransGetImbalance (Transaction * trans)
|
||||
|
||||
/********************************************************************\
|
||||
\********************************************************************/
|
||||
gncBoolean
|
||||
gboolean
|
||||
xaccIsCommonCurrency(const char *currency_1, const char *security_1,
|
||||
const char *currency_2, const char *security_2)
|
||||
{
|
||||
int c1c2, c1s2, s1c2, s1s2;
|
||||
|
||||
if ((currency_1 == NULL) || (currency_2 == NULL))
|
||||
return GNC_F;
|
||||
return FALSE;
|
||||
|
||||
if ((security_1 != NULL) && (security_1[0] == 0x0))
|
||||
security_1 = NULL;
|
||||
@ -1345,10 +1345,10 @@ xaccTransRollbackEdit (Transaction *trans)
|
||||
LEAVE ("trans addr=%p\n", trans);
|
||||
}
|
||||
|
||||
gncBoolean
|
||||
gboolean
|
||||
xaccTransIsOpen (Transaction *trans)
|
||||
{
|
||||
if (!trans) return GNC_F;
|
||||
if (!trans) return FALSE;
|
||||
return (0 != (trans->open & BEGIN_EDIT));
|
||||
}
|
||||
|
||||
|
@ -147,7 +147,7 @@ void xaccTransBeginEdit (Transaction *, int defer);
|
||||
void xaccTransCommitEdit (Transaction *);
|
||||
void xaccTransRollbackEdit (Transaction *);
|
||||
|
||||
gncBoolean xaccTransIsOpen (Transaction *trans);
|
||||
gboolean xaccTransIsOpen (Transaction *trans);
|
||||
|
||||
/*
|
||||
* The xaccTransGetGUID() subroutine will return the
|
||||
@ -273,7 +273,7 @@ int xaccTransCountSplits (Transaction *trans);
|
||||
* xaccTransFindCommonCurrency. This method is useful for determining
|
||||
* whether two accounts can have transactions in common.
|
||||
*/
|
||||
gncBoolean xaccIsCommonCurrency(const char *currency_1, const char *security_1,
|
||||
gboolean xaccIsCommonCurrency(const char *currency_1, const char *security_1,
|
||||
const char *currency_2, const char *security_2);
|
||||
|
||||
/* The xaccTransFindCommonCurrency () method returns a string value
|
||||
|
@ -28,8 +28,4 @@
|
||||
#include "config.h"
|
||||
#include <glib.h>
|
||||
|
||||
typedef gboolean gncBoolean;
|
||||
#define GNC_F (FALSE)
|
||||
#define GNC_T (TRUE)
|
||||
|
||||
#endif
|
||||
|
@ -81,11 +81,11 @@ gnc_set_log_level_global(gncLogLevel level)
|
||||
|
||||
|
||||
/* xaccParseAmount configuration */
|
||||
static gncBoolean auto_decimal_enabled = GNC_F;
|
||||
static gboolean auto_decimal_enabled = FALSE;
|
||||
|
||||
/* enable/disable the auto_decimal_enabled option */
|
||||
void
|
||||
gnc_set_auto_decimal_enabled(gncBoolean enabled)
|
||||
gnc_set_auto_decimal_enabled(gboolean enabled)
|
||||
{
|
||||
auto_decimal_enabled = enabled;
|
||||
}
|
||||
@ -351,32 +351,32 @@ util_fptostr(char *buf, double val, int prec)
|
||||
}
|
||||
|
||||
/********************************************************************\
|
||||
* returns GNC_T if the string is a number, possibly with whitespace
|
||||
* returns TRUE if the string is a number, possibly with whitespace
|
||||
\********************************************************************/
|
||||
|
||||
gncBoolean
|
||||
gboolean
|
||||
gnc_strisnum(const char *s)
|
||||
{
|
||||
if (s == NULL) return GNC_F;
|
||||
if (*s == 0) return GNC_F;
|
||||
if (s == NULL) return FALSE;
|
||||
if (*s == 0) return FALSE;
|
||||
|
||||
while (*s && isspace(*s))
|
||||
s++;
|
||||
|
||||
if (*s == 0) return GNC_F;
|
||||
if (!isdigit(*s)) return GNC_F;
|
||||
if (*s == 0) return FALSE;
|
||||
if (!isdigit(*s)) return FALSE;
|
||||
|
||||
while (*s && isdigit(*s))
|
||||
s++;
|
||||
|
||||
if (*s == 0) return GNC_T;
|
||||
if (*s == 0) return TRUE;
|
||||
|
||||
while (*s && isspace(*s))
|
||||
s++;
|
||||
|
||||
if (*s == 0) return GNC_T;
|
||||
if (*s == 0) return TRUE;
|
||||
|
||||
return GNC_F;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/********************************************************************\
|
||||
@ -417,7 +417,7 @@ struct lconv *
|
||||
gnc_localeconv()
|
||||
{
|
||||
static struct lconv lc;
|
||||
static gncBoolean lc_set = GNC_F;
|
||||
static gboolean lc_set = FALSE;
|
||||
|
||||
if (lc_set)
|
||||
return &lc;
|
||||
@ -441,7 +441,7 @@ gnc_localeconv()
|
||||
gnc_lconv_set_char(&lc.p_sign_posn, 1);
|
||||
gnc_lconv_set_char(&lc.n_sign_posn, 1);
|
||||
|
||||
lc_set = GNC_T;
|
||||
lc_set = TRUE;
|
||||
|
||||
return &lc;
|
||||
}
|
||||
@ -450,7 +450,7 @@ char *
|
||||
gnc_locale_default_currency()
|
||||
{
|
||||
static char currency[4];
|
||||
gncBoolean got_it = GNC_F;
|
||||
gboolean got_it = FALSE;
|
||||
struct lconv *lc;
|
||||
int i;
|
||||
|
||||
@ -464,7 +464,7 @@ gnc_locale_default_currency()
|
||||
|
||||
strncpy(currency, lc->int_curr_symbol, 3);
|
||||
|
||||
got_it = GNC_T;
|
||||
got_it = TRUE;
|
||||
|
||||
return currency;
|
||||
}
|
||||
@ -472,8 +472,8 @@ gnc_locale_default_currency()
|
||||
/* Utility function for printing non-negative amounts */
|
||||
static int
|
||||
PrintAmt(char *buf, double val, int prec,
|
||||
gncBoolean use_separators,
|
||||
gncBoolean monetary,
|
||||
gboolean use_separators,
|
||||
gboolean monetary,
|
||||
int min_trailing_zeros)
|
||||
{
|
||||
int i, stringLength, numWholeDigits, sepCount;
|
||||
@ -589,7 +589,7 @@ xaccSPrintAmountGeneral (char * bufp, double val,
|
||||
char sep_by_space;
|
||||
char sign_posn;
|
||||
|
||||
gncBoolean print_sign = GNC_T;
|
||||
gboolean print_sign = TRUE;
|
||||
|
||||
if (!bufp) return 0;
|
||||
|
||||
@ -645,7 +645,7 @@ xaccSPrintAmountGeneral (char * bufp, double val,
|
||||
}
|
||||
|
||||
if ((val == 0.0) || (sign == NULL) || (sign[0] == 0))
|
||||
print_sign = GNC_F;
|
||||
print_sign = FALSE;
|
||||
|
||||
/* See if we print sign now */
|
||||
if (print_sign && (sign_posn == 1))
|
||||
@ -771,8 +771,8 @@ xaccPrintAmount (double val, GNCPrintAmountFlags flags, const char *curr_code)
|
||||
}
|
||||
|
||||
char *
|
||||
xaccPrintAmountArgs (double val, gncBoolean print_currency_symbol,
|
||||
gncBoolean print_separators, gncBoolean is_shares_value,
|
||||
xaccPrintAmountArgs (double val, gboolean print_currency_symbol,
|
||||
gboolean print_separators, gboolean is_shares_value,
|
||||
const char *curr_code)
|
||||
{
|
||||
GNCPrintAmountFlags flags = 0;
|
||||
@ -794,10 +794,10 @@ xaccPrintAmountArgs (double val, gncBoolean print_currency_symbol,
|
||||
* Return: double -- the parsed amount *
|
||||
\********************************************************************/
|
||||
|
||||
double xaccParseAmount (const char * instr, gncBoolean monetary)
|
||||
double xaccParseAmount (const char * instr, gboolean monetary)
|
||||
{
|
||||
struct lconv *lc = gnc_localeconv();
|
||||
gncBoolean isneg = GNC_F;
|
||||
gboolean isneg = FALSE;
|
||||
char *mstr, *str, *tok;
|
||||
double amount = 0.0;
|
||||
char negative_sign;
|
||||
@ -842,7 +842,7 @@ double xaccParseAmount (const char * instr, gncBoolean monetary)
|
||||
|
||||
/* look for a negative sign */
|
||||
if (*str == negative_sign) {
|
||||
isneg = GNC_T;
|
||||
isneg = TRUE;
|
||||
str++;
|
||||
}
|
||||
|
||||
@ -871,7 +871,7 @@ double xaccParseAmount (const char * instr, gncBoolean monetary)
|
||||
/* look for a negative sign at the end, some locales allow it,
|
||||
* we'll just allow it everywhere. */
|
||||
if (*tok == negative_sign) {
|
||||
isneg = GNC_T;
|
||||
isneg = TRUE;
|
||||
*tok = '\0';
|
||||
}
|
||||
|
||||
|
@ -153,7 +153,7 @@ void gnc_set_log_level(gncModuleType module, gncLogLevel level);
|
||||
void gnc_set_log_level_global(gncLogLevel level);
|
||||
|
||||
/* enable/disable the auto decimal option */
|
||||
void gnc_set_auto_decimal_enabled(gncBoolean enabled);
|
||||
void gnc_set_auto_decimal_enabled(gboolean enabled);
|
||||
|
||||
|
||||
/********************************************************/
|
||||
@ -191,7 +191,7 @@ char * ultostr (unsigned long val, int base);
|
||||
|
||||
/* Returns true if string s is a number, possibly
|
||||
* surrounded by whitespace. */
|
||||
gncBoolean gnc_strisnum(const char *s);
|
||||
gboolean gnc_strisnum(const char *s);
|
||||
|
||||
/* The gnc_localeconv() subroutine returns an lconv structure
|
||||
* containing locale information. If no locale is set, the
|
||||
@ -258,13 +258,13 @@ int xaccSPrintAmountGeneral (char * bufp, double val,
|
||||
int min_trailing_zeros,
|
||||
const char *curr_sym);
|
||||
char * xaccPrintAmountArgs (double val,
|
||||
gncBoolean print_currency_symbol,
|
||||
gncBoolean print_separators,
|
||||
gncBoolean is_shares_value,
|
||||
gboolean print_currency_symbol,
|
||||
gboolean print_separators,
|
||||
gboolean is_shares_value,
|
||||
const char *curr_code);
|
||||
|
||||
/* Parse i18n amount strings */
|
||||
double xaccParseAmount (const char * instr, gncBoolean monetary);
|
||||
double xaccParseAmount (const char * instr, gboolean monetary);
|
||||
|
||||
|
||||
/** TEMPLATES ******************************************************/
|
||||
|
@ -116,7 +116,7 @@ gnc_account_tree_init(GNCAccountTree *tree)
|
||||
{
|
||||
tree->root_account = NULL;
|
||||
tree->current_accounts = NULL;
|
||||
tree->ignore_unselect = GNC_F;
|
||||
tree->ignore_unselect = FALSE;
|
||||
tree->filter = NULL;
|
||||
tree->filter_data = NULL;
|
||||
|
||||
@ -598,8 +598,8 @@ gnc_account_tree_insert_account(GNCAccountTree *tree, Account *account)
|
||||
void
|
||||
gnc_account_tree_show_income_expense(GNCAccountTree *tree)
|
||||
{
|
||||
tree->avi.include_type[EXPENSE] = GNC_T;
|
||||
tree->avi.include_type[INCOME] = GNC_T;
|
||||
tree->avi.include_type[EXPENSE] = TRUE;
|
||||
tree->avi.include_type[INCOME] = TRUE;
|
||||
|
||||
gnc_account_tree_refresh(tree);
|
||||
}
|
||||
@ -615,8 +615,8 @@ gnc_account_tree_show_income_expense(GNCAccountTree *tree)
|
||||
void
|
||||
gnc_account_tree_hide_income_expense(GNCAccountTree *tree)
|
||||
{
|
||||
tree->avi.include_type[EXPENSE] = GNC_F;
|
||||
tree->avi.include_type[INCOME] = GNC_F;
|
||||
tree->avi.include_type[EXPENSE] = FALSE;
|
||||
tree->avi.include_type[INCOME] = FALSE;
|
||||
|
||||
gnc_account_tree_refresh(tree);
|
||||
}
|
||||
@ -702,14 +702,14 @@ gnc_init_account_view_info(AccountViewInfo *avi)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < NUM_ACCOUNT_TYPES; i++)
|
||||
avi->include_type[i] = GNC_T;
|
||||
avi->include_type[i] = TRUE;
|
||||
|
||||
for (i = 0; i < NUM_ACCOUNT_FIELDS; i++)
|
||||
avi->show_field[i] = GNC_F;
|
||||
avi->show_field[i] = FALSE;
|
||||
|
||||
avi->show_field[ACCOUNT_NAME] = GNC_T;
|
||||
avi->show_field[ACCOUNT_DESCRIPTION] = GNC_T;
|
||||
avi->show_field[ACCOUNT_TOTAL] = GNC_T;
|
||||
avi->show_field[ACCOUNT_NAME] = TRUE;
|
||||
avi->show_field[ACCOUNT_DESCRIPTION] = TRUE;
|
||||
avi->show_field[ACCOUNT_TOTAL] = TRUE;
|
||||
}
|
||||
|
||||
/********************************************************************\
|
||||
@ -806,7 +806,7 @@ gnc_account_tree_button_press(GtkWidget *widget,
|
||||
node = gtk_ctree_node_nth(ctree, row);
|
||||
account = gtk_ctree_node_get_row_data(ctree, node);
|
||||
|
||||
GNC_ACCOUNT_TREE(ctree)->ignore_unselect = GNC_T;
|
||||
GNC_ACCOUNT_TREE(ctree)->ignore_unselect = TRUE;
|
||||
|
||||
gtk_signal_emit(GTK_OBJECT(widget),
|
||||
account_tree_signals[ACTIVATE_ACCOUNT],
|
||||
@ -831,7 +831,7 @@ gnc_account_tree_select_row(GtkCTree *ctree,
|
||||
Account *account;
|
||||
GList *node;
|
||||
|
||||
tree->ignore_unselect = GNC_F;
|
||||
tree->ignore_unselect = FALSE;
|
||||
|
||||
account = gtk_ctree_node_get_row_data(ctree, GTK_CTREE_NODE(row));
|
||||
node = g_list_find(tree->current_accounts, account);
|
||||
@ -856,7 +856,7 @@ gnc_account_tree_unselect_row(GtkCTree *ctree,
|
||||
|
||||
if (tree->ignore_unselect)
|
||||
{
|
||||
tree->ignore_unselect = GNC_F;
|
||||
tree->ignore_unselect = FALSE;
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -287,7 +287,7 @@ change_func(gpointer key, gpointer value, gpointer field_code)
|
||||
if (account == NULL)
|
||||
return;
|
||||
|
||||
xaccAccountBeginEdit(account, GNC_T);
|
||||
xaccAccountBeginEdit(account, TRUE);
|
||||
|
||||
switch (field)
|
||||
{
|
||||
@ -1053,7 +1053,7 @@ gnc_parent_tree_select(GNCAccountTree *tree,
|
||||
/* Deleselect any or select top account */
|
||||
if (account == NULL || account == aw->top_level_account)
|
||||
for (type = 0; type < NUM_ACCOUNT_TYPES; type++)
|
||||
gnc_type_list_row_set_active(GTK_CLIST(aw->type_list), type, GNC_T);
|
||||
gnc_type_list_row_set_active(GTK_CLIST(aw->type_list), type, TRUE);
|
||||
else /* Some other account was selected */
|
||||
{
|
||||
parent_type = xaccAccountGetType(account);
|
||||
|
@ -864,7 +864,7 @@ subentry_amount_entry_focus_out(GtkWidget *widget, GdkEventFocus *event,
|
||||
if ((string == NULL) || (*string == '\0'))
|
||||
return FALSE;
|
||||
|
||||
value = xaccParseAmount(string, GNC_T);
|
||||
value = xaccParseAmount(string, TRUE);
|
||||
|
||||
new_string = xaccPrintAmount(value, PRTSEP, NULL);
|
||||
|
||||
|
@ -394,7 +394,7 @@ gnc_option_get_ui_value(GNCOption *option)
|
||||
void
|
||||
gnc_set_option_selectable_by_name( const char *section,
|
||||
const char *name,
|
||||
gncBoolean selectable)
|
||||
gboolean selectable)
|
||||
{
|
||||
GNCOption *option = gnc_get_option_by_name( section, name );
|
||||
|
||||
|
@ -158,7 +158,7 @@ gnc_xfer_update_cb(GtkWidget *widget, GdkEventFocus *event, gpointer data)
|
||||
if ((string == NULL) || (*string == 0))
|
||||
return FALSE;
|
||||
|
||||
value = xaccParseAmount(string, GNC_T);
|
||||
value = xaccParseAmount(string, TRUE);
|
||||
|
||||
currency = xaccAccountGetCurrency(account);
|
||||
|
||||
@ -325,14 +325,14 @@ gnc_xfer_dialog_ok_cb(GtkWidget * widget, gpointer data)
|
||||
}
|
||||
|
||||
string = gtk_entry_get_text(GTK_ENTRY(xferData->amount_entry));
|
||||
amount = xaccParseAmount(string, GNC_T);
|
||||
amount = xaccParseAmount(string, TRUE);
|
||||
|
||||
time = gnc_date_edit_get_date(GNC_DATE_EDIT(xferData->date_entry));
|
||||
|
||||
/* Create the transaction */
|
||||
trans = xaccMallocTransaction();
|
||||
|
||||
xaccTransBeginEdit(trans, GNC_T);
|
||||
xaccTransBeginEdit(trans, TRUE);
|
||||
xaccTransSetDateSecs(trans, time);
|
||||
|
||||
string = gtk_entry_get_text(GTK_ENTRY(xferData->num_entry));
|
||||
@ -355,12 +355,12 @@ gnc_xfer_dialog_ok_cb(GtkWidget * widget, gpointer data)
|
||||
xaccTransSetMemo(trans, string);
|
||||
|
||||
/* Now do the 'to' account */
|
||||
xaccAccountBeginEdit(to, GNC_F);
|
||||
xaccAccountBeginEdit(to, FALSE);
|
||||
xaccAccountInsertSplit(to, to_split);
|
||||
xaccAccountCommitEdit(to);
|
||||
|
||||
/* Now do the 'from' account */
|
||||
xaccAccountBeginEdit(from, GNC_F);
|
||||
xaccAccountBeginEdit(from, FALSE);
|
||||
xaccAccountInsertSplit(from, from_split);
|
||||
xaccAccountCommitEdit(from);
|
||||
|
||||
|
@ -105,10 +105,10 @@ gnc_foundation_query_dialog(gncUIWidget parent,
|
||||
const gchar *title,
|
||||
GtkWidget *contents,
|
||||
int default_answer,
|
||||
gncBoolean yes_allowed,
|
||||
gncBoolean ok_allowed,
|
||||
gncBoolean no_allowed,
|
||||
gncBoolean cancel_allowed,
|
||||
gboolean yes_allowed,
|
||||
gboolean ok_allowed,
|
||||
gboolean no_allowed,
|
||||
gboolean cancel_allowed,
|
||||
int *dialog_result) {
|
||||
|
||||
FoundationCBData * cb_data;
|
||||
@ -196,7 +196,7 @@ gnc_foundation_query_dialog(gncUIWidget parent,
|
||||
cb_data);
|
||||
|
||||
/* Setup window settings */
|
||||
gtk_window_set_modal(GTK_WINDOW(query_dialog), GNC_T);
|
||||
gtk_window_set_modal(GTK_WINDOW(query_dialog), TRUE);
|
||||
gnome_dialog_set_default(GNOME_DIALOG(query_dialog), default_button);
|
||||
gnome_dialog_set_close(GNOME_DIALOG(query_dialog), TRUE);
|
||||
if (parent != NULL)
|
||||
@ -341,8 +341,8 @@ gnc_verify_cancel_dialog_parented(GtkWidget *parent, const char *message,
|
||||
* "No" is the default button. *
|
||||
* Return: true for "Yes", false for "No" *
|
||||
\********************************************************************/
|
||||
gncBoolean
|
||||
gnc_verify_dialog(const char *message, gncBoolean yes_is_default)
|
||||
gboolean
|
||||
gnc_verify_dialog(const char *message, gboolean yes_is_default)
|
||||
{
|
||||
return gnc_verify_dialog_parented(GTK_WINDOW(gnc_get_ui_data()),
|
||||
message, yes_is_default);
|
||||
@ -360,9 +360,9 @@ gnc_verify_dialog(const char *message, gncBoolean yes_is_default)
|
||||
* "No" is the default button. *
|
||||
* Return: true for "Yes", false for "No" *
|
||||
\********************************************************************/
|
||||
gncBoolean
|
||||
gboolean
|
||||
gnc_verify_dialog_parented(GtkWindow *parent, const char *message,
|
||||
gncBoolean yes_is_default)
|
||||
gboolean yes_is_default)
|
||||
{
|
||||
GtkWidget *verify_box = NULL;
|
||||
|
||||
@ -527,7 +527,7 @@ gnc_choose_item_from_list_dialog(const char *title, SCM list_items)
|
||||
GtkWidget *vbox;
|
||||
GtkWidget *query_box;
|
||||
SCM listcursor;
|
||||
gncBoolean status_ok;
|
||||
gboolean status_ok;
|
||||
unsigned long i;
|
||||
|
||||
if(title == NULL)
|
||||
@ -541,21 +541,21 @@ gnc_choose_item_from_list_dialog(const char *title, SCM list_items)
|
||||
|
||||
/* Convert the scm data to C callback structs */
|
||||
i = 0;
|
||||
status_ok = GNC_T;
|
||||
status_ok = TRUE;
|
||||
listcursor = list_items;
|
||||
while(status_ok && !gh_null_p(listcursor)) {
|
||||
SCM scm_item = gh_car(listcursor);
|
||||
|
||||
if(!gh_pair_p(scm_item)) {
|
||||
fprintf(stderr, "Dying: not a pair.\n");
|
||||
status_ok = GNC_F;
|
||||
status_ok = FALSE;
|
||||
} else {
|
||||
SCM item_scm_name = gh_car(scm_item);
|
||||
SCM item_scm_thunk = gh_cdr(scm_item);
|
||||
|
||||
if(!(gh_string_p(item_scm_name) && gh_procedure_p(item_scm_thunk))) {
|
||||
fprintf(stderr, "Dying: bad pair item(s).\n");
|
||||
status_ok = GNC_F;
|
||||
status_ok = FALSE;
|
||||
} else {
|
||||
cb_data[i].name = gh_scm2newstr(item_scm_name, NULL);
|
||||
cb_data[i].closure = item_scm_thunk;
|
||||
@ -564,7 +564,7 @@ gnc_choose_item_from_list_dialog(const char *title, SCM list_items)
|
||||
|
||||
if(!cb_data[i].name) {
|
||||
fprintf(stderr, "Dying: no C name.\n");
|
||||
status_ok = GNC_F;
|
||||
status_ok = FALSE;
|
||||
} else {
|
||||
listcursor = gh_cdr(listcursor);
|
||||
i++;
|
||||
@ -585,7 +585,7 @@ gnc_choose_item_from_list_dialog(const char *title, SCM list_items)
|
||||
for(i = 0; i < num_items; i++) {
|
||||
GtkWidget *b = gtk_button_new_with_label(cb_data[i].name);
|
||||
if(b == NULL) {
|
||||
status_ok = GNC_F;
|
||||
status_ok = FALSE;
|
||||
} else {
|
||||
gtk_signal_connect(GTK_OBJECT(b), "clicked",
|
||||
GTK_SIGNAL_FUNC(gnc_choose_item_cb),
|
||||
@ -608,10 +608,10 @@ gnc_choose_item_from_list_dialog(const char *title, SCM list_items)
|
||||
title,
|
||||
vbox,
|
||||
GNC_QUERY_CANCEL, /* cancel */
|
||||
GNC_F, /* yes_allowed */
|
||||
GNC_F, /* ok_allowed */
|
||||
GNC_F, /* no_allowed */
|
||||
GNC_T, /* cancel_allowed */
|
||||
FALSE, /* yes_allowed */
|
||||
FALSE, /* ok_allowed */
|
||||
FALSE, /* no_allowed */
|
||||
TRUE, /* cancel_allowed */
|
||||
&dialog_result);
|
||||
|
||||
if(query_box == NULL) {
|
||||
@ -724,10 +724,10 @@ gnc_choose_radio_option_dialog_parented(gncUIWidget parent,
|
||||
title,
|
||||
main_vbox,
|
||||
GNC_QUERY_YES, /* ok */
|
||||
GNC_F, /* yes_allowed */
|
||||
GNC_T, /* ok_allowed */
|
||||
GNC_F, /* no_allowed */
|
||||
GNC_F, /* cancel_allowed */
|
||||
FALSE, /* yes_allowed */
|
||||
TRUE, /* ok_allowed */
|
||||
FALSE, /* no_allowed */
|
||||
FALSE, /* cancel_allowed */
|
||||
&dialog_result);
|
||||
|
||||
gnome_dialog_run_and_close(GNOME_DIALOG(query_box));
|
||||
|
@ -33,8 +33,8 @@ enum
|
||||
};
|
||||
|
||||
|
||||
gncBoolean gnc_verify_dialog_parented(GtkWindow *parent, const char *message,
|
||||
gncBoolean yes_is_default);
|
||||
gboolean gnc_verify_dialog_parented(GtkWindow *parent, const char *message,
|
||||
gboolean yes_is_default);
|
||||
|
||||
void gnc_info_dialog(const char *message);
|
||||
void gnc_info_dialog_parented(GtkWindow *parent, const char *message);
|
||||
|
@ -645,12 +645,12 @@ gnc_configure_register_borders(void)
|
||||
|
||||
if (gnc_lookup_boolean_option("Register",
|
||||
"Show Vertical Borders",
|
||||
GNC_T))
|
||||
TRUE))
|
||||
reg_borders |= STYLE_BORDER_LEFT | STYLE_BORDER_RIGHT;
|
||||
|
||||
if (gnc_lookup_boolean_option("Register",
|
||||
"Show Horizontal Borders",
|
||||
GNC_T))
|
||||
TRUE))
|
||||
reg_borders |= STYLE_BORDER_TOP | STYLE_BORDER_BOTTOM;
|
||||
|
||||
gnucash_style_set_register_borders (reg_borders);
|
||||
@ -671,28 +671,28 @@ gnc_configure_reverse_balance_cb(void *not_used)
|
||||
gnc_refresh_main_window();
|
||||
}
|
||||
|
||||
static gncBoolean reverse_type[NUM_ACCOUNT_TYPES];
|
||||
static gboolean reverse_type[NUM_ACCOUNT_TYPES];
|
||||
|
||||
gncBoolean
|
||||
gboolean
|
||||
gnc_reverse_balance_type(int type)
|
||||
{
|
||||
if ((type < 0) || (type >= NUM_ACCOUNT_TYPES))
|
||||
return GNC_F;
|
||||
return FALSE;
|
||||
|
||||
return reverse_type[type];
|
||||
}
|
||||
|
||||
gncBoolean
|
||||
gboolean
|
||||
gnc_reverse_balance(Account *account)
|
||||
{
|
||||
int type;
|
||||
|
||||
if (account == NULL)
|
||||
return GNC_F;
|
||||
return FALSE;
|
||||
|
||||
type = xaccAccountGetType(account);
|
||||
if ((type < 0) || (type >= NUM_ACCOUNT_TYPES))
|
||||
return GNC_F;
|
||||
return FALSE;
|
||||
|
||||
return reverse_type[type];
|
||||
}
|
||||
@ -712,7 +712,7 @@ gnc_configure_reverse_balance(void)
|
||||
xaccSRSetReverseBalanceCallback(gnc_reverse_balance);
|
||||
|
||||
for (i = 0; i < NUM_ACCOUNT_TYPES; i++)
|
||||
reverse_type[i] = GNC_F;
|
||||
reverse_type[i] = FALSE;
|
||||
|
||||
choice = gnc_lookup_multichoice_option("General",
|
||||
"Reversed-balance account types",
|
||||
@ -720,15 +720,15 @@ gnc_configure_reverse_balance(void)
|
||||
|
||||
if (safe_strcmp(choice, "default") == 0)
|
||||
{
|
||||
reverse_type[INCOME] = GNC_T;
|
||||
reverse_type[EXPENSE] = GNC_T;
|
||||
reverse_type[INCOME] = TRUE;
|
||||
reverse_type[EXPENSE] = TRUE;
|
||||
}
|
||||
else if (safe_strcmp(choice, "credit") == 0)
|
||||
{
|
||||
reverse_type[LIABILITY] = GNC_T;
|
||||
reverse_type[EQUITY] = GNC_T;
|
||||
reverse_type[INCOME] = GNC_T;
|
||||
reverse_type[CREDIT] = GNC_T;
|
||||
reverse_type[LIABILITY] = TRUE;
|
||||
reverse_type[EQUITY] = TRUE;
|
||||
reverse_type[INCOME] = TRUE;
|
||||
reverse_type[CREDIT] = TRUE;
|
||||
}
|
||||
else if (safe_strcmp(choice, "none") == 0)
|
||||
{
|
||||
@ -737,8 +737,8 @@ gnc_configure_reverse_balance(void)
|
||||
{
|
||||
PERR("bad value\n");
|
||||
|
||||
reverse_type[INCOME] = GNC_T;
|
||||
reverse_type[EXPENSE] = GNC_T;
|
||||
reverse_type[INCOME] = TRUE;
|
||||
reverse_type[EXPENSE] = TRUE;
|
||||
}
|
||||
|
||||
if (choice != NULL)
|
||||
@ -767,12 +767,13 @@ gnc_configure_auto_decimal_cb(void *not_used)
|
||||
static void
|
||||
gnc_configure_auto_decimal(void)
|
||||
{
|
||||
gnc_set_auto_decimal_enabled
|
||||
(
|
||||
(gncBoolean) gnc_lookup_boolean_option("General",
|
||||
gboolean enabled;
|
||||
|
||||
enabled = gnc_lookup_boolean_option("General",
|
||||
"Automatic Decimal Point",
|
||||
GNC_F)
|
||||
);
|
||||
FALSE);
|
||||
|
||||
gnc_set_auto_decimal_enabled(enabled);
|
||||
}
|
||||
|
||||
/* gnc_configure_register_font_cb
|
||||
|
@ -118,7 +118,7 @@ gnc_ui_AdjBWindow_ok_cb(GtkWidget * widget, gpointer data)
|
||||
gchar * string;
|
||||
|
||||
string = gtk_entry_get_text(GTK_ENTRY(adjBData->balance_entry));
|
||||
new_balance = xaccParseAmount(string, GNC_T);
|
||||
new_balance = xaccParseAmount(string, TRUE);
|
||||
if (gnc_reverse_balance(adjBData->account))
|
||||
new_balance = -new_balance;
|
||||
|
||||
@ -164,7 +164,7 @@ gnc_adjust_update_cb(GtkWidget *widget, GdkEventFocus *event, gpointer data)
|
||||
|
||||
string = gtk_entry_get_text(entry);
|
||||
|
||||
value = xaccParseAmount(string, GNC_T);
|
||||
value = xaccParseAmount(string, TRUE);
|
||||
|
||||
currency = xaccAccountGetCurrency(account);
|
||||
|
||||
|
@ -176,7 +176,7 @@ historyInsert(HTMLHistory *history, HTMLData *data)
|
||||
if (history->current_node == NULL)
|
||||
{
|
||||
history->current_node = new;
|
||||
return GNC_T;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* delete all next pages: */
|
||||
@ -195,7 +195,7 @@ historyInsert(HTMLHistory *history, HTMLData *data)
|
||||
history->current_node->next = new;
|
||||
history->current_node = new;
|
||||
|
||||
return GNC_F;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* Move forward in history, and return current history data */
|
||||
|
@ -515,7 +515,7 @@ gnc_ui_delete_account_cb ( GtkWidget *widget, gpointer data )
|
||||
name = xaccAccountGetName(account);
|
||||
message = g_strdup_printf(ACC_DEL_SURE_MSG, name);
|
||||
|
||||
if (gnc_verify_dialog(message, GNC_F))
|
||||
if (gnc_verify_dialog(message, FALSE))
|
||||
gnc_ui_delete_account(account);
|
||||
|
||||
g_free(message);
|
||||
@ -1332,8 +1332,8 @@ mainWindow()
|
||||
GTK_SIGNAL_FUNC(gnc_account_cb), NULL);
|
||||
|
||||
/* create statusbar and add it to the application. */
|
||||
statusbar = gnome_appbar_new(GNC_F, /* no progress bar, maybe later? */
|
||||
GNC_T, /* has status area */
|
||||
statusbar = gnome_appbar_new(FALSE, /* no progress bar, maybe later? */
|
||||
TRUE, /* has status area */
|
||||
GNOME_PREFERENCES_USER /* recommended */);
|
||||
|
||||
gnome_app_set_statusbar(GNOME_APP(app), GTK_WIDGET(statusbar));
|
||||
|
@ -269,7 +269,7 @@ gnc_start_recn_update_cb(GtkWidget *widget, GdkEventFocus *event,
|
||||
|
||||
string = gtk_entry_get_text(entry);
|
||||
|
||||
value = xaccParseAmount(string, GNC_T);
|
||||
value = xaccParseAmount(string, TRUE);
|
||||
|
||||
account_type = xaccAccountGetType(account);
|
||||
if ((account_type == STOCK) || (account_type == MUTUAL) ||
|
||||
@ -362,7 +362,7 @@ startRecnWindow(GtkWidget *parent, Account *account,
|
||||
GtkWidget *start_value = gtk_label_new(amount);
|
||||
GtkWidget *vbox = GNOME_DIALOG(dialog)->vbox;
|
||||
|
||||
date_value = gnc_date_edit_new(*statement_date, GNC_F, GNC_F);
|
||||
date_value = gnc_date_edit_new(*statement_date, FALSE, FALSE);
|
||||
end_value = gtk_entry_new();
|
||||
|
||||
amount = xaccPrintAmount(*new_ending, flags & ~PRTSYM, currency);
|
||||
@ -412,7 +412,7 @@ startRecnWindow(GtkWidget *parent, Account *account,
|
||||
|
||||
string = gtk_entry_get_text(GTK_ENTRY(end_value));
|
||||
|
||||
*new_ending = xaccParseAmount(string, GNC_T);
|
||||
*new_ending = xaccParseAmount(string, TRUE);
|
||||
*statement_date = gnc_date_edit_get_date(GNC_DATE_EDIT(date_value));
|
||||
|
||||
if (gnc_reverse_balance(account))
|
||||
@ -489,7 +489,7 @@ gnc_reconcile_window_set_titles(RecnWindow *recnData)
|
||||
gchar *title;
|
||||
|
||||
formal = gnc_lookup_boolean_option("General",
|
||||
"Use accounting labels", GNC_F);
|
||||
"Use accounting labels", FALSE);
|
||||
|
||||
if (formal)
|
||||
title = DEBITS_STR;
|
||||
@ -591,8 +591,8 @@ gnc_recn_create_status_bar(RecnWindow *recnData)
|
||||
{
|
||||
GtkWidget *statusbar;
|
||||
|
||||
statusbar = gnome_appbar_new(GNC_F, /* no progress bar */
|
||||
GNC_T, /* has status area */
|
||||
statusbar = gnome_appbar_new(FALSE, /* no progress bar */
|
||||
TRUE, /* has status area */
|
||||
GNOME_PREFERENCES_USER);
|
||||
|
||||
return statusbar;
|
||||
@ -670,7 +670,7 @@ gnc_ui_reconcile_window_delete_cb(GtkButton *button, gpointer data)
|
||||
gboolean result;
|
||||
|
||||
result = gnc_verify_dialog_parented(GTK_WINDOW(recnData->window),
|
||||
TRANS_DEL2_MSG, GNC_F);
|
||||
TRANS_DEL2_MSG, FALSE);
|
||||
|
||||
if (!result)
|
||||
return;
|
||||
@ -1639,7 +1639,7 @@ recnFinishCB(GtkWidget *w, gpointer data)
|
||||
|
||||
if (!DEQ(recnRecalculateBalance(recnData), 0.0))
|
||||
if (!gnc_verify_dialog_parented(GTK_WINDOW(recnData->window),
|
||||
RECN_BALN_WARN, GNC_F))
|
||||
RECN_BALN_WARN, FALSE))
|
||||
return;
|
||||
|
||||
date = recnData->statement_date;
|
||||
@ -1686,7 +1686,7 @@ recnCancelCB(GtkWidget *w, gpointer data)
|
||||
|
||||
if (changed)
|
||||
if (!gnc_verify_dialog_parented(GTK_WINDOW(recnData->window),
|
||||
RECN_CANCEL_WARN, GNC_F))
|
||||
RECN_CANCEL_WARN, FALSE))
|
||||
return;
|
||||
|
||||
gtk_widget_destroy(recnData->window);
|
||||
|
@ -95,7 +95,7 @@ struct _RegWindow
|
||||
RegDateWindow *date_window;
|
||||
|
||||
/* Do we close the ledger when the window closes? */
|
||||
gncBoolean close_ledger;
|
||||
gboolean close_ledger;
|
||||
};
|
||||
|
||||
|
||||
@ -888,8 +888,8 @@ gnc_register_create_status_bar(RegWindow *regData)
|
||||
GtkWidget *hbox;
|
||||
GtkWidget *label;
|
||||
|
||||
statusbar = gnome_appbar_new(GNC_F, /* no progress bar */
|
||||
GNC_T, /* has status area */
|
||||
statusbar = gnome_appbar_new(FALSE, /* no progress bar */
|
||||
TRUE, /* has status area */
|
||||
GNOME_PREFERENCES_USER);
|
||||
|
||||
regData->statusbar = statusbar;
|
||||
@ -956,7 +956,7 @@ new_trans_cb(GtkWidget *widget, gpointer data)
|
||||
{
|
||||
RegWindow *regData = data;
|
||||
|
||||
if (xaccSRSaveRegEntry(regData->ledger->ledger, GNC_T))
|
||||
if (xaccSRSaveRegEntry(regData->ledger->ledger, TRUE))
|
||||
xaccSRRedrawRegEntry(regData->ledger->ledger);
|
||||
|
||||
gnc_register_jump_to_blank(regData);
|
||||
@ -1420,11 +1420,11 @@ static void
|
||||
gnc_register_record_cb(GnucashRegister *reg, gpointer data)
|
||||
{
|
||||
RegWindow *regData = data;
|
||||
gncBoolean goto_blank;
|
||||
gboolean goto_blank;
|
||||
|
||||
goto_blank = gnc_lookup_boolean_option("Register",
|
||||
"'Enter' moves to blank transaction",
|
||||
GNC_F);
|
||||
FALSE);
|
||||
|
||||
/* If we are in single or double line mode and we hit enter
|
||||
* on the blank split, go to the blank split instead of the
|
||||
@ -1447,7 +1447,7 @@ gnc_register_record_cb(GnucashRegister *reg, gpointer data)
|
||||
current_split = xaccSRGetCurrentSplit(sr);
|
||||
|
||||
if (blank_split == current_split)
|
||||
goto_blank = GNC_T;
|
||||
goto_blank = TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1502,19 +1502,19 @@ gnc_reg_set_window_name(RegWindow *regData)
|
||||
case GENERAL_LEDGER:
|
||||
case INCOME_LEDGER:
|
||||
reg_name = GENERAL_LEDGER_STR;
|
||||
single_account = GNC_F;
|
||||
single_account = FALSE;
|
||||
break;
|
||||
case PORTFOLIO_LEDGER:
|
||||
reg_name = PORTFOLIO_STR;
|
||||
single_account = GNC_F;
|
||||
single_account = FALSE;
|
||||
break;
|
||||
case SEARCH_LEDGER:
|
||||
reg_name = SEARCH_RESULTS_STR;
|
||||
single_account = GNC_F;
|
||||
single_account = FALSE;
|
||||
break;
|
||||
default:
|
||||
reg_name = REGISTER_STR;
|
||||
single_account = GNC_T;
|
||||
single_account = TRUE;
|
||||
break;
|
||||
}
|
||||
|
||||
@ -1582,7 +1582,7 @@ regWindowLedger(xaccLedgerDisplay *ledger)
|
||||
gtk_box_pack_start(GTK_BOX(vbox), register_dock, TRUE, TRUE, 0);
|
||||
|
||||
regData->ledger = ledger;
|
||||
regData->close_ledger = GNC_T;
|
||||
regData->close_ledger = TRUE;
|
||||
regData->window = register_window;
|
||||
regData->sort_type = BY_STANDARD;
|
||||
|
||||
@ -1842,7 +1842,7 @@ regDestroy(xaccLedgerDisplay *ledger)
|
||||
gnc_register_check_close(regData);
|
||||
|
||||
/* It will be closed elsewhere */
|
||||
regData->close_ledger = GNC_F;
|
||||
regData->close_ledger = FALSE;
|
||||
|
||||
gnc_reg_save_size(regData);
|
||||
|
||||
@ -2134,12 +2134,12 @@ static void
|
||||
recordCB(GtkWidget *w, gpointer data)
|
||||
{
|
||||
RegWindow *regData = (RegWindow *) data;
|
||||
gncBoolean really_saved;
|
||||
gboolean really_saved;
|
||||
Transaction *trans;
|
||||
|
||||
trans = xaccSRGetCurrentTrans(regData->ledger->ledger);
|
||||
|
||||
really_saved = xaccSRSaveRegEntry(regData->ledger->ledger, GNC_T);
|
||||
really_saved = xaccSRSaveRegEntry(regData->ledger->ledger, TRUE);
|
||||
if (!really_saved)
|
||||
return;
|
||||
|
||||
@ -2312,7 +2312,7 @@ deleteCB(GtkWidget *widget, gpointer data)
|
||||
xaccTransGetDescription(trans));
|
||||
|
||||
result = gnc_verify_dialog_parented(GTK_WINDOW(regData->window),
|
||||
buf, GNC_F);
|
||||
buf, FALSE);
|
||||
|
||||
g_free(buf);
|
||||
|
||||
@ -2331,7 +2331,7 @@ deleteCB(GtkWidget *widget, gpointer data)
|
||||
((style == REG_SINGLE_LINE) || (style == REG_DOUBLE_LINE)))
|
||||
{
|
||||
result = gnc_verify_dialog_parented(GTK_WINDOW(regData->window),
|
||||
TRANS_DEL2_MSG, GNC_F);
|
||||
TRANS_DEL2_MSG, FALSE);
|
||||
|
||||
if (!result)
|
||||
return;
|
||||
@ -2407,13 +2407,13 @@ cancelCB(GtkWidget *w, gpointer data)
|
||||
static void
|
||||
gnc_register_check_close(RegWindow *regData)
|
||||
{
|
||||
gncBoolean pending_changes;
|
||||
gboolean pending_changes;
|
||||
|
||||
pending_changes = xaccSRHasPendingChanges(regData->ledger->ledger);
|
||||
if (pending_changes)
|
||||
{
|
||||
if (gnc_verify_dialog_parented
|
||||
(GTK_WINDOW(regData->window), TRANS_CHANGED_MSG, GNC_T))
|
||||
(GTK_WINDOW(regData->window), TRANS_CHANGED_MSG, TRUE))
|
||||
recordCB(regData->window, regData);
|
||||
else
|
||||
xaccSRCancelCursorSplitChanges(regData->ledger->ledger);
|
||||
|
@ -322,10 +322,10 @@ gnc_report_export(ReportData *report_data)
|
||||
/* See if the file exists */
|
||||
if ((stat(export_filename, &file_status) == 0))
|
||||
{
|
||||
gncBoolean result;
|
||||
gboolean result;
|
||||
|
||||
message = g_strdup_printf(FMB_EEXIST_MSG, export_filename);
|
||||
result = gnc_verify_dialog_parented(parent, message, GNC_F);
|
||||
result = gnc_verify_dialog_parented(parent, message, FALSE);
|
||||
g_free(message);
|
||||
|
||||
if (!result)
|
||||
|
@ -170,7 +170,7 @@ xaccBasicCellGetHelp (BasicCell *cell)
|
||||
/* ===================================================== */
|
||||
|
||||
void
|
||||
xaccBasicCellSetChanged (BasicCell *cell, gncBoolean changed)
|
||||
xaccBasicCellSetChanged (BasicCell *cell, gboolean changed)
|
||||
{
|
||||
if (cell == NULL)
|
||||
return;
|
||||
|
@ -286,7 +286,7 @@ void xaccSetBasicCellValue (BasicCell *, const char *);
|
||||
void xaccSetBasicCellBlankHelp (BasicCell *, const char *);
|
||||
char * xaccBasicCellGetHelp (BasicCell *);
|
||||
|
||||
void xaccBasicCellSetChanged (BasicCell *, gncBoolean);
|
||||
void xaccBasicCellSetChanged (BasicCell *, gboolean);
|
||||
|
||||
#endif /* __BASIC_CELL_H__ */
|
||||
/* ------------------ end of file ---------------------- */
|
||||
|
@ -135,18 +135,18 @@ DateMV (BasicCell *_cell,
|
||||
int *end_selection)
|
||||
{
|
||||
DateCell *cell = (DateCell *) _cell;
|
||||
gboolean accept = GNC_F;
|
||||
gboolean accept = FALSE;
|
||||
struct tm *date;
|
||||
char buff[30];
|
||||
|
||||
/* if user hit backspace, accept the change */
|
||||
if (change == NULL) accept = GNC_T;
|
||||
else if (0x0 == change[0]) accept = GNC_T;
|
||||
if (change == NULL) accept = TRUE;
|
||||
else if (0x0 == change[0]) accept = TRUE;
|
||||
else
|
||||
{
|
||||
int i, count = 0;
|
||||
char separator = dateSeparator();
|
||||
gncBoolean ok = TRUE;
|
||||
gboolean ok = TRUE;
|
||||
|
||||
for (i = 0; 0 != change[i]; i++)
|
||||
{
|
||||
@ -154,7 +154,7 @@ DateMV (BasicCell *_cell,
|
||||
* separator of '-' (for DATE_FORMAT_ISO) takes precedence
|
||||
* over the accelerator below! */
|
||||
if (!isdigit(change[i]) && (separator != change[i]))
|
||||
ok = GNC_F;
|
||||
ok = FALSE;
|
||||
|
||||
if (separator == change[i])
|
||||
count++;
|
||||
@ -165,10 +165,10 @@ DateMV (BasicCell *_cell,
|
||||
count++;
|
||||
|
||||
if (2 < count)
|
||||
ok = GNC_F;
|
||||
ok = FALSE;
|
||||
|
||||
if (ok)
|
||||
accept = GNC_T;
|
||||
accept = TRUE;
|
||||
}
|
||||
|
||||
/* keep a copy of the new value */
|
||||
|
@ -65,7 +65,7 @@ typedef struct _PopBox
|
||||
QuickFill *qf;
|
||||
gboolean in_list_select;
|
||||
|
||||
gncBoolean strict;
|
||||
gboolean strict;
|
||||
|
||||
char complete_char; /* char to be used for auto-completion */
|
||||
|
||||
@ -526,7 +526,7 @@ ComboMV (BasicCell *_cell,
|
||||
|
||||
/* =============================================== */
|
||||
|
||||
static gncBoolean
|
||||
static gboolean
|
||||
ComboDirect (BasicCell *bcell,
|
||||
const char *oldval,
|
||||
char **newval_ptr,
|
||||
@ -818,7 +818,7 @@ leaveCombo (BasicCell *bcell, const char *value)
|
||||
/* =============================================== */
|
||||
|
||||
void
|
||||
xaccComboCellSetStrict (ComboCell *cell, gncBoolean strict)
|
||||
xaccComboCellSetStrict (ComboCell *cell, gboolean strict)
|
||||
{
|
||||
PopBox *box;
|
||||
|
||||
@ -878,7 +878,7 @@ xaccComboCellSetIgnoreHelp (ComboCell *cell, const char *ignore_help)
|
||||
/* =============================================== */
|
||||
|
||||
void
|
||||
xaccComboCellSetAutoPop (gncBoolean auto_pop_combos_arg)
|
||||
xaccComboCellSetAutoPop (gboolean auto_pop_combos_arg)
|
||||
{
|
||||
auto_pop_combos = auto_pop_combos_arg;
|
||||
}
|
||||
|
@ -138,7 +138,7 @@ gnucash_sheet_cursor_set (GnucashSheet *sheet, int virt_row, int virt_col,
|
||||
}
|
||||
|
||||
void
|
||||
gnucash_sheet_cursor_set_from_table (GnucashSheet *sheet, gncBoolean do_scroll)
|
||||
gnucash_sheet_cursor_set_from_table (GnucashSheet *sheet, gboolean do_scroll)
|
||||
{
|
||||
Table *table;
|
||||
gint cell_row, cell_col;
|
||||
@ -1324,7 +1324,7 @@ gnucash_button_press_event (GtkWidget *widget, GdkEventButton *event)
|
||||
int new_v_row, new_v_col, new_c_row, new_c_col;
|
||||
|
||||
Table *table;
|
||||
gncBoolean exit_register;
|
||||
gboolean exit_register;
|
||||
|
||||
g_return_val_if_fail(widget != NULL, TRUE);
|
||||
g_return_val_if_fail(GNUCASH_IS_SHEET(widget), TRUE);
|
||||
@ -1641,8 +1641,8 @@ gnucash_sheet_key_press_event (GtkWidget *widget, GdkEventKey *event)
|
||||
CellBlock *header;
|
||||
int direction = 0;
|
||||
gboolean pass_on = FALSE;
|
||||
gncBoolean exit_register;
|
||||
gncBoolean set_selection = TRUE;
|
||||
gboolean exit_register;
|
||||
gboolean set_selection = TRUE;
|
||||
int current_p_row, current_p_col, new_p_row, new_p_col;
|
||||
|
||||
g_return_val_if_fail(widget != NULL, TRUE);
|
||||
@ -1824,7 +1824,7 @@ gnucash_sheet_goto_virt_row_col (GnucashSheet *sheet,
|
||||
{
|
||||
Table *table;
|
||||
VirtualCell *vcell;
|
||||
gncBoolean exit_register;
|
||||
gboolean exit_register;
|
||||
int current_p_row, current_p_col, new_p_row, new_p_col;
|
||||
|
||||
g_return_if_fail(GNUCASH_IS_SHEET(sheet));
|
||||
|
@ -240,7 +240,7 @@ void gnucash_sheet_block_set_from_table (GnucashSheet *sheet, gint virt_row,
|
||||
void gnucash_sheet_set_scroll_region (GnucashSheet *sheet);
|
||||
|
||||
void gnucash_sheet_cursor_set_from_table (GnucashSheet *sheet,
|
||||
gncBoolean do_scroll);
|
||||
gboolean do_scroll);
|
||||
|
||||
void gnucash_sheet_move_cursor (GnucashSheet *sheet, int col, int row);
|
||||
|
||||
|
@ -97,8 +97,8 @@ NumMV (BasicCell *_cell,
|
||||
int *end_selection)
|
||||
{
|
||||
NumCell *cell = (NumCell *) _cell;
|
||||
gncBoolean accel = FALSE;
|
||||
gncBoolean is_num;
|
||||
gboolean accel = FALSE;
|
||||
gboolean is_num;
|
||||
long int number = 0;
|
||||
|
||||
if ((change == NULL) || (change[0] == 0) || /* if we are deleting */
|
||||
|
@ -201,15 +201,15 @@ xaccInitPriceCell (PriceCell *cell)
|
||||
xaccInitBasicCell (&(cell->cell));
|
||||
|
||||
cell->amount = 0.0;
|
||||
cell->blank_zero = GNC_T;
|
||||
cell->monetary = GNC_T;
|
||||
cell->is_currency = GNC_F;
|
||||
cell->shares_value = GNC_F;
|
||||
cell->blank_zero = TRUE;
|
||||
cell->monetary = TRUE;
|
||||
cell->is_currency = FALSE;
|
||||
cell->shares_value = FALSE;
|
||||
|
||||
SET (&(cell->cell), "");
|
||||
COLORIZE (cell, 0.0);
|
||||
|
||||
cell->cell.use_fg_color = GNC_T;
|
||||
cell->cell.use_fg_color = TRUE;
|
||||
cell->cell.enter_cell = PriceEnter;
|
||||
cell->cell.modify_verify = PriceMV;
|
||||
cell->cell.leave_cell = PriceLeave;
|
||||
@ -294,7 +294,7 @@ xaccSetPriceCellBlank (PriceCell *cell)
|
||||
/* ================================================ */
|
||||
|
||||
void
|
||||
xaccSetPriceCellSharesValue (PriceCell * cell, gncBoolean shares_value)
|
||||
xaccSetPriceCellSharesValue (PriceCell * cell, gboolean shares_value)
|
||||
{
|
||||
if (cell == NULL)
|
||||
return;
|
||||
@ -305,7 +305,7 @@ xaccSetPriceCellSharesValue (PriceCell * cell, gncBoolean shares_value)
|
||||
/* ================================================ */
|
||||
|
||||
void
|
||||
xaccSetPriceCellMonetary (PriceCell * cell, gncBoolean monetary)
|
||||
xaccSetPriceCellMonetary (PriceCell * cell, gboolean monetary)
|
||||
{
|
||||
if (cell == NULL)
|
||||
return;
|
||||
@ -316,7 +316,7 @@ xaccSetPriceCellMonetary (PriceCell * cell, gncBoolean monetary)
|
||||
/* ================================================ */
|
||||
|
||||
void
|
||||
xaccSetPriceCellIsCurrency (PriceCell *cell, gncBoolean is_currency)
|
||||
xaccSetPriceCellIsCurrency (PriceCell *cell, gboolean is_currency)
|
||||
{
|
||||
if (cell == NULL)
|
||||
return;
|
||||
@ -327,7 +327,7 @@ xaccSetPriceCellIsCurrency (PriceCell *cell, gncBoolean is_currency)
|
||||
/* ================================================ */
|
||||
|
||||
void
|
||||
xaccSetPriceCellBlankZero (PriceCell *cell, gncBoolean blank_zero)
|
||||
xaccSetPriceCellBlankZero (PriceCell *cell, gboolean blank_zero)
|
||||
{
|
||||
if (cell == NULL)
|
||||
return;
|
||||
|
@ -84,7 +84,7 @@ ToggleRecn (BasicCell *_cell,
|
||||
still perhaps not optimal. */
|
||||
|
||||
if (cell->reconciled_flag == YREC)
|
||||
if (!gnc_verify_dialog(CHANGE_RECN_MSG, GNC_T))
|
||||
if (!gnc_verify_dialog(CHANGE_RECN_MSG, TRUE))
|
||||
return NULL;
|
||||
|
||||
if (cell->reconciled_flag == NREC)
|
||||
|
@ -234,7 +234,7 @@ struct _SplitRegisterColors
|
||||
guint32 double_cursor_passive_bg_color;
|
||||
guint32 double_cursor_passive_bg_color2;
|
||||
|
||||
gncBoolean double_alternate_virt;
|
||||
gboolean double_alternate_virt;
|
||||
|
||||
guint32 trans_cursor_active_bg_color;
|
||||
guint32 trans_cursor_passive_bg_color;
|
||||
@ -287,7 +287,7 @@ CellType xaccSplitRegisterGetCellTypeRowCol (SplitRegister *reg,
|
||||
/* Returns the physical row and column in the current cursor of the
|
||||
* given cell using the pointer values. The function returns true if
|
||||
* the given cell type is in the current cursor, false otherwise. */
|
||||
gncBoolean xaccSplitRegisterGetCellRowCol (SplitRegister *reg,
|
||||
gboolean xaccSplitRegisterGetCellRowCol (SplitRegister *reg,
|
||||
CellType cell_type,
|
||||
int *p_phys_row,
|
||||
int *p_phys_col);
|
||||
|
@ -243,7 +243,7 @@ struct _Table
|
||||
* colors alternate between odd and even virt
|
||||
* rows, or between the first and non-first
|
||||
* physical rows within cellblocks. */
|
||||
gncBoolean alternate_bg_colors;
|
||||
gboolean alternate_bg_colors;
|
||||
|
||||
|
||||
/* private data */
|
||||
@ -378,7 +378,7 @@ gboolean gnc_table_physical_cell_valid(Table *table,
|
||||
|
||||
void gnc_table_refresh_cursor_gui (Table * table, CellBlock *curs,
|
||||
int phys_row, int phys_col,
|
||||
gncBoolean do_scroll);
|
||||
gboolean do_scroll);
|
||||
|
||||
|
||||
/* gnc_table_enter_update() is a utility function used to determine
|
||||
|
@ -53,7 +53,7 @@ gncUIWidget gnc_get_ui_data();
|
||||
|
||||
void gnc_ui_shutdown();
|
||||
|
||||
gncBoolean gnc_reverse_balance(Account *account);
|
||||
gncBoolean gnc_reverse_balance_type(GNCAccountType type);
|
||||
gboolean gnc_reverse_balance(Account *account);
|
||||
gboolean gnc_reverse_balance_type(GNCAccountType type);
|
||||
|
||||
#endif
|
||||
|
@ -52,8 +52,8 @@ gnc_ok_cancel_dialog_parented(gncUIWidget parent,
|
||||
|
||||
void gnc_warning_dialog_parented(gncUIWidget parent, const char *message);
|
||||
|
||||
gncBoolean gnc_verify_dialog( const char *message,
|
||||
gncBoolean yes_is_default );
|
||||
gboolean gnc_verify_dialog( const char *message,
|
||||
gboolean yes_is_default );
|
||||
void gnc_error_dialog( const char *message );
|
||||
|
||||
int gnc_choose_radio_option_dialog_parented(gncUIWidget parent,
|
||||
|
Loading…
Reference in New Issue
Block a user