diff options
author | Valentin Villenave <[email protected]> | 2021-10-06 17:19:17 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-10-26 16:00:45 +0200 |
commit | 0679bd499006aa488dc5f11eb36987d216b19174 (patch) | |
tree | 3047817a75df54ee92cba8f808dc37eccd5837a9 /command | |
parent | 263c10ff540dc499e705df9b25a17b3a6af18e45 (diff) | |
download | mate-applets-0679bd499006aa488dc5f11eb36987d216b19174.tar.bz2 mate-applets-0679bd499006aa488dc5f11eb36987d216b19174.tar.xz |
Mate Command applet: add accessible Atk object with proper label.
Diffstat (limited to 'command')
-rw-r--r-- | command/src/command.c | 9 |
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); |