forked from enlightenment/efl
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:
parent
9079d2b575
commit
1f00c9a26e
|
@ -573,7 +573,7 @@ elm_progressbar_unit_format_function_set(Elm_Progressbar *obj, progressbar_func_
|
||||||
sd->unit_format_func = func;
|
sd->unit_format_func = func;
|
||||||
sd->unit_format_free = free_func;
|
sd->unit_format_free = free_func;
|
||||||
sig = (func) ? "elm,state,units,visible" : "elm,state,units,hidden";
|
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);
|
edje_object_message_signal_process(wd->resize_obj);
|
||||||
|
|
||||||
_units_set(obj);
|
_units_set(obj);
|
||||||
|
|
Loading…
Reference in New Issue