This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch reproducible-widget-previews
in repository efl.

View the commit online.

commit 12494e95d4070a32bde155e85fe815900651c9c4
Author: Ross Vandegrift <[email protected]>
AuthorDate: Thu Jun 4 21:23:36 2026 -0700

    make widget preview generation reproducible
    
    The doc target generates nice widget previews.  But some adapt to the current
    locale, and clock/calendar pick up the current time - making the build
    unreproducible.
    
    This patch ensures widget generation happens with fixed locales and times.
---
 doc/shot.sh                           | 8 ++++++++
 doc/widgets/widget_preview_calendar.c | 7 +++++++
 doc/widgets/widget_preview_clock.c    | 1 +
 3 files changed, 16 insertions(+)

diff --git a/doc/shot.sh b/doc/shot.sh
index b6d066f1e9..e133acddaf 100755
--- a/doc/shot.sh
+++ b/doc/shot.sh
@@ -14,6 +14,14 @@ export ILLUME_IND=0,0,240,32
 export ILLUME_STK=0,288,240,32
 export EFL_RUN_IN_TREE=1
 
+# efl-doc generates previews of widgets for the docs, but they can vary
+# depending on locale and time zone. Make them fixed so the previews are
+# reproducible.
+export LANG=C
+export LANGUAGE=C
+export LC_ALL=C
+export TZ=/usr/share/zoneinfo/Etc/UTC
+
 mkdir -p $DIR || true
 
 exec $@
diff --git a/doc/widgets/widget_preview_calendar.c b/doc/widgets/widget_preview_calendar.c
index 5b5625aede..4de82234e1 100644
--- a/doc/widgets/widget_preview_calendar.c
+++ b/doc/widgets/widget_preview_calendar.c
@@ -3,6 +3,13 @@
 Evas_Object *o = elm_calendar_add(win);
 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
 elm_win_resize_object_add(win, o);
+
+Efl_Time t = {};
+t.tm_year = 125;
+t.tm_mon = 5;
+t.tm_mday = 23;
+
+elm_calendar_selected_time_set(o, &t);
 evas_object_show(o);
 
 #include "widget_preview_tmpl_foot.c"
diff --git a/doc/widgets/widget_preview_clock.c b/doc/widgets/widget_preview_clock.c
index 9a6e7fb4d6..0f855783dd 100644
--- a/doc/widgets/widget_preview_clock.c
+++ b/doc/widgets/widget_preview_clock.c
@@ -3,6 +3,7 @@
 Evas_Object *o = elm_clock_add(win);
 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
 elm_win_resize_object_add(win, o);
+elm_clock_time_set(o, 5, 23, 17);
 evas_object_show(o);
 
 #include "widget_preview_tmpl_foot.c"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to