diff options
author | Valentin Villenave <[email protected]> | 2021-10-07 09:18:37 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-10-26 16:00:45 +0200 |
commit | 94421e54d969473ab59e210a3c46805dbc05efa5 (patch) | |
tree | ba1e01e92cfef6c2b2e21c211a27df2e3336b6f9 /multiload | |
parent | 47bd32bbfdf3ad2ed38e885232f1cbcac80154b6 (diff) | |
download | mate-applets-94421e54d969473ab59e210a3c46805dbc05efa5.tar.bz2 mate-applets-94421e54d969473ab59e210a3c46805dbc05efa5.tar.xz |
Mate Multiload applet: add accessible Atk object with proper label.
Diffstat (limited to 'multiload')
-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)); |