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

git pushed a commit to branch master
in repository enlightenment-module-forecasts.

View the commit online.

commit 9142cb337abd68fff8d200215d0e2aaf9b5dcf29
Author: Alastair Poole <[email protected]>
AuthorDate: Mon May 25 22:25:10 2026 +0100

    forecasts: update whole UI when unit changes.
    
    Make this thing responsive.
---
 po/meson.build   |  1 +
 src/e_mod_main.c | 13 ++-----------
 2 files changed, 3 insertions(+), 11 deletions(-)

diff --git a/po/meson.build b/po/meson.build
index da87a00..ea2b5fb 100644
--- a/po/meson.build
+++ b/po/meson.build
@@ -6,6 +6,7 @@ i18n.gettext('forecasts',
              args: [
                '--keyword=N_',
                '--keyword=D_',
+               '--keyword=_forecasts_location_text_get:2',
                '--from-code=UTF-8',
                '--foreign-user'
              ])
diff --git a/src/e_mod_main.c b/src/e_mod_main.c
index 8072655..2ea2cf1 100644
--- a/src/e_mod_main.c
+++ b/src/e_mod_main.c
@@ -846,7 +846,7 @@ _forecasts_location_text_get(Config_Item *ci, const char *msgid, char *buf, size
              if (_forecasts_setlocale_try(LC_MESSAGES, locale))
                {
                   translated = dgettext(PACKAGE, msgid);
-                  if (translated)
+                  if (translated && strcmp(translated, msgid))
                     snprintf(buf, len, "%s", translated);
                }
              if (old_locale_dup)
@@ -1517,7 +1517,6 @@ void
 _forecasts_config_updated(Config_Item *ci)
 {
    Eina_List *l;
-   char buf[4096];
 
    if (!forecasts_config)
      return;
@@ -1538,15 +1537,7 @@ _forecasts_config_updated(Config_Item *ci)
         _forecasts_converter(inst);
 
         if (inst->popup) _forecasts_popup_destroy(inst);
-
-        snprintf(buf, sizeof(buf), "%d°%c", inst->condition.temp, inst->units.temp);
-        edje_object_part_text_set(inst->forecasts->forecasts_obj, "e.text.temp", buf);
-        _forecasts_clock_update(inst);
-
-        if (!inst->ci->show_text)
-          edje_object_signal_emit(inst->forecasts_obj, "e,state,description,hide", "e");
-        else
-          edje_object_signal_emit(inst->forecasts_obj, "e,state,description,show", "e");
+        _forecasts_display_set(inst, 1);
 
         if (area_changed)
           _forecasts_cb_check(inst);

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

Reply via email to