app, desktop: fix the Alt-click exclusive visibility case.

We want it to work whatever the level in the item tree. We only care
about whether the items are selected or not.

Also fixing the AppStream release tag for the description of this
feature.
This commit is contained in:
Jehan 2022-02-15 21:28:10 +01:00
parent 50496b8fb1
commit 05d226c343
2 changed files with 6 additions and 4 deletions

View file

@ -215,9 +215,11 @@ gimp_item_exclusive_get_lists (GimpItem *item,
/* Do we care only about selected drawables? */
(! only_selected || gimp_image_is_selected_drawable (image,
GIMP_DRAWABLE (other))) &&
/* We are only interested in same level items. */
gimp_viewable_get_parent (GIMP_VIEWABLE (other)) ==
gimp_viewable_get_parent (GIMP_VIEWABLE (item)))
/* We are only interested in same level items unless
* @only_selected is TRUE. */
(only_selected ||
gimp_viewable_get_parent (GIMP_VIEWABLE (other)) ==
gimp_viewable_get_parent (GIMP_VIEWABLE (item))))
{
if (is_enabled (other))
*on = g_list_prepend (*on, other);

View file

@ -87,7 +87,7 @@
Lock icons in item dockables (Layers, Channels, Paths) moved next to the visibility (eye) icon
</_li>
<_li>
Alt-click on visibility and lock icons in item dockables massively toggles on same level
Alt-click on visibility and lock icons in item dockables massively toggles visibility and locks among selected items
</_li>
<_li>
New checkbox to enable or disable dynamics in paint tools' options (replacing "Dynamics Off" dynamics)