Skip to content

Commit 1bb3815

Browse files
author
Valentin Villenave
committed
Accessibility: use proper names for Printers icon view items
1 parent b0d7ced commit 1bb3815

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

system-config-printer.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,12 @@ def dests_iconview_drag_data_get (self, iconview, context,
736736
else:
737737
nonfatalException ()
738738

739+
def dests_iconview_set_accessible_names (self):
740+
iv_acc = self.dests_iconview.get_accessible ()
741+
for i in range (iv_acc.get_n_accessible_children ()):
742+
acc = iv_acc.ref_accessible_child (i)
743+
acc.set_name (acc.get_text (0, -1))
744+
739745
def on_server_settings_activate (self, menuitem):
740746
try:
741747
self.serverSettings = ServerSettings (host=self.connect_server,
@@ -1125,6 +1131,7 @@ def maybe_select (model, path, iter, UNUSED):
11251131
self.btnStartService.set_tooltip_text (tooltip_text)
11261132

11271133
self.dests_notebook.set_current_page (page)
1134+
self.dests_iconview_set_accessible_names ()
11281135

11291136
# Connect to Server
11301137

0 commit comments

Comments
 (0)