From ecaf8b83f8227724e9f862a0a8f64e6004a63d56 Mon Sep 17 00:00:00 2001 From: inmarket Date: Wed, 20 Aug 2014 12:18:27 +1000 Subject: Create a generic GWIN event. The frame now sends a GEVENT_GWIN_CLOSE event on closing. Unfortunately some gwin events have had a field renamed in order to generalise the structure. Demo's updated to match. --- src/gwin/list.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gwin/list.h') diff --git a/src/gwin/list.h b/src/gwin/list.h index 1eae3c19..d9979993 100644 --- a/src/gwin/list.h +++ b/src/gwin/list.h @@ -31,18 +31,18 @@ /** * @brief The event type for a list event */ -#define GEVENT_GWIN_LIST (GEVENT_GWIN_FIRST+4) +#define GEVENT_GWIN_LIST (GEVENT_GWIN_CTRL_FIRST+4) /** * @brief A list event */ typedef struct GEventGWinList { GEventType type; // The type of this event (GEVENT_GWIN_LIST) - GHandle list; // The list - int item; // The item that has been selected (or unselected in a multi-select listbox) + GHandle gwin; // The list #if GWIN_WIDGET_TAGS WidgetTag tag; // The list tag #endif + int item; // The item that has been selected (or unselected in a multi-select listbox) } GEventGWinList; // A list window -- cgit v1.2.3