GtkFileChooserDialog: give a accessible name the GtkFileChooserWidget

Using pyatspi.utils.findDescendant() on the GtkFileChooserDialog using
just a role would return the Dialog, as they have the same "file
chooser" role.  So we have to give it a name to distinguish between
them.
This commit is contained in:
Yann Dirson 2020-10-31 12:20:33 +01:00
parent 9673b5a749
commit 50889d7629

View File

@ -27,6 +27,11 @@
<signal name="file-activated" handler="file_chooser_widget_file_activated" swapped="no"/>
<signal name="response-requested" handler="file_chooser_widget_response_requested" swapped="no"/>
<signal name="selection-changed" handler="file_chooser_widget_selection_changed" swapped="no"/>
<child internal-child="accessible">
<object class="AtkObject">
<property name="AtkObject::accessible-name" translatable="yes">File Chooser Widget</property>
</object>
</child>
</object>
<packing>
<property name="expand">1</property>