GNOME Bugzilla – Bug 363643
Shift+arrow expands selection, Shift+mouse doesn't
Last modified: 2010-06-29 07:40:32 UTC
If you select a file and delete it, the selection moves to the next file. Then if you then press shift+rightarrow, the selection expands (two files selected), as expected. However, if you delete a file and then shift+mouseclick, the selection does not expand. It moves the selection to the single file that was clicked. Shouldn't both operations have the same effect? This may be a Gtk bug/feature. Please re-classify if appropriate. It was originally reported as a gthumb bug (for its browser view) - see bug 315176. - Mike
Does this occur to list view or icon view ?
This only occurs in icon view. It works correctly in list view. - Mike
The post-delete selection mode is slightly different between list and icon views as well. In list view, the new selection background is solid blue. In icon view, the new selection is just marked with a dotted line around filename. Maybe that's a clue?
Also: gthumb shows the same difference of behaviour between the icon and list modes. That is, both post-delete selection-expansion methods work in list mode, but shift+mouseclick does not work in slide (=icon) mode. So something is odd in the shared libraries... - Mike
The problem is likely to be caused by the fact that shift+mouseclick does not really care about the current selection. It only considers the last item that was physically clicked. For example, try the following scenario: (1) 5 images A B C D and E in that order (2) click on A (3) control-click on C -> A and C should be selected (4) control-click on C again -> A is the only one selected (5) shift-click on E The final result is that C, D and E are selected. That does not make sense if shift-click is supposed to extend the selection but that makes sense if shift-click select the range from the last clicked item (in that case C even though it was not selected) to E. So there must be somewhere a variable that points to the last clicked item. This is the one that should be updated when a new item is automatically selected after a delete or move.
Just some clarify about comment 3, when a file is deleted the "normal" behaviour is what you see in icon view, i.e. not selecting any icon just givin it focus(the dotted line around) so if you press down arrow key the next icon is selected. In list view when you delete a file the next file is selected (instead of just giving it focus), this change was made when fixing bug 122618 . Maybe we could check if now gtktreeview has got the ability to give focus to a row and so revert the patch in bug 122618 and make a real fix so the icon view and list view have same behaviour.
Nelson, For rapid processing of image files it would be nicer if the icon view worked like the list view, so that after a delete the next file gets selected (not just the focus). In other words, I'd prefer it if the patch in bug 122618 wasn't reverted - instead, modify it to work in icon mode too. - Mike
*** Bug 405715 has been marked as a duplicate of this bug. ***
this should be fixed in trunk now
If fixed, could we mark the bug as fixed as well?
yes.