[gimp] app: exclusive visibility in item group only toggles within the group.



commit 7c171b4df9b3de08a2d8ba8cc0bccbc09b3406e4
Author: Jehan <jehan girinstud io>
Date:   Sat Jun 24 22:45:16 2017 +0200

    app: exclusive visibility in item group only toggles within the group.
    
    Shift-click should actually toggle only within a given group. The new
    capability of toggling only a sub-item, brought by commit 970e9ac is
    still feasible in 2 steps: first toggling the parent (item group), then
    the desired child.
    It brings now a third possibility with exclusive toggle among many
    children items, without touching other groups and top-level items.

 app/core/gimpitem-exclusive.c |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/app/core/gimpitem-exclusive.c b/app/core/gimpitem-exclusive.c
index 72251c8..9acc7c2 100644
--- a/app/core/gimpitem-exclusive.c
+++ b/app/core/gimpitem-exclusive.c
@@ -255,14 +255,10 @@ gimp_item_exclusive_get_lists (GimpItem     *item,
 
       if (other != item)
         {
-          /* we are only interested in toplevel items that are not
-           * item's ancestor and same level items.
+          /* we are only interested in same level items.
            */
-          if ((! gimp_viewable_get_parent (GIMP_VIEWABLE (other)) ||
-               gimp_viewable_get_parent (GIMP_VIEWABLE (other)) ==
-               gimp_viewable_get_parent (GIMP_VIEWABLE (item))) &&
-              ! gimp_viewable_is_ancestor (GIMP_VIEWABLE (other),
-                                           GIMP_VIEWABLE (item)))
+          if (gimp_viewable_get_parent (GIMP_VIEWABLE (other)) ==
+              gimp_viewable_get_parent (GIMP_VIEWABLE (item)))
             {
               gboolean value;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]