mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[account.cpp] deprecate old dxacc* functions
This commit is contained in:
parent
374443747d
commit
d290c3c45d
@ -2715,6 +2715,7 @@ DxaccAccountSetCurrency (Account * acc, gnc_commodity * currency)
|
||||
gnc_commodity *commodity;
|
||||
gnc_commodity_table *table;
|
||||
|
||||
PWARN ("this function is deprecated and will be removed in 5.x");
|
||||
if ((!acc) || (!currency)) return;
|
||||
g_value_init (&v, G_TYPE_STRING);
|
||||
g_value_set_string (&v, s);
|
||||
@ -3373,6 +3374,7 @@ DxaccAccountGetCurrency (const Account *acc)
|
||||
const char *s = NULL;
|
||||
gnc_commodity_table *table;
|
||||
|
||||
PWARN ("this function is deprecated and will be removed in 5.x");
|
||||
if (!acc) return NULL;
|
||||
qof_instance_get_path_kvp (QOF_INSTANCE(acc), &v, {"old-currency"});
|
||||
if (G_VALUE_HOLDS_STRING (&v))
|
||||
@ -4983,6 +4985,7 @@ xaccAccountGainsAccount (Account *acc, gnc_commodity *curr)
|
||||
void
|
||||
dxaccAccountSetPriceSrc(Account *acc, const char *src)
|
||||
{
|
||||
PWARN ("this function is deprecated and will be removed in 5.x");
|
||||
if (!acc) return;
|
||||
|
||||
if (xaccAccountIsPriced(acc))
|
||||
@ -5011,6 +5014,7 @@ const char*
|
||||
dxaccAccountGetPriceSrc(const Account *acc)
|
||||
{
|
||||
GValue v = G_VALUE_INIT;
|
||||
PWARN ("this function is deprecated and will be removed in 5.x");
|
||||
if (!acc) return NULL;
|
||||
|
||||
if (!xaccAccountIsPriced(acc)) return NULL;
|
||||
@ -5026,6 +5030,7 @@ void
|
||||
dxaccAccountSetQuoteTZ(Account *acc, const char *tz)
|
||||
{
|
||||
GValue v = G_VALUE_INIT;
|
||||
PWARN ("this function is deprecated and will be removed in 5.x");
|
||||
if (!acc) return;
|
||||
if (!xaccAccountIsPriced(acc)) return;
|
||||
xaccAccountBeginEdit(acc);
|
||||
@ -5043,6 +5048,7 @@ const char*
|
||||
dxaccAccountGetQuoteTZ(const Account *acc)
|
||||
{
|
||||
GValue v = G_VALUE_INIT;
|
||||
PWARN ("this function is deprecated and will be removed in 5.x");
|
||||
if (!acc) return NULL;
|
||||
if (!xaccAccountIsPriced(acc)) return NULL;
|
||||
qof_instance_get_path_kvp (QOF_INSTANCE (acc), &v, {"old-quote-tz"});
|
||||
|
Loading…
Reference in New Issue
Block a user