diff --git a/ChangeLog b/ChangeLog index c47395f2e9..5dd67ed4f3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,9 @@ * src/engine/gnc-filepath-utils.c: gstdio.h and g_mkdir are in glib-2.6 -- use old APIs with glib-2.4. + * lib/libqof/qof/qofevent.[ch]: + Fix the definition of QOF_EVENT_BASE; use QOF_EVENT__LAST for tests. + 2006-03-08 Christian Stimming * src/gnc-module/gnc-module.c, src/backend/file/sixtp-utils.c: diff --git a/lib/libqof/qof/qofevent.c b/lib/libqof/qof/qofevent.c index 76504c6f56..1190819465 100644 --- a/lib/libqof/qof/qofevent.c +++ b/lib/libqof/qof/qofevent.c @@ -205,7 +205,7 @@ qof_event_generate_internal (QofEntity *entity, QofEventId event_id, g_return_if_fail(entity); - if (event_id <= QOF_EVENT_BASE) + if (event_id <= QOF_EVENT__LAST) { use_old_handlers = TRUE; } diff --git a/lib/libqof/qof/qofevent.h b/lib/libqof/qof/qofevent.h index a5e148e44a..b65270f8fb 100644 --- a/lib/libqof/qof/qofevent.h +++ b/lib/libqof/qof/qofevent.h @@ -51,7 +51,11 @@ events added within QOF. #define APP_EVENT_B QOF_MAKE_EVENT(QOF_EVENT_BASE+1) /endverbatim */ -#define QOF_MAKE_EVENT(x) (1<