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 --- gtk/gtk_window.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'gtk/gtk_window.c') diff --git a/gtk/gtk_window.c b/gtk/gtk_window.c index 4e47e8f50..307b92fa5 100644 --- a/gtk/gtk_window.c +++ b/gtk/gtk_window.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include "gtk/gtk_window.h" #include "desktop/browser.h" #include "desktop/options.h" @@ -61,7 +62,7 @@ struct gui_window { static struct gui_window *window_list = 0; /**< first entry in win list*/ -static wchar_t gdkkey_to_nskey(GdkEventKey *); +static uint32_t gdkkey_to_nskey(GdkEventKey *); static void nsgtk_gui_window_attach_child(struct gui_window *parent, struct gui_window *child); /* Methods which apply only to a gui_window */ @@ -371,7 +372,7 @@ gboolean nsgtk_window_button_press_event(GtkWidget *widget, return TRUE; } -wchar_t gdkkey_to_nskey(GdkEventKey *key) +uint32_t gdkkey_to_nskey(GdkEventKey *key) { /* this function will need to become much more complex to support * everything that the RISC OS version does. But this will do for @@ -414,7 +415,7 @@ gboolean nsgtk_window_keypress_event(GtkWidget *widget, GdkEventKey *event, gpointer data) { struct gui_window *g = data; - wchar_t nskey = gdkkey_to_nskey(event); + uint32_t nskey = gdkkey_to_nskey(event); if (browser_window_key_press(g->bw, nskey)) return TRUE; -- cgit v1.2.3