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 71bd333f8fa916ddf13412516d0f157932d4ab03
Author: Alastair Poole <[email protected]>
AuthorDate: Sun May 24 18:41:04 2026 +0100

    forecasts: fix right-click on first add (gadcon)
---
 src/e_mod_main.c | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/src/e_mod_main.c b/src/e_mod_main.c
index fd9d78a..5955b80 100644
--- a/src/e_mod_main.c
+++ b/src/e_mod_main.c
@@ -330,10 +330,25 @@ _forecasts_cb_mouse_down(void *data, Evas *e EINA_UNUSED,
 }
 
 static void
-_forecasts_menu_cb_post(void *data EINA_UNUSED, E_Menu *m EINA_UNUSED)
+_forecasts_menu_cb_post(void *data, E_Menu *m)
 {
+   Instance *inst = data;
+
    if (!forecasts_config->menu)
      return;
+
+   if (inst && inst->gcc && (inst->gcc->menu == m))
+     {
+        if (inst->gcc->gadcon)
+          {
+             e_gadcon_locked_set(inst->gcc->gadcon, 0);
+             if (inst->gcc->gadcon->shelf &&
+                 (inst->gcc->gadcon->shelf->menu == m))
+               inst->gcc->gadcon->shelf->menu = NULL;
+          }
+        inst->gcc->menu = NULL;
+     }
+
    e_object_del(E_OBJECT(forecasts_config->menu));
    forecasts_config->menu = NULL;
 }

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

Reply via email to