[nautilus/wip/ernestask/a-walking-contradiction-partly-truth-and-partly-fiction] list-view: Fix star-clicking



commit cc260bc26c33b4c7813e80bc5c4d059246b222ef
Author: Ernestas Kulik <ekulik redhat com>
Date:   Thu Nov 22 12:29:56 2018 +0100

    list-view: Fix star-clicking
    
    Before 3a7ebc2b769fa60ade93cb7ffa3419012c12f3ba, the code would use a
    zero-based counter for clicks, which does not work with
    GtkGestureMultiPress. The logic for checking if the click is “simple”
    makes checking the click count redundant.

 src/nautilus-list-view.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-list-view.c b/src/nautilus-list-view.c
index b118c785a..9ea98383d 100644
--- a/src/nautilus-list-view.c
+++ b/src/nautilus-list-view.c
@@ -652,7 +652,7 @@ on_tree_view_multi_press_gesture_pressed (GtkGestureMultiPress *gesture,
                                                NULL,
                                                NULL));
 
-    if (is_simple_click && n_press <= 0 && on_star)
+    if (is_simple_click && on_star)
     {
         on_star_cell_renderer_clicked (path, view);
     }


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