[nautilus/wip/ernestask/a-walking-contradiction-partly-truth-and-partly-fiction] list-view: Fix clicking stars
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/ernestask/a-walking-contradiction-partly-truth-and-partly-fiction] list-view: Fix clicking stars
- Date: Thu, 22 Nov 2018 11:34:23 +0000 (UTC)
commit 7b7ab44dad1be1e959370711ccb6cb9cf2bc1600
Author: Ernestas Kulik <ekulik redhat com>
Date: Thu Nov 22 12:29:56 2018 +0100
list-view: Fix clicking stars
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]