summaryrefslogtreecommitdiff
path: root/netspeed
diff options
context:
space:
mode:
authorValentin Villenave <[email protected]>2021-10-07 09:26:12 +0200
committerraveit65 <[email protected]>2021-10-26 16:00:45 +0200
commitb684ac9df5e618090e7fed5df1d566f799e75515 (patch)
treefe769f0b1a62ad202b69ec677bea95a62781b29b /netspeed
parent94421e54d969473ab59e210a3c46805dbc05efa5 (diff)
downloadmate-applets-b684ac9df5e618090e7fed5df1d566f799e75515.tar.bz2
mate-applets-b684ac9df5e618090e7fed5df1d566f799e75515.tar.xz
Mate Netspeed applet: add accessible Atk object with proper label.
Diffstat (limited to 'netspeed')
-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;