From e5ec9415d1060010f45878a2f86afe0d942bbb74 Mon Sep 17 00:00:00 2001 From: inmarket Date: Wed, 25 Nov 2015 07:29:34 +1000 Subject: [PATCH] Warning removal as supplied by woodstck --- src/gwin/gwin_keyboard.c | 2 +- src/gwin/gwin_keyboard.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gwin/gwin_keyboard.c b/src/gwin/gwin_keyboard.c index 7080cd5d..59befa3f 100644 --- a/src/gwin/gwin_keyboard.c +++ b/src/gwin/gwin_keyboard.c @@ -364,7 +364,7 @@ GSourceHandle gwinKeyboardGetEventSource(GHandle gh) { return (GSourceHandle)gh; } -void gwinKeyboardSetLayout(GHandle gh, struct GVKeyTable *layout) { +void gwinKeyboardSetLayout(GHandle gh, const struct GVKeyTable *layout) { #define gk ((GKeyboardObject *)gh) if (gh->vmt != (gwinVMT *)&keyboardVMT) diff --git a/src/gwin/gwin_keyboard.h b/src/gwin/gwin_keyboard.h index 347b4bb4..a09127bd 100644 --- a/src/gwin/gwin_keyboard.h +++ b/src/gwin/gwin_keyboard.h @@ -101,7 +101,7 @@ GSourceHandle gwinKeyboardGetEventSource(GHandle gh); * @note Changing the layout resets the keyboard to key set 0 of the keyboard and cancels any * pending shifts. */ -void gwinKeyboardSetLayout(GHandle gh, struct GVKeyTable *layout); +void gwinKeyboardSetLayout(GHandle gh, const struct GVKeyTable *layout); /** * @defgroup Renderings_Keyboard Renderings