changeset 76:8706356a61b4

-
author Thinker K.F. Li <thinker@branda.to>
date Tue, 19 Aug 2008 19:14:01 +0800
parents 23bc382d9683
children a6763f080da5
files src/Makefile src/observer.h
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/Makefile	Mon Aug 18 23:08:03 2008 +0800
+++ b/src/Makefile	Tue Aug 19 19:14:01 2008 +0800
@@ -1,6 +1,6 @@
 SRCS =	coord.c geo.c shape_path.c shape_text.c shape_rect.c \
 	redraw_man.c timer.c animate.c paint.c event.c observer.c \
-	tools.c
+	X_supp.c tools.c
 OBJS = ${SRCS:C/(.*)\.c/\1.o/g}
 TESTCASE_OBJS = ${SRCS:C/(.*)\.c/testcase-\1.o/g}
 CFLAGS+=	-Wall -I/usr/local/include `pkg-config --cflags cairo`
--- a/src/observer.h	Mon Aug 18 23:08:03 2008 +0800
+++ b/src/observer.h	Tue Aug 19 19:14:01 2008 +0800
@@ -37,6 +37,10 @@
     int button;
 };
 
+#define MOUSE_BUT1 0x1
+#define MOUSE_BUT2 0x2
+#define MOUSE_BUT3 0x4
+
 /*! \brief Observer factory.
  *
  * It provides functions for allocation of subject and observer objects,