[network-manager-applet/ac/owe: 2/2] applet: make the tooltip of the status icon available for screen readers




commit 68f94d60cd7b31fe0e5ebc23f249a3393865b6b4
Author: Lukáš Tyrychtr <lukastyrychtr gmail com>
Date:   Mon Feb 28 09:58:47 2022 +0000

    applet: make the tooltip of the status icon available for screen readers
    
    https://gitlab.gnome.org/GNOME/network-manager-applet/-/merge_requests/109

 src/applet.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/applet.c b/src/applet.c
index 0d5e7493..bc7099f6 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -2795,8 +2795,10 @@ applet_update_icon (gpointer user_data)
        } else
                applet->tip = g_strdup (dev_tip);
 
-       if (applet->status_icon)
-               gtk_status_icon_set_tooltip_text (applet->status_icon, applet->tip);
+       if (applet->status_icon) {
+                       gtk_status_icon_set_tooltip_text (applet->status_icon, applet->tip);
+                       gtk_status_icon_set_title (applet->status_icon, applet->tip);
+       }
 
        return FALSE;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]