elm_progressbar: show status when unit_format_func is set
authorSungtaek Hong <sth253.hong@samsung.com>
Tue, 20 Sep 2016 23:07:18 +0000 (16:07 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 20 Sep 2016 23:07:21 +0000 (16:07 -0700)
commit03882d558824f657f5c5a54fcd2d632eafeafd87
tree9079c745d794763a8c129b3309174d825c58f24e
parent2cc7be3743890b3c25ebf69a9ee4aa839d366827
elm_progressbar: show status when unit_format_func is set

Summary:
 - elm,state,units,visible signal is emitted only when
   unit is set, but not when unit_format_func is set.
 - Since default unit has been set, this signal is emitted
   but signal will not be emitted after unit is set to NULL.

Test Plan:
 1. Create a progressbar.
 2. elm_progressbar_unit_format_set(obj, NULL);
 3. set unit_format_func by elm_progressbar_unit_format_function_set()
    and observe elm.text.status part visible.

Reviewers: Hermet, jpeg, cedric

Reviewed By: cedric

Subscribers: D-TAU, eunue, conr2d, cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4210

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/elementary/elm_progressbar.c