diff options
author | Joanmarie Diggs <jdiggs@igalia.com> | 2018-04-20 15:28:07 -0400 |
---|---|---|
committer | raveit65 <raveit65@users.noreply.github.com> | 2018-04-24 08:34:55 +0200 |
commit | 3c3f62d17186cee0690b87917c6133f6148e3ca8 (patch) | |
tree | eb5b20694fda523ce593e869c6d31f92cd5ebc5c /libcaja-extension/caja-extension-i18n.h | |
parent | 9f8d9508befb36dfe07f913b7e586bf59cf6c41a (diff) | |
download | caja-3c3f62d17186cee0690b87917c6133f6148e3ca8.tar.bz2 caja-3c3f62d17186cee0690b87917c6133f6148e3ca8.tar.xz |
Emit accessible-name-change signal for icons only when icons are renamed
caja_icon_canvas_item_set_property was emitting accessible-name-change
signals whenever the PROP_EDITABLE_TEXT was being set for an icon. This
method is called by caja_icon_container_request_update_all when the icon
view is first loaded. Thus irrelevant events are being emitted (the name
of each icon didn't change, as far as the user is concerned). Furthermore,
this floods assistive technologies any time the user opens a folder with
a large number of files.
Moving the notification out of caja_icon_canvas_item_set_property and
into end_renaming_mode (where ICON_TEXT_CHANGED is also emitted) solves
the problem of floods of irrelevant notifications while still emitting
the signal when the name actually changes.
Diffstat (limited to 'libcaja-extension/caja-extension-i18n.h')
0 files changed, 0 insertions, 0 deletions