raster pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=7f02c5709298cfe915fe1dc0436d74932a11f6f1
commit 7f02c5709298cfe915fe1dc0436d74932a11f6f1 Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com> Date: Tue Apr 20 10:16:51 2021 +0100 elm theme - add clock freeze/thaw support --- data/elementary/themes/edc/clock.edc | 55 ++++++++++++++++++++++++++++++++---- 1 file changed, 49 insertions(+), 6 deletions(-) diff --git a/data/elementary/themes/edc/clock.edc b/data/elementary/themes/edc/clock.edc index 4639fe0d2a..9150871961 100644 --- a/data/elementary/themes/edc/clock.edc +++ b/data/elementary/themes/edc/clock.edc @@ -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); + } + } } } --