From 9c8413684e589ae90c416e08e0419b91db6f7cc3 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Mon, 28 Aug 2006 08:47:59 +0000 Subject: Added a -catchevent attribute that specifies whether an item should handle events or act as a decorating object. Groups can be controlled too, there catching state propagates to their children. --- generic/Triangles.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'generic/Triangles.c') diff --git a/generic/Triangles.c b/generic/Triangles.c index 1565b5b..06a6c3a 100644 --- a/generic/Triangles.c +++ b/generic/Triangles.c @@ -59,6 +59,9 @@ typedef struct _TrianglesItemStruct { static ZnAttrConfig tr_attrs[] = { + { ZN_CONFIG_BOOL, "-catchevent", NULL, + Tk_Offset(TrianglesItemStruct, header.flags), ZN_CATCH_EVENT_BIT, + ZN_REPICK_FLAG, False }, { ZN_CONFIG_GRADIENT_LIST, "-colors", NULL, Tk_Offset(TrianglesItemStruct, colors), 0, ZN_DRAW_FLAG, False }, { ZN_CONFIG_BOOL, "-composealpha", NULL, @@ -112,6 +115,7 @@ Init(ZnItem item, /* Init attributes */ SET(item->flags, ZN_VISIBLE_BIT); SET(item->flags, ZN_SENSITIVE_BIT); + SET(item->flags, ZN_CATCH_EVENT_BIT); SET(item->flags, ZN_COMPOSE_ALPHA_BIT); SET(item->flags, ZN_COMPOSE_ROTATION_BIT); SET(item->flags, ZN_COMPOSE_SCALE_BIT); -- cgit v1.1