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



commit 28322e82991639146b0f72ecf5513d3cd4bfde36
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]