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

git pushed a commit to branch master
in repository enlightenment.

View the commit online.

commit cdfe556e4e06ba79ead6bfe94ab078537cf18e61
Author: [email protected] <[email protected]>
AuthorDate: Sat Mar 7 12:15:22 2026 -0700

    feat: populate NetworkManager gadget tooltip with connection details
    
    Set the gadget tooltip label to display the active WiFi SSID when
    connected to WiFi, or the ethernet interface name when connected via
    Ethernet. This integrates with the new hover tooltip UI added to the
    ConnMan theme, showing network details on mouse hover.
    
    The label logic prioritizes SSID over interface name and uses a
    localized fallback ("Wired") when the interface name is unavailable.
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
---
 src/modules/networkmanager/e_mod_main.c | 22 ++++++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)

diff --git a/src/modules/networkmanager/e_mod_main.c b/src/modules/networkmanager/e_mod_main.c
index 5d9e31d5b..4785d4925 100644
--- a/src/modules/networkmanager/e_mod_main.c
+++ b/src/modules/networkmanager/e_mod_main.c
@@ -482,10 +482,24 @@ _enm_mod_manager_update_inst(E_NM_Module_Context *ctxt EINA_UNUSED,
    snprintf(buf, sizeof(buf), "e,changed,technology,%s", typestr);
    edje_object_signal_emit(o, buf, "e");
 
-   DBG("state=%d (theme=%d) strength=%u active_ap=%s ip=%s",
-       state, theme_state, strength,
-       nm ? (nm->active_ap_path ?: "(null)") : "no-nm",
-       nm ? (nm->ip_address ?: "(null)") : "no-nm");
+   /* Set hover label text — shows SSID or interface name on mouse hover */
+   if (nm && active_ap && active_ap->ssid)
+     edje_object_part_text_set(o, "e.text.label", active_ap->ssid);
+   else if (nm && nm->active_conn_type == NM_DEVICE_TYPE_ETHERNET)
+     {
+        struct NM_Device *dev;
+        EINA_INLIST_FOREACH(nm->devices, dev)
+          {
+             if (dev->type == NM_DEVICE_TYPE_ETHERNET && dev->state >= 100)
+               {
+                  edje_object_part_text_set(o, "e.text.label",
+                                            dev->interface ?: _("Wired"));
+                  break;
+               }
+          }
+     }
+   else
+     edje_object_part_text_set(o, "e.text.label", "");
 }
 
 void

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

Reply via email to