From 38b49c30e152bab08f39b16bedcd8a9934aff9bc Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 19 Aug 2014 21:59:56 -0700 Subject: [PATCH] Changed the name of the IME hint to match the naming convention in SDL --- include/SDL_hints.h | 2 +- src/core/linux/SDL_ibus.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/SDL_hints.h b/include/SDL_hints.h index b1feef660c04e..5c9185e22b3bd 100644 --- a/include/SDL_hints.h +++ b/include/SDL_hints.h @@ -488,7 +488,7 @@ extern "C" { * "1" - If supported by the IM then TEXTEDITING events are not sent, * and text that is being composed will be rendered in its own UI. */ -#define SDL_HINT_IM_INTERNAL_EDITING "SDL_IM_INTERNAL_EDITING" +#define SDL_HINT_IME_INTERNAL_EDITING "SDL_IME_INTERNAL_EDITING" /** * \brief An enumeration of hint priorities diff --git a/src/core/linux/SDL_ibus.c b/src/core/linux/SDL_ibus.c index 203a123683879..2a538b1b15d0e 100644 --- a/src/core/linux/SDL_ibus.c +++ b/src/core/linux/SDL_ibus.c @@ -375,7 +375,7 @@ IBus_SetupConnection(SDL_DBusContext *dbus, const char* addr) } if(result){ - SDL_AddHintCallback(SDL_HINT_IM_INTERNAL_EDITING, &IBus_SetCapabilities, NULL); + SDL_AddHintCallback(SDL_HINT_IME_INTERNAL_EDITING, &IBus_SetCapabilities, NULL); dbus->bus_add_match(ibus_conn, "type='signal',interface='org.freedesktop.IBus.InputContext'", NULL); dbus->connection_add_filter(ibus_conn, &IBus_MessageFilter, dbus, NULL); @@ -495,7 +495,7 @@ SDL_IBus_Quit(void) inotify_wd = -1; } - SDL_DelHintCallback(SDL_HINT_IM_INTERNAL_EDITING, &IBus_SetCapabilities, NULL); + SDL_DelHintCallback(SDL_HINT_IME_INTERNAL_EDITING, &IBus_SetCapabilities, NULL); SDL_memset(&ibus_cursor_rect, 0, sizeof(ibus_cursor_rect)); }