network: Improve accessibility

Add accessible names for a number of switches and buttons which
don't have meaningful representation in orca, otherwise.

https://bugzilla.gnome.org/show_bug.cgi?id=693552
This commit is contained in:
Matthias Clasen 2013-02-11 18:22:11 -05:00
parent 1541274568
commit cea45f707c
7 changed files with 47 additions and 0 deletions

View file

@ -334,6 +334,7 @@ add_row (NetDeviceEthernet *device, NMConnection *connection)
gtk_container_add (GTK_CONTAINER (widget), image);
gtk_widget_set_halign (widget, GTK_ALIGN_CENTER);
gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
atk_object_set_name (gtk_widget_get_accessible (widget), _("Options…"));
gtk_box_pack_start (GTK_BOX (box), widget, FALSE, TRUE, 0);
g_object_set_data (G_OBJECT (row), "edit", widget);
g_object_set_data (G_OBJECT (widget), "row", row);

View file

@ -1536,6 +1536,7 @@ make_row (GtkSizeGroup *rows,
gtk_container_add (GTK_CONTAINER (widget), image);
gtk_widget_set_halign (widget, GTK_ALIGN_CENTER);
gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
atk_object_set_name (gtk_widget_get_accessible (widget), _("Options…"));
gtk_box_pack_start (GTK_BOX (row), widget, FALSE, FALSE, 0);
gtk_size_group_add_widget (spinner_button_group, widget);
g_object_set_data (G_OBJECT (row), "edit", widget);

View file

@ -195,6 +195,11 @@
<property name="receives_default">True</property>
<property name="halign">end</property>
<property name="image">image1</property>
<child internal-child="accessible">
<object class="AtkObject" id="details_button-accessible">
<property name="accessible-name" translatable="yes">Options…</property>
</object>
</child>
<style>
<class name="image-button"/>
</style>

View file

@ -266,6 +266,11 @@
<property name="xalign">1</property>
<property name="invisible_char_set">True</property>
<property name="adjustment">adjustment_proxy_port_http</property>
<child internal-child="accessible">
<object class="AtkObject" id="spinbutton_proxy_http-accessible">
<property name="accessible-name" translatable="yes">HTTP proxy port</property>
</object>
</child>
</object>
<packing>
<property name="left_attach">2</property>
@ -338,6 +343,11 @@
<property name="xalign">1</property>
<property name="invisible_char_set">True</property>
<property name="adjustment">adjustment_proxy_port_https</property>
<child internal-child="accessible">
<object class="AtkObject" id="spinbutton_proxy_https-accessible">
<property name="accessible-name" translatable="yes">HTTPS proxy port</property>
</object>
</child>
</object>
<packing>
<property name="left_attach">2</property>
@ -354,6 +364,11 @@
<property name="xalign">1</property>
<property name="invisible_char_set">True</property>
<property name="adjustment">adjustment_proxy_port_ftp</property>
<child internal-child="accessible">
<object class="AtkObject" id="spinbutton_proxy_ftp-accessible">
<property name="accessible-name" translatable="yes">FTP proxy port</property>
</object>
</child>
</object>
<packing>
<property name="left_attach">2</property>
@ -370,6 +385,11 @@
<property name="xalign">1</property>
<property name="invisible_char_set">True</property>
<property name="adjustment">adjustment_proxy_port_socks</property>
<child internal-child="accessible">
<object class="AtkObject" id="spinbutton_proxy_socks-accessible">
<property name="accessible-name" translatable="yes">Socks proxy port</property>
</object>
</child>
</object>
<packing>
<property name="left_attach">2</property>

View file

@ -272,6 +272,11 @@
<property name="can_focus">True</property>
<property name="halign">end</property>
<property name="valign">center</property>
<child internal-child="accessible">
<object class="AtkObject" id="device_off_switch-accessible">
<property name="accessible-name" translatable="yes">Turn device off</property>
</object>
</child>
</object>
<packing>
<property name="left_attach">2</property>

View file

@ -285,6 +285,11 @@
<property name="can_focus">True</property>
<property name="halign">end</property>
<property name="valign">center</property>
<child internal-child="accessible">
<object class="AtkObject" id="device_off_switch-accessible">
<property name="accessible-name" translatable="yes">Turn VPN connection off</property>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
@ -333,6 +338,11 @@
<property name="icon_size">1</property>
</object>
</child>
<child internal-child="accessible">
<object class="AtkObject" id="button_options-accessible">
<property name="accessible-name" translatable="yes">Options…</property>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>

View file

@ -1684,6 +1684,11 @@ here</property>
<property name="halign">end</property>
<property name="valign">center</property>
<property name="hexpand">True</property>
<child internal-child="accessible">
<object class="AtkObject" id="device_off_switch-accessible">
<property name="accessible-name" translatable="yes">Turn Wi-Fi off</property>
</object>
</child>
</object>
<packing>
<property name="expand">True</property>