summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Villenave <[email protected]>2021-10-06 17:19:17 +0200
committerraveit65 <[email protected]>2021-11-09 22:37:45 +0100
commit7bb2a22c9c8b9ec4aec14fd9bd534de075658cb9 (patch)
treeec159abaefb1850cd9e672ecf2d2ea9e0c3b8e9b
parent27032749c8ea2850bf6313fbd81578ecec8fcbbe (diff)
downloadmate-applets-7bb2a22c9c8b9ec4aec14fd9bd534de075658cb9.tar.bz2
mate-applets-7bb2a22c9c8b9ec4aec14fd9bd534de075658cb9.tar.xz
Mate Command applet: add accessible Atk object with proper label.
-rw-r--r--command/src/command.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/command/src/command.c b/command/src/command.c
index 2412d123..120aa9c8 100644
--- a/command/src/command.c
+++ b/command/src/command.c
@@ -407,6 +407,7 @@ static gboolean
command_applet_fill (MatePanelApplet* applet)
{
CommandApplet *command_applet;
+ AtkObject *atk_widget;
g_set_application_name (_("Command Applet"));
gtk_window_set_default_icon_name (APPLET_ICON);
@@ -464,6 +465,14 @@ command_applet_fill (MatePanelApplet* applet)
"visible",
G_SETTINGS_BIND_DEFAULT);
+ atk_widget = gtk_widget_get_accessible (command_applet->applet);
+ if (GTK_IS_ACCESSIBLE (atk_widget)) {
+ atk_object_set_name (atk_widget,
+ _("Command applet"));
+ atk_object_set_description (atk_widget,
+ _("Shows the output of a command"));
+ }
+
/* set up context menu */
GtkActionGroup *action_group = gtk_action_group_new ("Command Applet Actions");
gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE);