From 0679bd499006aa488dc5f11eb36987d216b19174 Mon Sep 17 00:00:00 2001 From: Valentin Villenave Date: Wed, 6 Oct 2021 17:19:17 +0200 Subject: Mate Command applet: add accessible Atk object with proper label. --- command/src/command.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'command/src') 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); -- cgit v1.2.1