forked from enlightenment/efl
multibuttonentry: changed longpress callback name.
contextually, the longpress triggered by item. so the name should be item,longpressed thank Davide Andreoli for reporting.
This commit is contained in:
parent
6cead83bed
commit
5c56171bb8
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue