Files accidentally left out of previous commit (r13355).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13356 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Chris Shoemaker 2006-02-22 02:43:20 +00:00
parent 53cd1da9cf
commit 6ec9c70b26
5 changed files with 9 additions and 7 deletions

View File

@ -37,6 +37,7 @@
#include "gnc-engine.h"
#include "gnc-file.h"
#include "gnc-ui.h"
#include "gnc-session.h"
#define EQUITY_ACCOUNT_NAME _("Opening Balances")
#define OPENING_BALANCE_DESC _("Opening Balance")
@ -224,7 +225,7 @@ on_dateok_clicked (chart_data *data)
chart_tm->tm_mday = day;
}
data->chart_time_t = mktime(chart_tm);
current_session = qof_session_get_current_session();
current_session = gnc_get_current_session();
book = qof_session_get_book(current_session);
filename = g_strdup("/tmp/qsf-chartofaccounts.xml");
chart_session = qof_session_new();
@ -262,7 +263,7 @@ on_dateok_clicked (chart_data *data)
gnc_unset_busy_cursor(NULL);
}
qof_session_end(chart_session);
qof_session_set_current_session(current_session);
gnc_set_current_session(current_session);
}
void

View File

@ -46,7 +46,7 @@
#include "gnc-gui-query.h"
#include "gnc-ui-util.h"
#include "misc-gnome-utils.h"
#include "gnc-session.h"
#define DRUID_ACCT_PERIOD_CM_CLASS "druid-acct-period"
@ -440,7 +440,7 @@ ap_close_period (GnomeDruidPage *druidpage,
kvp_frame_set_str (book_frame, "/book/title", btitle);
kvp_frame_set_str (book_frame, "/book/notes", bnotes);
qof_session_add_book (qof_session_get_current_session(), closed_book);
qof_session_add_book (gnc_get_current_session(), closed_book);
/* We must save now; if we don't, and the user bails without saving,
* then opening account balances will be incorrect, and this can only

View File

@ -52,6 +52,7 @@
#include "gnc-gui-query.h"
#include "gnc-ui.h"
#include "gnc-window.h"
#include "gnc-session.h"
/* This static indicates the debugging module that this .o belongs to. */
static QofLogModule log_module = GNC_MOD_GUI;
@ -343,7 +344,7 @@ qsf_file_select_ok(GtkWidget *w, GtkFileSelection *fs )
gnc_engine_suspend_events();
filename = gtk_file_selection_get_filename(GTK_FILE_SELECTION (fs));
gtk_widget_destroy((GtkWidget*) fs);
first_session = qof_session_get_current_session();
first_session = gnc_get_current_session();
original = qof_session_get_book(first_session);
qsf_session = qof_session_new();
qof_session_begin(qsf_session, filename, TRUE, FALSE);

View File

@ -535,7 +535,7 @@ gnc_plugin_page_budget_recreate_page (GtkWidget *window, GKeyFile *key_file,
if (!string_to_guid(guid_str, &guid))
return NULL;
book = qof_session_get_book(qof_session_get_current_session());
book = qof_session_get_book(gnc_get_current_session());
bgt = gnc_budget_lookup(&guid, book);
if (!bgt)
return NULL;

View File

@ -940,7 +940,7 @@ gnc_plugin_page_register_recreate_page (GtkWidget *window,
DEBUG("Include subs: %d", include_subs);
acct_name = g_key_file_get_string(key_file, group_name,
KEY_ACCOUNT_NAME, &error);
book = qof_session_get_book(qof_session_get_current_session());
book = qof_session_get_book(gnc_get_current_session());
account = xaccGetAccountFromFullName(xaccGetAccountGroup(book),
acct_name,
gnc_get_account_separator());