Summary:
When developers customize theme for making different type of sliding label,
it would be better to send a duration based on whole text.
[The whole text width - label object's w] is only useful for short, bounce
type sliding.
Test Plan: N/A
Reviewers: raster, tasn, herdsman, cedric
Reviewed By: cedric
Subscribers: minkyu, akanad, z-wony, Blackmole, jpeg
Differential Revision: https://phab.enlightenment.org/D4255
Change-Id: I92e0a4bca43e456b92cba9654a13b59ac138a907
// calculate speed or duration
if (!strcmp(elm_object_style_get(obj), "slide_long"))
w = tb_w + w;
- else // slide_short or slide_bounce
+ else if (!strcmp(elm_object_style_get(obj), "slide_short") ||
+ !strcmp(elm_object_style_get(obj), "slide_bounce")) // slide_short or slide_bounce
w = tb_w - w;
+ else
+ w = tb_w;
+
if (sd->use_slide_speed)
{
if (sd->slide_speed <= 0) sd->slide_speed = 1;