forked from enlightenment/efl
elm theme - add clock freeze/thaw support
This commit is contained in:
parent
0f6ff82d2a
commit
7f02c57092
|
@ -492,6 +492,29 @@ group { name: "e/modules/clock/digital";
|
|||
DIGPRGS("s1")
|
||||
#undef DIGPRG
|
||||
#undef DIGPRGS
|
||||
program { signal: "e,state,freeze"; source: "e";
|
||||
script {
|
||||
new tim;
|
||||
|
||||
tim = get_int(tick_timer);
|
||||
if (tim) {
|
||||
cancel_timer(tim);
|
||||
set_int(tick_timer, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
program { signal: "e,state,thaw"; source: "e";
|
||||
script {
|
||||
new tim;
|
||||
|
||||
tim = get_int(tick_timer);
|
||||
if (tim) {
|
||||
cancel_timer(tim);
|
||||
set_int(tick_timer, 0);
|
||||
}
|
||||
clock_cb(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -605,14 +628,12 @@ group { name: "e/modules/clock/main";
|
|||
}
|
||||
}
|
||||
programs {
|
||||
program {
|
||||
signal: "load"; source: "";
|
||||
program { signal: "load"; source: "";
|
||||
script {
|
||||
clock_cb(0);
|
||||
}
|
||||
}
|
||||
program {
|
||||
signal: "e,state,seconds,on"; source: "e";
|
||||
program { signal: "e,state,seconds,on"; source: "e";
|
||||
action: STATE_SET "default" 0.0;
|
||||
target: "seconds";
|
||||
after: "sec2";
|
||||
|
@ -630,8 +651,7 @@ group { name: "e/modules/clock/main";
|
|||
clock_cb(0);
|
||||
}
|
||||
}
|
||||
program {
|
||||
signal: "e,state,seconds,off"; source: "e";
|
||||
program { signal: "e,state,seconds,off"; source: "e";
|
||||
action: STATE_SET "hidden" 0.0;
|
||||
target: "seconds";
|
||||
after: "sec3";
|
||||
|
@ -649,6 +669,29 @@ group { name: "e/modules/clock/main";
|
|||
clock_cb(0);
|
||||
}
|
||||
}
|
||||
program { signal: "e,state,freeze"; source: "e";
|
||||
script {
|
||||
new tim;
|
||||
|
||||
tim = get_int(tick_timer);
|
||||
if (tim) {
|
||||
cancel_timer(tim);
|
||||
set_int(tick_timer, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
program { signal: "e,state,thaw"; source: "e";
|
||||
script {
|
||||
new tim;
|
||||
|
||||
tim = get_int(tick_timer);
|
||||
if (tim) {
|
||||
cancel_timer(tim);
|
||||
set_int(tick_timer, 0);
|
||||
}
|
||||
clock_cb(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue