[gnome-control-center] power: Make the automatic suspend row accessible

commit 83a55046ca3eeb59cede72117c5aebc2a589e25d
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Mar 25 12:19:01 2015 -0400

    power: Make the automatic suspend row accessible
    Orca was not reading this row at all - since the row is
    clickable (role 'push button'), orca expects it to have
    an accessible name. So, lets set one.

 panels/power/cc-power-panel.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c
index 500649a..aa30653 100644
--- a/panels/power/cc-power-panel.c
+++ b/panels/power/cc-power-panel.c
@@ -1993,6 +1993,7 @@ add_automatic_suspend_section (CcPowerPanel *self)
   box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 50);
   gtk_container_add (GTK_CONTAINER (row), box);
   label = gtk_label_new (_("_Automatic suspend"));
+  atk_object_set_name (ATK_OBJECT (gtk_widget_get_accessible (self->priv->automatic_suspend_row)), 
_("Automatic suspend"));
   gtk_widget_set_halign (label, GTK_ALIGN_START);
   gtk_label_set_use_underline (GTK_LABEL (label), TRUE);
   gtk_widget_set_margin_start (label, 20);

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]