diff options
author | Valentin Villenave <[email protected]> | 2021-10-07 09:18:37 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-11-09 22:38:09 +0100 |
commit | 625ab2d4999fecc5f9b18dd3bb09ead70ea2b5ec (patch) | |
tree | 657d15548a95ceb1f8e4ca8027a56a9b1adc6224 | |
parent | 9584cccf82091c67115024ec5640c43e8307ef0e (diff) | |
download | mate-applets-625ab2d4999fecc5f9b18dd3bb09ead70ea2b5ec.tar.bz2 mate-applets-625ab2d4999fecc5f9b18dd3bb09ead70ea2b5ec.tar.xz |
Mate Multiload applet: add accessible Atk object with proper label.
-rw-r--r-- | multiload/src/main.c | 11 |
1 files changed, 11 insertions, 0 deletions
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)); |