hermet pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=a44926a5d3e86d3e19a51af4185826d933bdaadc
commit a44926a5d3e86d3e19a51af4185826d933bdaadc Author: ChunEon Park <her...@hermet.pe.kr> Date: Fri Apr 17 16:32:04 2015 +0900 multibuttonentry: changed longpress callback name. contextually, the longpress triggered by item. so the name should be item,longpressed thank Davide Andreoli for reporting. --- src/lib/elc_multibuttonentry.c | 6 +++--- src/lib/elc_multibuttonentry.h | 2 +- src/lib/elm_multibuttonentry.eo | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/elc_multibuttonentry.c b/src/lib/elc_multibuttonentry.c index 2ad0e83..7e4ec4b 100644 --- a/src/lib/elc_multibuttonentry.c +++ b/src/lib/elc_multibuttonentry.c @@ -22,25 +22,25 @@ static const char SIG_ITEM_SELECTED[] = "item,selected"; static const char SIG_ITEM_ADDED[] = "item,added"; static const char SIG_ITEM_DELETED[] = "item,deleted"; static const char SIG_ITEM_CLICKED[] = "item,clicked"; +static const char SIG_ITEM_LONGPRESSED[] = "item,longpressed"; static const char SIG_CLICKED[] = "clicked"; static const char SIG_FOCUSED[] = "focused"; static const char SIG_UNFOCUSED[] = "unfocused"; static const char SIG_EXPANDED[] = "expanded"; static const char SIG_CONTRACTED[] = "contracted"; static const char SIG_EXPAND_STATE_CHANGED[] = "expand,state,changed"; -static const char SIG_LONGPRESSED[] = "longpressed"; static const Evas_Smart_Cb_Description _smart_callbacks[] = { {SIG_ITEM_SELECTED, ""}, {SIG_ITEM_ADDED, ""}, {SIG_ITEM_DELETED, ""}, {SIG_ITEM_CLICKED, ""}, + {SIG_ITEM_LONGPRESSED, ""}, {SIG_CLICKED, ""}, {SIG_FOCUSED, ""}, {SIG_UNFOCUSED, ""}, {SIG_EXPANDED, ""}, {SIG_CONTRACTED, ""}, {SIG_EXPAND_STATE_CHANGED, ""}, - {SIG_LONGPRESSED, ""}, {NULL, NULL} }; @@ -522,7 +522,7 @@ _long_press_cb(void *data) sd->longpress_timer = NULL; - evas_object_smart_callback_call(WIDGET(it), SIG_LONGPRESSED, EO_OBJ(it)); + evas_object_smart_callback_call(WIDGET(it), SIG_ITEM_LONGPRESSED, EO_OBJ(it)); return ECORE_CALLBACK_CANCEL; } diff --git a/src/lib/elc_multibuttonentry.h b/src/lib/elc_multibuttonentry.h index d0862fc..75fe7a1 100644 --- a/src/lib/elc_multibuttonentry.h +++ b/src/lib/elc_multibuttonentry.h @@ -30,6 +30,7 @@ * - @c "item,deleted" - when a multi-button entry item is deleted. * - @c "item,clicked" - this is called when an item is clicked by user * interaction. Both "item,selected" and "item,clicked" are needed. + * - @c "item,longpressed" - when multi-button entry item is pressed for a long time. * - @c "clicked" - when multi-button entry is clicked. * - @c "focused" - when multi-button entry is focused. * - @c "unfocused" - when multi-button entry is unfocused. @@ -37,7 +38,6 @@ * - @c "contracted" - when multi-button entry is contracted. * - @c "expand,state,changed" - when shrink mode state of * multi-button entry is changed. - * - @c "longpressed" - when multi-button entry is pressed for a long time. * * Default text parts of the multi-button entry widget that you can use are: * @li "default" - A label of the multi-button entry diff --git a/src/lib/elm_multibuttonentry.eo b/src/lib/elm_multibuttonentry.eo index 6149ab6..18727b4 100644 --- a/src/lib/elm_multibuttonentry.eo +++ b/src/lib/elm_multibuttonentry.eo @@ -274,13 +274,13 @@ class Elm_Multibuttonentry (Elm_Layout) item,added; item,deleted; item,clicked; + item,longpressed; clicked; focused; unfocused; expanded; contracted; expand,state,changed; - longpressed; } } --