summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2016-09-21 10:41:58 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2016-09-21 10:45:12 +0200
commit1f00c9a26e1b9064ef38994761934a7ed85d9609 (patch)
treedbe81dc7bbd60d05c5393a225378bd1e5ba568e3
parent9079d2b575fad671ee85c7596830d08903bdcef5 (diff)
elm: progressbar: hide unit if unit_format_func is invalid
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.
-rw-r--r--src/lib/elementary/elm_progressbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_progressbar.c b/src/lib/elementary/elm_progressbar.c
index 57f33bb64a..9f92ca7ea5 100644
--- a/src/lib/elementary/elm_progressbar.c
+++ b/src/lib/elementary/elm_progressbar.c
@@ -573,7 +573,7 @@ elm_progressbar_unit_format_function_set(Elm_Progressbar *obj, progressbar_func_
573 sd->unit_format_func = func; 573 sd->unit_format_func = func;
574 sd->unit_format_free = free_func; 574 sd->unit_format_free = free_func;
575 sig = (func) ? "elm,state,units,visible" : "elm,state,units,hidden"; 575 sig = (func) ? "elm,state,units,visible" : "elm,state,units,hidden";
576 elm_layout_signal_emit(obj, "elm,state,units,visible", "elm"); 576 elm_layout_signal_emit(obj, sig, "elm");
577 edje_object_message_signal_process(wd->resize_obj); 577 edje_object_message_signal_process(wd->resize_obj);
578 578
579 _units_set(obj); 579 _units_set(obj);