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



commit 0fb67876e2d6c9c937232bdbcccb8c608d186fb0
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.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=746756

 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 ac52ad0..353a0e6 100644
--- a/panels/power/cc-power-panel.c
+++ b/panels/power/cc-power-panel.c
@@ -1841,6 +1841,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_misc_set_alignment (GTK_MISC (label), 0, 0.5);
   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]