elementary/elm_entry.c : Add elm_entry smart callback, named text,set,done. This smart callback will be useful when long text has been set and developer want to know the timing of setting whole text to the entry.

This commit is contained in:
WooHyun Jung 2013-05-06 20:42:34 +09:00
parent e73df135de
commit 7e9ef0f10d
4 changed files with 15 additions and 5 deletions

View File

@ -1316,23 +1316,27 @@
* The momentum animation time is changed as the amount of flick.
2012-05-01 Ryuan Choi (ryuan)
2013-05-01 Ryuan Choi (ryuan)
* Fix elm_object_cursor_theme_search_enabled_set to do as it's name described.
2012-05-02 WooHyun Jung
2013-05-02 WooHyun Jung
* elm_entry_filter_accept_set function now can recognize tags.
2012-05-02 ChunEon Park (Hermet)
2013-05-02 ChunEon Park (Hermet)
* Don't be dead even if a ctxpopup item callback function is null.
2012-05-03 Shinwoo Kim
2013-05-03 Shinwoo Kim
* Fix gengrid does not work under the accessibility.
* Fix do not append NULL to genlist focus list.
2012-05-01 Ryuan Choi (ryuan)
2013-05-01 Ryuan Choi (ryuan)
* Fix elm_clock_first_interval_set writes wrong value.
2013-05-06 WooHyun Jung
* Add elm_entry smart callback - "text,set,done".

View File

@ -67,6 +67,7 @@ Additions:
* Add the config elm_scroll_smooth_start_enable.
* Add elm_layout smart callback - "language,changed".
* The momentum animation time is changed as the amount of flick.
* Add elm_entry smart callback - "text,set,done".
Improvements:

View File

@ -48,6 +48,7 @@ static const char SIG_SELECTION_CUT[] = "selection,cut";
static const char SIG_SELECTION_PASTE[] = "selection,paste";
static const char SIG_SELECTION_START[] = "selection,start";
static const char SIG_THEME_CHANGED[] = "theme,changed";
static const char SIG_TEXT_SET_DONE[] = "text,set,done";
static const char SIG_UNDO_REQUEST[] = "undo,request";
static const char SIG_UNFOCUSED[] = "unfocused";
static const Evas_Smart_Cb_Description _smart_callbacks[] = {
@ -80,6 +81,7 @@ static const Evas_Smart_Cb_Description _smart_callbacks[] = {
{SIG_SELECTION_PASTE, ""},
{SIG_SELECTION_START, ""},
{SIG_THEME_CHANGED, ""},
{SIG_TEXT_SET_DONE, ""},
{SIG_UNDO_REQUEST, ""},
{SIG_UNFOCUSED, ""},
{NULL, NULL}
@ -2315,6 +2317,7 @@ _text_append_idler(void *data)
free(sd->append_text_left);
sd->append_text_left = NULL;
sd->append_text_idler = NULL;
evas_object_smart_callback_call(obj, SIG_TEXT_SET_DONE, NULL);
return ECORE_CALLBACK_CANCEL;
}
}
@ -2576,6 +2579,7 @@ _elm_entry_smart_text_set(Eo *obj, void *_pd, va_list *list)
else
{
edje_object_part_text_set(sd->entry_edje, "elm.text", entry);
evas_object_smart_callback_call(obj, SIG_TEXT_SET_DONE, NULL);
}
if (len > 0)

View File

@ -241,6 +241,7 @@
* parameter for the callback will be an #Elm_Entry_Anchor_Info.
* @li "preedit,changed": The preedit string has changed.
* @li "language,changed": Program language changed.
* @li "text,set,done": Whole text has been set to the entry.
*
* Default content parts of the entry items that you can use for are:
* @li "icon" - An icon in the entry