Changed the name of the IME hint to match the naming convention in SDL
authorSam Lantinga <slouken@libsdl.org>
Tue, 19 Aug 2014 21:59:56 -0700
changeset 9098064ea0b1275c
parent 9097 56d712662a82
child 9099 5bbfdfa38bfc
Changed the name of the IME hint to match the naming convention in SDL
include/SDL_hints.h
src/core/linux/SDL_ibus.c
     1.1 --- a/include/SDL_hints.h	Tue Aug 19 23:31:50 2014 +0100
     1.2 +++ b/include/SDL_hints.h	Tue Aug 19 21:59:56 2014 -0700
     1.3 @@ -488,7 +488,7 @@
     1.4   *   "1"       - If supported by the IM then TEXTEDITING events are not sent, 
     1.5   *               and text that is being composed will be rendered in its own UI.
     1.6   */
     1.7 -#define SDL_HINT_IM_INTERNAL_EDITING "SDL_IM_INTERNAL_EDITING"
     1.8 +#define SDL_HINT_IME_INTERNAL_EDITING "SDL_IME_INTERNAL_EDITING"
     1.9  
    1.10  /**
    1.11   *  \brief  An enumeration of hint priorities
     2.1 --- a/src/core/linux/SDL_ibus.c	Tue Aug 19 23:31:50 2014 +0100
     2.2 +++ b/src/core/linux/SDL_ibus.c	Tue Aug 19 21:59:56 2014 -0700
     2.3 @@ -375,7 +375,7 @@
     2.4      }
     2.5  
     2.6      if(result){
     2.7 -        SDL_AddHintCallback(SDL_HINT_IM_INTERNAL_EDITING, &IBus_SetCapabilities, NULL);
     2.8 +        SDL_AddHintCallback(SDL_HINT_IME_INTERNAL_EDITING, &IBus_SetCapabilities, NULL);
     2.9          
    2.10          dbus->bus_add_match(ibus_conn, "type='signal',interface='org.freedesktop.IBus.InputContext'", NULL);
    2.11          dbus->connection_add_filter(ibus_conn, &IBus_MessageFilter, dbus, NULL);
    2.12 @@ -495,7 +495,7 @@
    2.13          inotify_wd = -1;
    2.14      }
    2.15      
    2.16 -    SDL_DelHintCallback(SDL_HINT_IM_INTERNAL_EDITING, &IBus_SetCapabilities, NULL);
    2.17 +    SDL_DelHintCallback(SDL_HINT_IME_INTERNAL_EDITING, &IBus_SetCapabilities, NULL);
    2.18      
    2.19      SDL_memset(&ibus_cursor_rect, 0, sizeof(ibus_cursor_rect));
    2.20  }