Navigation Menu

Skip to content

Commit

Permalink
Changed the name of the IME hint to match the naming convention in SDL
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 20, 2014
1 parent 90bc642 commit 38b49c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/SDL_hints.h
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/core/linux/SDL_ibus.c
Expand Up @@ -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);
Expand Down Expand Up @@ -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));
}
Expand Down

0 comments on commit 38b49c3

Please sign in to comment.