# HG changeset patch # User Thinker K.F. Li # Date 1219144441 -28800 # Node ID 8706356a61b407db49f95ecd6ce303001039a835 # Parent 23bc382d96837129e7122117c5642a625e9f4643 - diff -r 23bc382d9683 -r 8706356a61b4 src/Makefile --- 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` diff -r 23bc382d9683 -r 8706356a61b4 src/observer.h --- 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,