diff options
author | Ole Loots <ole@monochrom.net> | 2012-11-14 21:37:35 +0100 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2012-11-14 21:37:35 +0100 |
commit | d1a5c738e62a9f0cb85658b435eefa8749006edc (patch) | |
tree | 8c469e88b5b4619a658a752c39d34a217697220a /atari/global_evnt.h | |
parent | 2bea506f837c9a1e9c12c448eb206e067770819c (diff) | |
download | netsurf-d1a5c738e62a9f0cb85658b435eefa8749006edc.tar.gz netsurf-d1a5c738e62a9f0cb85658b435eefa8749006edc.tar.bz2 |
Refactored menu event handling and got rid of several windom calls.
Diffstat (limited to 'atari/global_evnt.h')
-rwxr-xr-x | atari/global_evnt.h | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/atari/global_evnt.h b/atari/global_evnt.h index 1e13264a2..76e73fc6b 100755 --- a/atari/global_evnt.h +++ b/atari/global_evnt.h @@ -18,6 +18,8 @@ #ifndef NS_ATARI_GLOBAL_EVNT_H
#define NS_ATARI_GLOBAL_EVNT_H
+ +#include <stdbool.h> struct s_keybd_evnt_data
{
@@ -32,31 +34,14 @@ struct s_evnt_data } u;
};
-struct s_evnt_data evnt_data;
-
-struct s_accelerator
-{
- char ascii; /* either ascii or */
- long keycode; /* normalised keycode is valid */
- short mod; /* shift / ctrl etc */
-};
-
-typedef void __CDECL (*menu_evnt_func)(WINDOW * win, int item, int title, void * data);
-struct s_menu_item_evnt {
- short title; /* to which menu this item belongs */
- short rid; /* resource ID */
- menu_evnt_func menu_func; /* click handler */
- struct s_accelerator accel; /* accelerator info */
- char * menustr;
-};
+struct s_evnt_data evnt_data; /*
- Global & Menu event handlers
+ Global event handlers
*/
void bind_global_events( void );
void unbind_global_events( void ); -void main_menu_update( void );
#endif
|