After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 145331 - can't unselect entry in nautilus list view (singleclick mode)
can't unselect entry in nautilus list view (singleclick mode)
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: File and Folder Operations
2.9.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 147252 150943 311840 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-07-02 23:14 UTC by mattux
Modified: 2005-07-29 20:30 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
CTRL + single click deselect fix (1.43 KB, patch)
2005-06-08 00:16 UTC, Mark S
none Details | Review
Fix deselect when ctrl+click version 2 (1.61 KB, patch)
2005-06-08 08:47 UTC, Mark S
none Details | Review
CTRL + single click deselect fix + double click fix (2.21 KB, patch)
2005-06-10 17:14 UTC, Mark S
none Details | Review
ctrl+single click patch version 3 (2.21 KB, patch)
2005-06-19 07:18 UTC, Mark S
none Details | Review

Description mattux 2004-07-02 23:14:52 UTC
Description of Problem:
When using nautilus list view, it's not possible
to unselect an entry with CTRL+"Left Mouse Button" 
which has formerly been selected with CTRL+"Left
Mouse Button". You have to use CTRL+R to get the
(all) entries deselected.

This only happens when nautilus is in list view mode.

You have to select single click selection mode to
reproduce this.

Steps to reproduce the problem:
1. Select list view in nautilus
2. Select an entry with "CTRL+Mouse" 
3. Now try to unselect with "CTRL+Mouse" 

Actual Results:
Entry doesn't get unselected.

Expected Results:
Entry should get unselected

How often does this happen? 
always

Additional Information:
Nautilus 2.6.1
Comment 1 Vincent Noel 2004-08-02 19:49:11 UTC
*** Bug 147252 has been marked as a duplicate of this bug. ***
Comment 2 Vincent Noel 2004-08-26 15:30:28 UTC
*** Bug 150943 has been marked as a duplicate of this bug. ***
Comment 3 Vincent Noel 2004-08-26 18:24:54 UTC

*** This bug has been marked as a duplicate of 131226 ***
Comment 4 Vincent Noel 2004-10-06 14:52:41 UTC
This is actually not a dup of bug 131226 (see bug 147252). Re-opening. 
Comment 5 Kjartan Maraas 2005-01-11 23:32:51 UTC
This works for me in 2.8.x. Closing as fixed. Please reopen if it's still a
problem with 2.8.x or newer releases.
Comment 6 Dennis Möhlmann 2005-01-20 15:22:02 UTC
Bug has _not_ been fixed in gnome gnome-2.8.1-r1. It is not possible to
_deselect_ files in _singleclick_ mode _listviews_.

If you test this, please make sure it's exactly this mode as others do work
(i.e. deselecting singleclick iconview works).
Comment 7 Kjartan Maraas 2005-01-25 10:33:04 UTC
Thanks for setting me straight, tested on 2.9.x and it's very much still there.
Luis, probably not a blocker for 2.10.0, but still annoying for people using
single click mode.
Comment 8 Sebastien Bacher 2005-01-30 23:12:31 UTC
*** Bug 147252 has been marked as a duplicate of this bug. ***
Comment 9 Mark S 2005-06-08 00:16:01 UTC
Created attachment 47409 [details] [review]
CTRL + single click deselect fix

This is one of the most annoying bugs I have found, as alot of people use the
single click mode with list view. Here is a patch that fixes it, once and for
all!  After review, this should definitely get put into cvs in time for 2.12.
Comment 10 Mark S 2005-06-08 08:47:44 UTC
Created attachment 47418 [details] [review]
Fix deselect when ctrl+click version 2

Updated patch, fixed unselect logic
Comment 11 Mark S 2005-06-10 17:14:34 UTC
Created attachment 47560 [details] [review]
CTRL + single click deselect fix + double click fix

New patch with updated fixes, includes fix for ignoring double click when in
single click policy.
Comment 12 Mark S 2005-06-19 07:18:55 UTC
Created attachment 47975 [details] [review]
ctrl+single click patch version 3

ok, this one should really fix it...
Comment 13 Alexander Larsson 2005-06-20 10:11:59 UTC
That is not right. Ctrl-alt should unselect on release, so that dragging works
with ctrl.

I'm commiting this fix:
diff -u -p -r1.249 fm-list-view.c
--- src/file-manager/fm-list-view.c     17 Jun 2005 14:15:04 -0000      1.249
+++ src/file-manager/fm-list-view.c     20 Jun 2005 10:11:36 -0000
@@ -257,8 +257,7 @@ fm_list_view_did_not_drag (FMListView *v
                if ((event->button == 1 || event->button == 2)
                    && ((event->state & GDK_CONTROL_MASK) != 0 ||
                        (event->state & GDK_SHIFT_MASK) == 0)
-                   && view->details->row_selected_on_button_down
-                   && (click_policy_auto_value == NAUTILUS_CLICK_POLICY_DOUBLE)) {
+                   && view->details->row_selected_on_button_down) {
                        if (!button_event_modifies_selection (event)) {
                                gtk_tree_selection_unselect_all (selection);
                                gtk_tree_selection_select_path (selection, path);
Comment 14 Teppo Turtiainen 2005-07-29 20:30:31 UTC
*** Bug 311840 has been marked as a duplicate of this bug. ***