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