summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Villenave <[email protected]>2021-10-07 09:26:12 +0200
committerraveit65 <[email protected]>2021-11-09 22:38:19 +0100
commite36906126f2f2205be0114f5a570668b99684401 (patch)
treec748d696278594b62c9ab35d1c1840698fc56d42
parent625ab2d4999fecc5f9b18dd3bb09ead70ea2b5ec (diff)
downloadmate-applets-e36906126f2f2205be0114f5a570668b99684401.tar.bz2
mate-applets-e36906126f2f2205be0114f5a570668b99684401.tar.xz
Mate Netspeed applet: add accessible Atk object with proper label.
-rw-r--r--netspeed/src/netspeed.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/netspeed/src/netspeed.c b/netspeed/src/netspeed.c
index 22e2331b..bb428765 100644
--- a/netspeed/src/netspeed.c
+++ b/netspeed/src/netspeed.c
@@ -1568,6 +1568,7 @@ netspeed_applet_factory (MatePanelApplet *applet,
int i;
GtkWidget *spacer, *spacer_box;
GtkActionGroup *action_group;
+ AtkObject *atk_obj;
char *tmp;
if (strcmp (iid, "NetspeedApplet"))
@@ -1748,6 +1749,14 @@ netspeed_applet_factory (MatePanelApplet *applet,
NETSPEED_RESOURCE_PATH "netspeed-menu.xml",
action_group);
+ atk_obj = gtk_widget_get_accessible (GTK_WIDGET (applet));
+
+ if (GTK_IS_ACCESSIBLE (atk_obj)) {
+ atk_object_set_name (atk_obj, _("MATE Netspeed"));
+ atk_object_set_description (atk_obj,
+ _("A little applet that displays some information on the traffic on the specified network device"));
+ }
+
g_object_unref (action_group);
return TRUE;