Ecore imf: changed int -> Eina_Bool in ecore_imf_context_use_preedit_set.
SVN revision: 52884
This commit is contained in:
parent
72c7182a15
commit
467abe35c7
|
@ -273,7 +273,7 @@ struct _Ecore_IMF_Context_Class
|
|||
void (*focus_out) (Ecore_IMF_Context *ctx);
|
||||
void (*reset) (Ecore_IMF_Context *ctx);
|
||||
void (*cursor_position_set) (Ecore_IMF_Context *ctx, int cursor_pos);
|
||||
void (*use_preedit_set) (Ecore_IMF_Context *ctx, int use_preedit);
|
||||
void (*use_preedit_set) (Ecore_IMF_Context *ctx, Eina_Bool use_preedit);
|
||||
void (*input_mode_set) (Ecore_IMF_Context *ctx, Ecore_IMF_Input_Mode input_mode);
|
||||
Eina_Bool (*filter_event) (Ecore_IMF_Context *ctx, Ecore_IMF_Event_Type type, Ecore_IMF_Event *event);
|
||||
};
|
||||
|
@ -310,7 +310,7 @@ EAPI void ecore_imf_context_focus_in(Ecore_IMF_Context
|
|||
EAPI void ecore_imf_context_focus_out(Ecore_IMF_Context *ctx);
|
||||
EAPI void ecore_imf_context_reset(Ecore_IMF_Context *ctx);
|
||||
EAPI void ecore_imf_context_cursor_position_set(Ecore_IMF_Context *ctx, int cursor_pos);
|
||||
EAPI void ecore_imf_context_use_preedit_set(Ecore_IMF_Context *ctx, int use_preedit);
|
||||
EAPI void ecore_imf_context_use_preedit_set(Ecore_IMF_Context *ctx, Eina_Bool use_preedit);
|
||||
EAPI void ecore_imf_context_retrieve_surrounding_callback_set(Ecore_IMF_Context *ctx, Eina_Bool (*func)(void *data, Ecore_IMF_Context *ctx, char **text, int *cursor_pos), const void *data);
|
||||
EAPI void ecore_imf_context_input_mode_set(Ecore_IMF_Context *ctx, Ecore_IMF_Input_Mode input_mode);
|
||||
EAPI Ecore_IMF_Input_Mode ecore_imf_context_input_mode_get(Ecore_IMF_Context *ctx);
|
||||
|
|
|
@ -172,9 +172,9 @@ ecore_imf_context_add(const char *id)
|
|||
ctx = ecore_imf_module_context_create(id);
|
||||
if (!ctx || !ctx->klass) return NULL;
|
||||
if (ctx->klass->add) ctx->klass->add(ctx);
|
||||
/* default use_preedit is 1, so let's make sure it's
|
||||
/* default use_preedit is EINA_TRUE, so let's make sure it's
|
||||
* set on the immodule */
|
||||
ecore_imf_context_use_preedit_set(ctx, 1);
|
||||
ecore_imf_context_use_preedit_set(ctx, EINA_TRUE);
|
||||
/* default input_mode is ECORE_IMF_INPUT_MODE_FULL, so let's make sure it's
|
||||
* set on the immodule */
|
||||
ecore_imf_context_input_mode_set(ctx, ECORE_IMF_INPUT_MODE_FULL);
|
||||
|
@ -414,8 +414,8 @@ ecore_imf_context_cursor_position_set(Ecore_IMF_Context *ctx, int cursor_pos)
|
|||
|
||||
/**
|
||||
* Set whether the IM context should use the preedit string
|
||||
* to display feedback. If @use_preedit is 0 (default
|
||||
* is 1), then the IM context may use some other method to display
|
||||
* to display feedback. If @use_preedit is EINA_FALSE (default
|
||||
* is EINA_TRUE), then the IM context may use some other method to display
|
||||
* feedback, such as displaying it in a child of the root window.
|
||||
*
|
||||
* @param ctx An #Ecore_IMF_Context.
|
||||
|
@ -423,7 +423,7 @@ ecore_imf_context_cursor_position_set(Ecore_IMF_Context *ctx, int cursor_pos)
|
|||
* @ingroup Ecore_IMF_Context_Group
|
||||
*/
|
||||
EAPI void
|
||||
ecore_imf_context_use_preedit_set(Ecore_IMF_Context *ctx, int use_preedit)
|
||||
ecore_imf_context_use_preedit_set(Ecore_IMF_Context *ctx, Eina_Bool use_preedit)
|
||||
{
|
||||
if (!ECORE_MAGIC_CHECK(ctx, ECORE_MAGIC_CONTEXT))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue