forked from enlightenment/efl
elementary/label - elm_label_slide_set() -> elm_label_slide_mode_set()
SVN revision: 82170
This commit is contained in:
parent
724a0b0f2d
commit
63e0a42a38
|
@ -106,9 +106,9 @@ _change_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__)
|
|||
{
|
||||
Evas_Object *lb = (Evas_Object *)data;
|
||||
double val = elm_slider_value_get(obj);
|
||||
elm_label_slide_set(lb, EINA_FALSE);
|
||||
elm_label_slide_mode_set(lb, ELM_LABEL_SLIDE_MODE_NONE);
|
||||
elm_label_slide_duration_set(lb, val);
|
||||
elm_label_slide_set(lb, EINA_TRUE);
|
||||
elm_label_slide_mode_set(lb, ELM_LABEL_SLIDE_MODE_ALWAYS);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -128,7 +128,7 @@ test_label2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
|
|||
/* Test Label Ellipsis */
|
||||
lb = elm_label_add(win);
|
||||
elm_object_text_set(lb, "Test Label Ellipsis:");
|
||||
elm_label_slide_set(lb, EINA_TRUE);
|
||||
elm_label_slide_mode_set(lb, ELM_LABEL_SLIDE_MODE_ALWAYS);
|
||||
elm_grid_pack(gd, lb, 5, 5, 90, 10);
|
||||
evas_object_show(lb);
|
||||
|
||||
|
@ -151,7 +151,7 @@ test_label2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
|
|||
/* Test Label Slide */
|
||||
lb = elm_label_add(win);
|
||||
elm_object_text_set(lb, "Test Label Slide:");
|
||||
elm_label_slide_set(lb, EINA_TRUE);
|
||||
elm_label_slide_mode_set(lb, ELM_LABEL_SLIDE_MODE_ALWAYS);
|
||||
elm_grid_pack(gd, lb, 5, 30, 90, 10);
|
||||
evas_object_show(lb);
|
||||
|
||||
|
@ -169,7 +169,7 @@ test_label2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
|
|||
"This only works with the themes \"slide_short\", "
|
||||
"\"slide_long\" and \"slide_bounce\"."
|
||||
);
|
||||
elm_label_slide_set(lb, EINA_TRUE);
|
||||
elm_label_slide_mode_set(lb, ELM_LABEL_SLIDE_MODE_ALWAYS);
|
||||
elm_grid_pack(gd, lb, 5, 40, 90, 10);
|
||||
evas_object_show(lb);
|
||||
|
||||
|
|
Loading…
Reference in New Issue