Deleting Ecore_IMF event handlers on _e_entry_smart_del.
SVN revision: 33112
This commit is contained in:
parent
01896494a2
commit
041d00dc6f
|
@ -57,7 +57,7 @@ extern "C" {
|
|||
EAPI extern int ECORE_IMF_EVENT_PREEDIT_END;
|
||||
EAPI extern int ECORE_IMF_EVENT_PREEDIT_CHANGED;
|
||||
EAPI extern int ECORE_IMF_EVENT_COMMIT;
|
||||
EAPI extern int ECORE_IMF_EVENT_DELETE_SURROUNDIND;
|
||||
EAPI extern int ECORE_IMF_EVENT_DELETE_SURROUNDING;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
|
|
|
@ -13,8 +13,7 @@ EAPI int ECORE_IMF_EVENT_PREEDIT_START = 0;
|
|||
EAPI int ECORE_IMF_EVENT_PREEDIT_END = 0;
|
||||
EAPI int ECORE_IMF_EVENT_PREEDIT_CHANGED = 0;
|
||||
EAPI int ECORE_IMF_EVENT_COMMIT = 0;
|
||||
EAPI int ECORE_IMF_EVENT_RETRIEVE_SURROUNDIND = 0;
|
||||
EAPI int ECORE_IMF_EVENT_DELETE_SURROUNDIND = 0;
|
||||
EAPI int ECORE_IMF_EVENT_DELETE_SURROUNDING = 0;
|
||||
|
||||
static int init_count = 0;
|
||||
|
||||
|
@ -43,8 +42,7 @@ ecore_imf_init(void)
|
|||
ECORE_IMF_EVENT_PREEDIT_END = ecore_event_type_new();
|
||||
ECORE_IMF_EVENT_PREEDIT_CHANGED = ecore_event_type_new();
|
||||
ECORE_IMF_EVENT_COMMIT = ecore_event_type_new();
|
||||
ECORE_IMF_EVENT_RETRIEVE_SURROUNDIND = ecore_event_type_new();
|
||||
ECORE_IMF_EVENT_DELETE_SURROUNDIND = ecore_event_type_new();
|
||||
ECORE_IMF_EVENT_DELETE_SURROUNDING = ecore_event_type_new();
|
||||
|
||||
return init_count;
|
||||
}
|
||||
|
|
|
@ -773,7 +773,7 @@ _ecore_imf_event_free_delete_surrounding(void *data __UNUSED__, void *event)
|
|||
}
|
||||
|
||||
/**
|
||||
* Adds ECORE_IMF_EVENT_DELETE_SURROUNDIND to the event queue.
|
||||
* Adds ECORE_IMF_EVENT_DELETE_SURROUNDING to the event queue.
|
||||
*
|
||||
* @param ctx An #Ecore_IMF_Context.
|
||||
* @param offset The start offset of surrounding to be deleted.
|
||||
|
@ -796,6 +796,6 @@ ecore_imf_context_delete_surrounding_event_add(Ecore_IMF_Context *ctx, int offse
|
|||
ev->ctx = ctx;
|
||||
ev->offset = offset;
|
||||
ev->n_chars = n_chars;
|
||||
ecore_event_add(ECORE_IMF_EVENT_DELETE_SURROUNDIND,
|
||||
ecore_event_add(ECORE_IMF_EVENT_DELETE_SURROUNDING,
|
||||
ev, _ecore_imf_event_free_delete_surrounding, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue