[gimp] app: fix layer double click (Layer Attributes dialog).



commit 117495323f29a01df9b6e681a02e64c430cde165
Author: Jehan <jehan girinstud io>
Date:   Fri Jul 31 17:39:35 2020 +0200

    app: fix layer double click (Layer Attributes dialog).
    
    This got *again* broken because of some obviously impossible code path
    (a same variable tested against 2 different values!). Anyway I tested
    again and it seems that all possible interactions in the item tree views
    are now correctly working though the whole button press code is a very
    complicated mess of possible variations and events.

 app/widgets/gimpcontainertreeview.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/widgets/gimpcontainertreeview.c b/app/widgets/gimpcontainertreeview.c
index 2a7447ab9d..9c42065ab7 100644
--- a/app/widgets/gimpcontainertreeview.c
+++ b/app/widgets/gimpcontainertreeview.c
@@ -1589,7 +1589,7 @@ gimp_container_tree_view_button (GtkWidget             *widget,
                           gtk_widget_error_bell (widget);
                         }
                     }
-                  else if (! toggled_cell && bevent->type == GDK_BUTTON_RELEASE &&
+                  else if (! toggled_cell &&
                            ! (bevent->state & gimp_get_all_modifiers_mask ()))
                     {
                       /* Only activate if we're not in a toggled cell


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