mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Move gnc_get_session function to a better location.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7294 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -58,8 +58,6 @@ static gboolean reverse_balance_inited = FALSE;
|
||||
static SCM reverse_balance_callback_id = SCM_UNDEFINED;
|
||||
static gboolean reverse_type[NUM_ACCOUNT_TYPES];
|
||||
|
||||
static GNCSessionCB session_cb = NULL;
|
||||
|
||||
|
||||
/********************************************************************\
|
||||
* gnc_color_deficits *
|
||||
@@ -204,21 +202,6 @@ gnc_reverse_balance (Account *account)
|
||||
return reverse_type[type];
|
||||
}
|
||||
|
||||
void
|
||||
gnc_set_current_session_handler (GNCSessionCB cb)
|
||||
{
|
||||
session_cb = cb;
|
||||
}
|
||||
|
||||
GNCSession *
|
||||
gnc_get_current_session (void)
|
||||
{
|
||||
if (session_cb)
|
||||
return session_cb ();
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
GNCBook *
|
||||
gnc_get_current_book (void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user