From 94421e54d969473ab59e210a3c46805dbc05efa5 Mon Sep 17 00:00:00 2001 From: Valentin Villenave Date: Thu, 7 Oct 2021 09:18:37 +0200 Subject: Mate Multiload applet: add accessible Atk object with proper label. --- multiload/src/main.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'multiload/src') diff --git a/multiload/src/main.c b/multiload/src/main.c index 3d88e6b0..eca780a5 100644 --- a/multiload/src/main.c +++ b/multiload/src/main.c @@ -483,6 +483,7 @@ multiload_applet_new(MatePanelApplet *applet, const gchar *iid, gpointer data) MultiloadApplet *ma; GSettings *lockdown_settings; GtkActionGroup *action_group; + AtkObject *atk_obj; context = gtk_widget_get_style_context (GTK_WIDGET (applet)); gtk_style_context_add_class (context, "multiload-applet"); @@ -544,6 +545,16 @@ multiload_applet_new(MatePanelApplet *applet, const gchar *iid, gpointer data) g_signal_connect (applet, "key_press_event", G_CALLBACK (multiload_key_press_event_cb), ma); + atk_obj = gtk_widget_get_accessible (GTK_WIDGET (applet)); + + if (GTK_IS_ACCESSIBLE (atk_obj)) { + atk_object_set_name (atk_obj, _("System Monitor")); + atk_object_set_description (atk_obj, + _("A system load monitor capable of displaying graphs " + "for CPU, ram, and swap space use, plus network " + "traffic.")); + } + multiload_applet_refresh (ma); gtk_widget_show(GTK_WIDGET(applet)); -- cgit v1.2.1