forked from enlightenment/efl
elm multibuttonentry: Changed smart callback name. Discussed with multibuttonentry contributor. 'shrink,state,changed' -> 'expand,state,changed'.
Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com> SVN revision: 68882
This commit is contained in:
parent
0ad0ac6ff2
commit
543d234a2b
|
@ -119,7 +119,6 @@ static const char *_item_text_get_hook(const Elm_Object_Item *it,
|
|||
const char *part);
|
||||
|
||||
/* TODO
|
||||
* Change Shrink to Expand.
|
||||
* Code refactoring
|
||||
* use evas_object_smart_callback_descriptions_set for smart callbacks.
|
||||
*/
|
||||
|
@ -441,7 +440,7 @@ _shrink_mode_set(Evas_Object *obj, Eina_Bool shrink)
|
|||
evas_object_show(wd->end);
|
||||
|
||||
wd->view_state = MULTIBUTTONENTRY_VIEW_SHRINK;
|
||||
evas_object_smart_callback_call(obj, "shrink,state,changed", (void *)1);
|
||||
evas_object_smart_callback_call(obj, "expand,state,changed", (void *)1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -474,7 +473,7 @@ _shrink_mode_set(Evas_Object *obj, Eina_Bool shrink)
|
|||
evas_object_show(wd->end);
|
||||
|
||||
wd->view_state = MULTIBUTTONENTRY_VIEW_SHRINK;
|
||||
evas_object_smart_callback_call(obj, "shrink,state,changed", (void *)0);
|
||||
evas_object_smart_callback_call(obj, "expand,state,changed", (void *)0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -514,7 +513,7 @@ _shrink_mode_set(Evas_Object *obj, Eina_Bool shrink)
|
|||
}
|
||||
|
||||
wd->view_state = MULTIBUTTONENTRY_VIEW_NONE;
|
||||
evas_object_smart_callback_call(obj, "shrink,state,changed", (void *)(long)wd->shrink);
|
||||
evas_object_smart_callback_call(obj, "expand,state,changed", (void *)(long)wd->shrink);
|
||||
}
|
||||
if (wd->view_state != MULTIBUTTONENTRY_VIEW_SHRINK)
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
* - @c "unfocused" - when multibuttonentry is unfocused.
|
||||
* - @c "expanded" - when multibuttonentry is expanded.
|
||||
* - @c "contracted" - when multibuttonentry is contracted.
|
||||
* - @c "shrink,state,changed" - when shrink mode state of multibuttonentry is changed.
|
||||
* - @c "expand,state,changed" - when shrink mode state of multibuttonentry is changed.
|
||||
*
|
||||
* Default text parts of the multibuttonentry widget that you can use for are:
|
||||
* @li "default" - A label of the multibuttonentry
|
||||
|
|
Loading…
Reference in New Issue