From b15a6af3d29ad844bdd44eb6181d069958afab5b Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 16 May 2008 09:37:22 +0000 Subject: s/wchar_t/uint32_t/g We always assumed that the keycode type was 32bits wide, anyway. wchar_t isn't guaranteed to be that big, so isn't remotely portable. svn path=/trunk/netsurf/; revision=4165 --- desktop/browser.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'desktop/browser.h') diff --git a/desktop/browser.h b/desktop/browser.h index ed002b2c5..bdada0c73 100644 --- a/desktop/browser.h +++ b/desktop/browser.h @@ -24,8 +24,8 @@ #ifndef _NETSURF_DESKTOP_BROWSER_H_ #define _NETSURF_DESKTOP_BROWSER_H_ +#include #include -#include #include #include "render/html.h" @@ -43,7 +43,7 @@ struct bitmap; typedef bool (*browser_caret_callback)(struct browser_window *bw, - wchar_t key, void *p); + uint32_t key, void *p); typedef bool (*browser_paste_callback)(struct browser_window *bw, const char *utf8, unsigned utf8_len, bool last, void *p); typedef void (*browser_move_callback)(struct browser_window *bw, @@ -216,7 +216,7 @@ void browser_window_mouse_track(struct browser_window *bw, void browser_window_mouse_drag_end(struct browser_window *bw, browser_mouse_state mouse, int x, int y); -bool browser_window_key_press(struct browser_window *bw, wchar_t key); +bool browser_window_key_press(struct browser_window *bw, uint32_t key); bool browser_window_paste_text(struct browser_window *bw, const char *utf8, unsigned utf8_len, bool last); void browser_window_form_select(struct browser_window *bw, -- cgit v1.2.3