elm: progressbar: hide unit if unit_format_func is invalid

In commit 03882d5588 this was introduced but in
the end the visible signal was send in all cases. This looks like an oversight
to me. Fixed.
This commit is contained in:
Stefan Schmidt 2016-09-21 10:41:58 +02:00
parent 9079d2b575
commit 1f00c9a26e
1 changed files with 1 additions and 1 deletions

View File

@ -573,7 +573,7 @@ elm_progressbar_unit_format_function_set(Elm_Progressbar *obj, progressbar_func_
sd->unit_format_func = func;
sd->unit_format_free = free_func;
sig = (func) ? "elm,state,units,visible" : "elm,state,units,hidden";
elm_layout_signal_emit(obj, "elm,state,units,visible", "elm");
elm_layout_signal_emit(obj, sig, "elm");
edje_object_message_signal_process(wd->resize_obj);
_units_set(obj);