[Gnucash-changes] r13341 - gnucash/trunk - Fix GNC_EVENT_* values.

Joshua Sled jsled at cvs.gnucash.org
Tue Feb 21 10:37:15 EST 2006


Author: jsled
Date: 2006-02-21 10:37:12 -0500 (Tue, 21 Feb 2006)
New Revision: 13341
Trac: http://svn.gnucash.org/trac/changeset/13341

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/lib/libqof/qof/qofevent.h
Log:
Fix GNC_EVENT_* values.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-02-21 05:14:15 UTC (rev 13340)
+++ gnucash/trunk/ChangeLog	2006-02-21 15:37:12 UTC (rev 13341)
@@ -1,3 +1,8 @@
+2006-02-21  Joshua Sled  <jsled at asynchronous.org>
+
+	* lib/libqof/qof/qofevent.h (QOF_EVENT_CREATE):
+	Fix event values.
+
 2006-02-20  David Hampton  <hampton at employees.org>
 
 	* src/register/register-gnome/gnucash-date-picker.c: Andreas

Modified: gnucash/trunk/lib/libqof/qof/qofevent.h
===================================================================
--- gnucash/trunk/lib/libqof/qof/qofevent.h	2006-02-21 05:14:15 UTC (rev 13340)
+++ gnucash/trunk/lib/libqof/qof/qofevent.h	2006-02-21 15:37:12 UTC (rev 13341)
@@ -44,13 +44,13 @@
 These defaults merely replicate previous behaviour,
 any process can define their own events. 
 */
-#define QOF_EVENT_NONE     0
-#define QOF_EVENT_CREATE   1
-#define QOF_EVENT_MODIFY   2
-#define QOF_EVENT_DESTROY  3
-#define QOF_EVENT_ADD      4
-#define QOF_EVENT_REMOVE   5
-#define QOF_EVENT_ALL      6 /**< unused */
+#define QOF_EVENT_NONE     (0)
+#define QOF_EVENT_CREATE   (1 << 1)
+#define QOF_EVENT_MODIFY   (1 << 2)
+#define QOF_EVENT_DESTROY  (1 << 3)
+#define QOF_EVENT_ADD      (1 << 4)
+#define QOF_EVENT_REMOVE   (1 << 5)
+#define QOF_EVENT_ALL      (0xff)
 
 /** Allow scope for more defaults in future. Additional
 event identifiers must be larger than this. */



More information about the gnucash-changes mailing list