[Gnucash-changes] r13545 - gnucash/trunk - Remove functions to be
deprecated in libqof2. (Pass One - trivial
David Hampton
hampton at cvs.gnucash.org
Wed Mar 8 21:29:31 EST 2006
Author: hampton
Date: 2006-03-08 21:29:29 -0500 (Wed, 08 Mar 2006)
New Revision: 13545
Trac: http://svn.gnucash.org/trac/changeset/13545
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/app-utils/gnc-component-manager.c
gnucash/trunk/src/backend/file/test/test-xml-pricedb.c
gnucash/trunk/src/backend/postgres/PostgresBackend.c
gnucash/trunk/src/backend/postgres/account.c
gnucash/trunk/src/backend/postgres/price.c
gnucash/trunk/src/backend/postgres/test/test-db.c
gnucash/trunk/src/backend/postgres/test/test-period.c
gnucash/trunk/src/backend/postgres/txn.c
gnucash/trunk/src/backend/postgres/txnmass.c
gnucash/trunk/src/bin/gnucash-bin.c
gnucash/trunk/src/engine/Transaction.c
gnucash/trunk/src/engine/gnc-engine.c
gnucash/trunk/src/engine/test/test-period.c
gnucash/trunk/src/gnome-utils/account-quickfill.c
gnucash/trunk/src/gnome-utils/gnc-account-sel.c
gnucash/trunk/src/gnome-utils/gnc-file.c
gnucash/trunk/src/gnome-utils/gnc-main-window.c
gnucash/trunk/src/gnome-utils/gnc-tree-model-commodity.c
gnucash/trunk/src/gnome-utils/gnc-tree-model-price.c
gnucash/trunk/src/gnome/dialog-chart-export.c
gnucash/trunk/src/gnome/druid-acct-period.c
gnucash/trunk/src/gnome/druid-merge.c
gnucash/trunk/src/gnome/gnc-plugin-basic-commands.c
gnucash/trunk/src/gnome/gnc-plugin-page-register.c
gnucash/trunk/src/gnome/lot-viewer.c
gnucash/trunk/src/import-export/log-replay/gnc-log-replay.c
gnucash/trunk/src/import-export/mt940/gnc-mt940-import.c
gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c
gnucash/trunk/src/report/report-gnome/gnc-plugin-page-report.c
Log:
Remove functions to be deprecated in libqof2. (Pass One - trivial
substitutions)
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/ChangeLog 2006-03-09 02:29:29 UTC (rev 13545)
@@ -1,5 +1,8 @@
2006-03-08 David Hampton <hampton at employees.org>
+ * numerous: Remove functions to be deprecated in libqof2. (Pass
+ One - trivial substitutions)
+
* src/gnome-utils/gnc-tree-model-account.c:
* src/engine/Account.c:
* src/engine/Group.c: Remove extra events added in r13483. This
Modified: gnucash/trunk/src/app-utils/gnc-component-manager.c
===================================================================
--- gnucash/trunk/src/app-utils/gnc-component-manager.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/app-utils/gnc-component-manager.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -302,7 +302,7 @@
changes_backup.event_masks = g_hash_table_new (g_str_hash, g_str_equal);
changes_backup.entity_events = guid_hash_table_new ();
- handler_id = gnc_engine_register_event_handler (gnc_cm_event_handler, NULL);
+ handler_id = qof_event_register_old_handler (gnc_cm_event_handler, NULL);
}
void
@@ -326,7 +326,7 @@
destroy_event_hash (changes_backup.entity_events);
changes_backup.entity_events = NULL;
- gnc_engine_unregister_event_handler (handler_id);
+ qof_event_unregister_handler (handler_id);
}
static ComponentInfo *
Modified: gnucash/trunk/src/backend/file/test/test-xml-pricedb.c
===================================================================
--- gnucash/trunk/src/backend/file/test/test-xml-pricedb.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/backend/file/test/test-xml-pricedb.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -151,8 +151,8 @@
qof_init();
cashobjects_register();
qof_log_init_filename("/tmp/gnctest.trace");
- qof_log_set_default(GNC_LOG_DETAIL);
- gnc_set_log_level(GNC_MOD_PRICE, GNC_LOG_DETAIL);
+ qof_log_set_default(QOF_LOG_DETAIL);
+ qof_log_set_level(GNC_MOD_PRICE, QOF_LOG_DETAIL);
session = qof_session_new ();
test_generation ();
print_test_results ();
Modified: gnucash/trunk/src/backend/postgres/PostgresBackend.c
===================================================================
--- gnucash/trunk/src/backend/postgres/PostgresBackend.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/backend/postgres/PostgresBackend.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -723,7 +723,7 @@
if (!be || !q) { LEAVE("(null) args"); return; }
be->version_check = (guint32) time(0);
- gnc_engine_suspend_events();
+ qof_event_suspend();
pgendDisable(be);
/* first thing we do is convert the gnc-engine query into
@@ -761,7 +761,7 @@
xaccGroupMarkSaved (topgroup);
pgendEnable(be);
- gnc_engine_resume_events();
+ qof_event_resume();
LEAVE (" ");
}
@@ -800,7 +800,7 @@
{
GList *node, *xaction_list = NULL;
- gnc_engine_suspend_events();
+ qof_event_suspend();
pgendDisable(be);
SEND_QUERY (be, "SELECT transGuid FROM gncTransaction;", );
@@ -817,7 +817,7 @@
xaccAccountGroupCommitEdit (grp);
pgendEnable(be);
- gnc_engine_resume_events();
+ qof_event_resume();
}
#endif
@@ -901,7 +901,7 @@
pgendStoreAllTransactions (be, grp);
/* don't send events to GUI, don't accept callbacks to backend */
- gnc_engine_suspend_events();
+ qof_event_suspend();
pgendDisable(be);
pgendKVPInit(be);
@@ -926,7 +926,7 @@
/* re-enable events */
pgendEnable(be);
- gnc_engine_resume_events();
+ qof_event_resume();
LEAVE(" ");
}
@@ -1072,14 +1072,14 @@
pgendStorePriceDB (be, book);
/* don't send events to GUI, don't accept callbacks to backend */
- gnc_engine_suspend_events();
+ qof_event_suspend();
pgendDisable(be);
pgendGetAllPricesInBook (be, book);
/* re-enable events */
pgendEnable(be);
- gnc_engine_resume_events();
+ qof_event_resume();
LEAVE(" ");
}
@@ -1490,7 +1490,7 @@
if (!be) return;
/* don't send events to GUI, don't accept callbacks to backend */
- gnc_engine_suspend_events();
+ qof_event_suspend();
pgendDisable(be);
be->version_check = (guint32) time(0);
@@ -1518,7 +1518,7 @@
/* re-enable events */
pgendEnable(be);
- gnc_engine_resume_events();
+ qof_event_resume();
}
/* ============================================================= */
@@ -1538,7 +1538,7 @@
/* don't send events to GUI, don't accept callbacks to backend */
- gnc_engine_suspend_events();
+ qof_event_suspend();
pgendDisable(be);
be->version_check = (guint32) time(0);
@@ -1560,7 +1560,7 @@
/* re-enable events */
pgendEnable(be);
- gnc_engine_resume_events();
+ qof_event_resume();
}
/* ============================================================= */
@@ -1580,7 +1580,7 @@
pgend_set_book (be, book);
/* don't send events to GUI, don't accept callbacks to backend */
- gnc_engine_suspend_events();
+ qof_event_suspend();
pgendDisable(be);
be->version_check = (guint32) time(0);
@@ -1588,7 +1588,7 @@
/* re-enable events */
pgendEnable(be);
- gnc_engine_resume_events();
+ qof_event_resume();
LEAVE(" ");
}
Modified: gnucash/trunk/src/backend/postgres/account.c
===================================================================
--- gnucash/trunk/src/backend/postgres/account.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/backend/postgres/account.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -502,7 +502,7 @@
if (!be || !acct_guid) return 0;
/* disable callbacks into the backend, and events to GUI */
- gnc_engine_suspend_events();
+ qof_event_suspend();
pgendDisable(be);
/* First, see if we already have such an account */
@@ -555,7 +555,7 @@
/* re-enable events to the backend and GUI */
pgendEnable(be);
- gnc_engine_resume_events();
+ qof_event_resume();
LEAVE (" ");
return acc;
Modified: gnucash/trunk/src/backend/postgres/price.c
===================================================================
--- gnucash/trunk/src/backend/postgres/price.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/backend/postgres/price.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -379,7 +379,7 @@
currency_str = gnc_commodity_get_unique_name(look->currency);
/* don't send events to GUI, don't accept callbacks to backend */
- gnc_engine_suspend_events();
+ qof_event_suspend();
pgendDisable(be);
/* set up the common part of the query */
@@ -432,7 +432,7 @@
PERR ("unknown lookup type %d", look->type);
/* re-enable events */
pgendEnable(be);
- gnc_engine_resume_events();
+ qof_event_resume();
LEAVE(" ");
return;
}
@@ -442,7 +442,7 @@
/* re-enable events */
pgendEnable(be);
- gnc_engine_resume_events();
+ qof_event_resume();
LEAVE(" ");
}
Modified: gnucash/trunk/src/backend/postgres/test/test-db.c
===================================================================
--- gnucash/trunk/src/backend/postgres/test/test-db.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/backend/postgres/test/test-db.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -509,7 +509,7 @@
book = qof_session_get_book(session);
be = (PGBackend *) qof_book_get_backend(book);
- if (gnc_should_log(log_module, GNC_LOG_DETAIL))
+ if (qof_log_check(log_module, QOF_LOG_DETAIL))
qof_query_print(qn);
sq = sqlQuery_new();
@@ -1059,7 +1059,7 @@
session = get_random_session();
- gnc_set_log_level(MOD_TEST, GNC_LOG_WARNING);
+ qof_log_set_level(MOD_TEST, QOF_LOG_WARNING);
dbinfo->mode = sumode;
START_CLOCK(0, "Starting to save session");
@@ -1074,7 +1074,7 @@
if (!load_db_file(session, dbinfo, FALSE))
return;
- gnc_set_log_level(MOD_TEST, GNC_LOG_INFO);
+ qof_log_set_level(MOD_TEST, QOF_LOG_INFO);
START_CLOCK(0, "Starting to save transactions");
add_random_transactions_to_book(qof_session_get_book(session), 100);
Modified: gnucash/trunk/src/backend/postgres/test/test-period.c
===================================================================
--- gnucash/trunk/src/backend/postgres/test/test-period.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/backend/postgres/test/test-period.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -131,8 +131,8 @@
io_err = qof_session_get_error (session);
g_return_if_fail (io_err == ERR_BACKEND_NO_ERR);
- gnc_set_logfile (stdout);
- gnc_set_log_level_global (GNC_LOG_INFO);
+ qof_log_set_file (stdout);
+ qof_log_set_level_registered (QOF_LOG_INFO);
closedbook = gnc_book_close_period (openbook, tsmiddle,
NULL, "this is opening balance dude");
Modified: gnucash/trunk/src/backend/postgres/txn.c
===================================================================
--- gnucash/trunk/src/backend/postgres/txn.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/backend/postgres/txn.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -660,7 +660,7 @@
if (!be || !trans_guid) return 0;
/* disable callbacks into the backend, and events to GUI */
- gnc_engine_suspend_events();
+ qof_event_suspend();
pgendDisable(be);
/* first, see if we already have such a transaction */
@@ -679,7 +679,7 @@
{
PINFO ("fresh data, skip check");
pgendEnable(be);
- gnc_engine_resume_events();
+ qof_event_resume();
return 0;
}
}
@@ -710,7 +710,7 @@
PERR ("no such transaction in the database. This is unexpected ...\n");
qof_backend_set_error (&be->be, ERR_SQL_MISSING_DATA);
pgendEnable(be);
- gnc_engine_resume_events();
+ qof_event_resume();
return 0;
}
@@ -723,7 +723,7 @@
guid_to_string (trans_guid));
qof_backend_set_error (&be->be, ERR_BACKEND_DATA_CORRUPT);
pgendEnable(be);
- gnc_engine_resume_events();
+ qof_event_resume();
return 0;
}
@@ -791,7 +791,7 @@
if (0 <= engine_data_is_newer)
{
pgendEnable(be);
- gnc_engine_resume_events();
+ qof_event_resume();
return engine_data_is_newer;
}
@@ -838,7 +838,7 @@
/* re-enable events to the backend and GUI */
pgendEnable(be);
- gnc_engine_resume_events();
+ qof_event_resume();
LEAVE (" ");
return -1;
@@ -875,7 +875,7 @@
if (!be || !trans_guid) return;
/* disable callbacks into the backend, and events to GUI */
- gnc_engine_suspend_events();
+ qof_event_suspend();
pgendDisable(be);
engine_data_is_newer = xxxpgendCopyTransactionToEngine (be, trans_guid);
@@ -897,13 +897,13 @@
* framework */
pgendStoreTransaction (be, trans);
- gnc_engine_resume_events();
+ qof_event_resume();
return;
}
/* re-enable events to the backend and GUI */
pgendEnable(be);
- gnc_engine_resume_events();
+ qof_event_resume();
LEAVE (" ");
}
Modified: gnucash/trunk/src/backend/postgres/txnmass.c
===================================================================
--- gnucash/trunk/src/backend/postgres/txnmass.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/backend/postgres/txnmass.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -220,7 +220,7 @@
GList *node, *xaction_list = NULL;
AccountGroup *grp;
- gnc_engine_suspend_events();
+ qof_event_suspend();
pgendDisable(be);
/* design note: someday, we might get a performance boost by adding
@@ -286,7 +286,7 @@
xaccAccountGroupCommitEdit (grp);
pgendEnable(be);
- gnc_engine_resume_events();
+ qof_event_resume();
}
/* ======================== END OF FILE ======================== */
Modified: gnucash/trunk/src/bin/gnucash-bin.c
===================================================================
--- gnucash/trunk/src/bin/gnucash-bin.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/bin/gnucash-bin.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -386,7 +386,7 @@
load_gnucash_modules();
- gnc_engine_suspend_events();
+ qof_event_suspend();
g_message("Beginning to install price-quote sources");
scm_c_eval_string("(gnc:price-quotes-install-sources)");
@@ -403,7 +403,7 @@
g_print(_("No quotes retrieved. Finance::Quote isn't installed properly.\n"));
}
- gnc_engine_resume_events();
+ qof_event_resume();
gnc_shutdown(0);
return;
}
@@ -440,7 +440,7 @@
/* set a log level before trying to change it globally */
gnc_log_default();
- qof_log_set_level_global(loglevel);
+ qof_log_set_level_registered(loglevel);
load_system_config();
load_user_config();
Modified: gnucash/trunk/src/engine/Transaction.c
===================================================================
--- gnucash/trunk/src/engine/Transaction.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/engine/Transaction.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -400,7 +400,7 @@
Split *split;
GList *node;
- gnc_engine_suspend_events();
+ qof_event_suspend();
trans = g_new0 (Transaction, 1);
trans->date_entered = t->date_entered;
@@ -427,7 +427,7 @@
}
qof_instance_set_dirty(QOF_INSTANCE(trans));
xaccTransCommitEdit(trans);
- gnc_engine_resume_events();
+ qof_event_resume();
return trans;
}
@@ -942,7 +942,7 @@
/* ------------------------------------------------- */
/* Make sure all associated splits are in proper order
* in their accounts with the correct balances. */
- gnc_engine_suspend_events();
+ qof_event_suspend();
/* Iterate over existing splits */
slist = g_list_copy(trans->splits);
@@ -971,7 +971,7 @@
}
g_list_free(slist);
- gnc_engine_resume_events();
+ qof_event_resume();
xaccTransWriteLog (trans, 'C');
Modified: gnucash/trunk/src/engine/gnc-engine.c
===================================================================
--- gnucash/trunk/src/engine/gnc-engine.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/engine/gnc-engine.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -85,10 +85,10 @@
qof_log_init_filename("/tmp/gnucash.trace");
/* Only set the core log_modules here
the rest can be set locally. */
- gnc_set_log_level(GNC_MOD_ENGINE, GNC_LOG_WARNING);
- gnc_set_log_level(GNC_MOD_IO, GNC_LOG_WARNING);
- gnc_set_log_level(GNC_MOD_GUI, GNC_LOG_WARNING);
- qof_log_set_default(GNC_LOG_WARNING);
+ qof_log_set_level(GNC_MOD_ENGINE, QOF_LOG_WARNING);
+ qof_log_set_level(GNC_MOD_IO, QOF_LOG_WARNING);
+ qof_log_set_level(GNC_MOD_GUI, QOF_LOG_WARNING);
+ qof_log_set_default(QOF_LOG_WARNING);
/* initialize QOF */
qof_init();
Modified: gnucash/trunk/src/engine/test/test-period.c
===================================================================
--- gnucash/trunk/src/engine/test/test-period.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/engine/test/test-period.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -118,8 +118,8 @@
tsmiddle = tsfirst;
tsmiddle.tv_sec = (tsfirst.tv_sec + tslast.tv_sec)/2;
- gnc_set_logfile (stdout);
- gnc_set_log_level_global (GNC_LOG_WARNING);
+ qof_log_set_file (stdout);
+ qof_log_set_level_registered (QOF_LOG_WARNING);
closedbook = gnc_book_close_period (openbook, tsmiddle,
equity, "this is opening balance dude");
Modified: gnucash/trunk/src/gnome/dialog-chart-export.c
===================================================================
--- gnucash/trunk/src/gnome/dialog-chart-export.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/gnome/dialog-chart-export.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -234,7 +234,7 @@
if (filename)
{
gnc_set_busy_cursor(NULL, TRUE);
- gnc_engine_suspend_events();
+ qof_event_suspend();
qof_session_begin(chart_session, filename, TRUE, TRUE);
data->chart_session = chart_session;
data->equity_account = NULL;
@@ -259,7 +259,7 @@
qof_session_save(chart_session, NULL);
show_session_error(qof_session_get_error(chart_session),
filename, GNC_FILE_DIALOG_EXPORT);
- gnc_engine_resume_events();
+ qof_event_resume();
gnc_unset_busy_cursor(NULL);
}
qof_session_end(chart_session);
Modified: gnucash/trunk/src/gnome/druid-acct-period.c
===================================================================
--- gnucash/trunk/src/gnome/druid-acct-period.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/gnome/druid-acct-period.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -430,7 +430,7 @@
if (really_do_close_books)
{
/* Close the books ! */
- gnc_engine_suspend_events ();
+ qof_event_suspend ();
gnc_suspend_gui_refresh ();
scrub_all();
@@ -448,7 +448,7 @@
*/
gnc_file_save ();
gnc_resume_gui_refresh ();
- gnc_engine_resume_events ();
+ qof_event_resume ();
gnc_gui_refresh_all (); /* resume above should have been enough ??? */
}
g_free(bnotes);
Modified: gnucash/trunk/src/gnome/druid-merge.c
===================================================================
--- gnucash/trunk/src/gnome/druid-merge.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/gnome/druid-merge.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -374,7 +374,7 @@
gnc_ui_qsf_import_merge_druid (QofSession *original, QofSession *import)
{
if (qsf_import_merge_window) { return; }
- gnc_engine_suspend_events ();
+ qof_event_suspend ();
qsf_import_merge_window = gnc_create_import_druid();
g_return_if_fail(qsf_import_merge_window != NULL);
previous_session = original;
Modified: gnucash/trunk/src/gnome/gnc-plugin-basic-commands.c
===================================================================
--- gnucash/trunk/src/gnome/gnc-plugin-basic-commands.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/gnome/gnc-plugin-basic-commands.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -341,7 +341,7 @@
QofBook *original;
ENTER (" ");
- gnc_engine_suspend_events();
+ qof_event_suspend();
filename = gtk_file_selection_get_filename(GTK_FILE_SELECTION (fs));
gtk_widget_destroy((GtkWidget*) fs);
first_session = gnc_get_current_session();
@@ -349,7 +349,7 @@
qsf_session = qof_session_new();
qof_session_begin(qsf_session, filename, TRUE, FALSE);
qof_session_load(qsf_session, NULL);
- gnc_engine_resume_events();
+ qof_event_resume();
gnc_ui_qsf_import_merge_druid(first_session, qsf_session);
LEAVE (" ");
}
Modified: gnucash/trunk/src/gnome/gnc-plugin-page-register.c
===================================================================
--- gnucash/trunk/src/gnome/gnc-plugin-page-register.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/gnome/gnc-plugin-page-register.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -1979,7 +1979,7 @@
}
}
- gnc_engine_suspend_events();
+ qof_event_suspend();
new_trans = xaccTransClone(trans);
xaccTransReverse(new_trans);
@@ -1994,7 +1994,7 @@
kvp_val = kvp_value_new_guid (xaccTransGetGUID(new_trans));
kvp_frame_set_slot_nc(txn_frame, "reversed-by", kvp_val);
xaccTransCommitEdit(trans);
- gnc_engine_resume_events();
+ qof_event_resume();
/* Now jump to new trans */
gsr = gnc_plugin_page_register_get_gsr(GNC_PLUGIN_PAGE(page));
Modified: gnucash/trunk/src/gnome/lot-viewer.c
===================================================================
--- gnucash/trunk/src/gnome/lot-viewer.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/gnome/lot-viewer.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -136,7 +136,7 @@
if (NULL == lot) return;
-/* gnc_engine_suspend_events(); XXX remove when xaccSplitGetCapGains() fixed */
+/* qof_event_suspend(); XXX remove when xaccSplitGetCapGains() fixed */
gtk_clist_freeze (lv->mini_clist);
gtk_clist_clear (lv->mini_clist);
split_list = gnc_lot_get_split_list (lot);
@@ -213,7 +213,7 @@
gtk_clist_set_selectable (lv->mini_clist, row, FALSE);
}
gtk_clist_thaw (lv->mini_clist);
-/* gnc_engine_resume_events(); XXX remove when xaccSplitGetCapGains() fixed */
+/* qof_event_resume(); XXX remove when xaccSplitGetCapGains() fixed */
}
/* ======================================================================== */
Modified: gnucash/trunk/src/gnome-utils/account-quickfill.c
===================================================================
--- gnucash/trunk/src/gnome-utils/account-quickfill.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/gnome-utils/account-quickfill.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -61,7 +61,7 @@
qfb);
gnc_quickfill_destroy (qfb->qf);
g_object_unref(qfb->list_store);
- gnc_engine_unregister_event_handler (qfb->listener);
+ qof_event_unregister_handler (qfb->listener);
g_free (qfb);
}
@@ -177,7 +177,7 @@
xaccGroupForEachAccount (group, load_shared_qf_cb, qfb, TRUE);
qfb->listener =
- gnc_engine_register_event_handler (listen_for_account_events, qfb);
+ qof_event_register_old_handler (listen_for_account_events, qfb);
qof_book_set_data_fin (book, key, qfb, shared_quickfill_destroy);
Modified: gnucash/trunk/src/gnome-utils/gnc-account-sel.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-account-sel.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/gnome-utils/gnc-account-sel.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -157,7 +157,7 @@
gas_populate_list( gas );
gas->eventHandlerId =
- gnc_engine_register_event_handler( gnc_account_sel_event_cb, gas );
+ qof_event_register_old_handler( gnc_account_sel_event_cb, gas );
gas->initDone = TRUE;
}
@@ -446,7 +446,7 @@
gas = GNC_ACCOUNT_SEL (object);
if (gas->eventHandlerId) {
- gnc_engine_unregister_event_handler (gas->eventHandlerId);
+ qof_event_unregister_handler (gas->eventHandlerId);
gas->eventHandlerId = 0;
}
Modified: gnucash/trunk/src/gnome-utils/gnc-file.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-file.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/gnome-utils/gnc-file.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -506,14 +506,14 @@
/* close any ongoing file sessions, and free the accounts.
* disable events so we don't get spammed by redraws. */
- gnc_engine_suspend_events ();
+ qof_event_suspend ();
qof_session_call_close_hooks(session);
gnc_hook_run(HOOK_BOOK_CLOSED, session);
gnc_close_gui_component_by_session (session);
gnc_clear_current_session();
- gnc_engine_resume_events ();
+ qof_event_resume ();
}
/* start a new book */
@@ -614,7 +614,7 @@
/* disable events while moving over to the new set of accounts;
* the mass deletetion of accounts and transactions during
* switchover would otherwise cause excessive redraws. */
- gnc_engine_suspend_events ();
+ qof_event_suspend ();
/* Change the mouse to a busy cursor */
gnc_set_busy_cursor (NULL, TRUE);
@@ -773,7 +773,7 @@
g_free (newfile);
- gnc_engine_resume_events ();
+ qof_event_resume ();
gnc_gui_refresh_all ();
return FALSE;
@@ -790,7 +790,7 @@
g_free (newfile);
- gnc_engine_resume_events ();
+ qof_event_resume ();
gnc_gui_refresh_all ();
/* Call this after re-enabling events. */
@@ -860,7 +860,7 @@
gnc_gconf_set_string(GCONF_SECTION, KEY_LAST_PATH, default_dir, NULL);
g_free(default_dir);
- gnc_engine_suspend_events();
+ qof_event_suspend();
/* -- this session code is NOT identical in FileOpen and FileSaveAs -- */
@@ -907,7 +907,7 @@
xaccLogDisable();
qof_session_destroy (new_session);
xaccLogEnable();
- gnc_engine_resume_events();
+ qof_event_resume();
if (!ok)
{
@@ -1108,7 +1108,7 @@
/* disable events; otherwise the mass deletetion of accounts and
* transactions during shutdown would cause massive redraws */
- gnc_engine_suspend_events ();
+ qof_event_suspend ();
qof_session_call_close_hooks(session);
gnc_hook_run(HOOK_BOOK_CLOSED, session);
@@ -1117,7 +1117,7 @@
gnc_get_current_session ();
- gnc_engine_resume_events ();
+ qof_event_resume ();
gnc_unset_busy_cursor (NULL);
}
Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -1622,7 +1622,7 @@
g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free);
priv->event_handler_id =
- gnc_engine_register_event_handler(gnc_main_window_event_handler,
+ qof_event_register_old_handler(gnc_main_window_event_handler,
window);
gnc_main_window_setup_window (window);
@@ -1693,7 +1693,7 @@
gnc_gconf_remove_notification(G_OBJECT(window), DESKTOP_GNOME_INTERFACE);
gnc_gconf_remove_notification(G_OBJECT(window), GCONF_GENERAL);
- gnc_engine_unregister_event_handler(priv->event_handler_id);
+ qof_event_unregister_handler(priv->event_handler_id);
priv->event_handler_id = 0;
g_hash_table_destroy (priv->merged_actions_table);
Modified: gnucash/trunk/src/gnome-utils/gnc-tree-model-commodity.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-tree-model-commodity.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/gnome-utils/gnc-tree-model-commodity.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -191,7 +191,7 @@
priv = GNC_TREE_MODEL_COMMODITY_GET_PRIVATE(model);
if (priv->event_handler_id) {
- gnc_engine_unregister_event_handler (priv->event_handler_id);
+ qof_event_unregister_handler (priv->event_handler_id);
priv->event_handler_id = 0;
}
@@ -224,7 +224,7 @@
priv->commodity_table = ct;
priv->event_handler_id =
- gnc_engine_register_event_handler (gnc_tree_model_commodity_event_handler, model);
+ qof_event_register_old_handler (gnc_tree_model_commodity_event_handler, model);
return GTK_TREE_MODEL (model);
}
Modified: gnucash/trunk/src/gnome-utils/gnc-tree-model-price.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-tree-model-price.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/gnome-utils/gnc-tree-model-price.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -217,7 +217,7 @@
priv = GNC_TREE_MODEL_PRICE_GET_PRIVATE(model);
if (priv->event_handler_id) {
- gnc_engine_unregister_event_handler (priv->event_handler_id);
+ qof_event_unregister_handler (priv->event_handler_id);
priv->event_handler_id = 0;
}
@@ -252,7 +252,7 @@
priv->price_db = price_db;
priv->event_handler_id =
- gnc_engine_register_event_handler (gnc_tree_model_price_event_handler, model);
+ qof_event_register_old_handler (gnc_tree_model_price_event_handler, model);
return GTK_TREE_MODEL (model);
}
Modified: gnucash/trunk/src/import-export/log-replay/gnc-log-replay.c
===================================================================
--- gnucash/trunk/src/import-export/log-replay/gnc-log-replay.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/import-export/log-replay/gnc-log-replay.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -512,7 +512,7 @@
if (!expected_header)
expected_header = g_strdup_printf(expected_header_orig);
- gnc_set_log_level(GNC_MOD_IMPORT, GNC_LOG_DEBUG);
+ qof_log_set_level(GNC_MOD_IMPORT, QOF_LOG_DEBUG);
ENTER(" ");
default_dir = gnc_gconf_get_string(GCONF_SECTION, KEY_LAST_PATH, NULL);
Modified: gnucash/trunk/src/import-export/mt940/gnc-mt940-import.c
===================================================================
--- gnucash/trunk/src/import-export/mt940/gnc-mt940-import.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/import-export/mt940/gnc-mt940-import.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -136,7 +136,7 @@
char *default_dir;
int mt940_fd;
- /* gnc_should_log(MOD_IMPORT, GNC_LOG_TRACE); */
+ /* qof_log_check(MOD_IMPORT, QOF_LOG_TRACE); */
DEBUG("gnc_file_mt940_import(): Begin...\n");
default_dir = gnc_gconf_get_string(GCONF_SECTION, KEY_LAST_PATH, NULL);
Modified: gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c
===================================================================
--- gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -638,7 +638,7 @@
ofx_INFO_msg = true;
ofx_STATUS_msg = false;
- gnc_should_log(GNC_MOD_IMPORT, GNC_LOG_TRACE);
+ qof_log_check(GNC_MOD_IMPORT, QOF_LOG_TRACE);
DEBUG("gnc_file_ofx_import(): Begin...\n");
default_dir = gnc_gconf_get_string(GCONF_SECTION, KEY_LAST_PATH, NULL);
Modified: gnucash/trunk/src/report/report-gnome/gnc-plugin-page-report.c
===================================================================
--- gnucash/trunk/src/report/report-gnome/gnc-plugin-page-report.c 2006-03-09 00:49:46 UTC (rev 13544)
+++ gnucash/trunk/src/report/report-gnome/gnc-plugin-page-report.c 2006-03-09 02:29:29 UTC (rev 13545)
@@ -73,7 +73,7 @@
/* NW: you can add GNC_MOD_REPORT to gnc-engine.h
or simply define it locally. Any unique string with
a gnucash- prefix will do. Then just set a log level
-with gnc_set_log_level().*/
+with qof_log_set_level().*/
static QofLogModule log_module = GNC_MOD_GUI;
static GObjectClass *parent_class = NULL;
More information about the gnucash-changes
mailing list