forked from enlightenment/enlightenment
fix strength hiding, make it simpler and bit faster.
SVN revision: 44880
This commit is contained in:
parent
f435c770e4
commit
2384854350
|
@ -7458,9 +7458,9 @@ collections { /* begin the collection of edje groups that are in this file */
|
||||||
snprintf(buf, sizeof(buf), "%d%%", strength);
|
snprintf(buf, sizeof(buf), "%d%%", strength);
|
||||||
set_text(PART:"strength", buf);
|
set_text(PART:"strength", buf);
|
||||||
set_drag(PART:"strength_gauge_knob", val, 0.0);
|
set_drag(PART:"strength_gauge_knob", val, 0.0);
|
||||||
emit("strength,show", "");
|
run_program(PROGRAM:"strength,show");
|
||||||
} else
|
} else
|
||||||
emit("strength,hide", "");
|
run_program(PROGRAM:"strength,hide");
|
||||||
|
|
||||||
if (strength >= 65)
|
if (strength >= 65)
|
||||||
run_program(PROGRAM:"strength,good");
|
run_program(PROGRAM:"strength,good");
|
||||||
|
@ -8008,7 +8008,6 @@ collections { /* begin the collection of edje groups that are in this file */
|
||||||
|
|
||||||
programs {
|
programs {
|
||||||
program { name: "strength,show";
|
program { name: "strength,show";
|
||||||
signal: "strength,show";
|
|
||||||
action: STATE_SET "default" 0.0;
|
action: STATE_SET "default" 0.0;
|
||||||
target: "strength";
|
target: "strength";
|
||||||
target: "strength_gauge_bg";
|
target: "strength_gauge_bg";
|
||||||
|
@ -8017,7 +8016,6 @@ collections { /* begin the collection of edje groups that are in this file */
|
||||||
target: "strength_gauge_fill";
|
target: "strength_gauge_fill";
|
||||||
}
|
}
|
||||||
program { name: "strength,hide";
|
program { name: "strength,hide";
|
||||||
signal: "strength,show";
|
|
||||||
action: STATE_SET "hidden" 0.0;
|
action: STATE_SET "hidden" 0.0;
|
||||||
target: "strength";
|
target: "strength";
|
||||||
target: "strength_gauge_bg";
|
target: "strength_gauge_bg";
|
||||||
|
|
Loading…
Reference in New Issue