elm: progressbar: hide unit if unit_format_func is invalid
authorStefan Schmidt <stefan@osg.samsung.com>
Wed, 21 Sep 2016 08:41:58 +0000 (10:41 +0200)
committerStefan Schmidt <stefan@osg.samsung.com>
Wed, 21 Sep 2016 08:45:12 +0000 (10:45 +0200)
In commit 03882d558824f657f5c5a54fcd2d632eafeafd87 this was introduced but in
the end the visible signal was send in all cases. This looks like an oversight
to me. Fixed.

src/lib/elementary/elm_progressbar.c

index 57f33bb..9f92ca7 100644 (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);