summaryrefslogtreecommitdiff
path: root/gtk/gtk_window.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-05-16 09:37:22 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-05-16 09:37:22 +0000
commitb15a6af3d29ad844bdd44eb6181d069958afab5b (patch)
tree7c59b84724c59a3f8df76902841f19c36837f5d6 /gtk/gtk_window.c
parentbaca6796eb96fac3cf79400f9cdb588b49f78930 (diff)
downloadnetsurf-b15a6af3d29ad844bdd44eb6181d069958afab5b.tar.gz
netsurf-b15a6af3d29ad844bdd44eb6181d069958afab5b.tar.bz2
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
Diffstat (limited to 'gtk/gtk_window.c')
-rw-r--r--gtk/gtk_window.c7
1 files changed, 4 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>.
*/
+#include <inttypes.h>
#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;