GNOME Bugzilla – Bug 762398
Allow Ctrl+Shift+Click in GTK_SELECTION_MULTIPLE to select additional ranges
Last modified: 2018-05-02 16:58:11 UTC
Created attachment 321773 [details] expected behavior expected behaviour: * shift+click to select a range of files * ctrl+click to add files to selection one by one * ctrl+shift+click to add a range of files to the selection. range starts from the last selected file to the clicked one. it can also deselect a range in case they are selected, just like what ctrl+click does with a single file GTK_TREE_VIEW with GTK_SELECTION_MULTIPLE behavior * shift+click: OK * ctrl+click: OK * ctrl+shift+click: works like ctrl+click, affects only single files instead of adding a range. See also the attached animated gif of what I want and this bug: https://bugzilla.xfce.org/show_bug.cgi?id=5333
Created attachment 321774 [details] What really happens
I don't think we'll change longstanding treeview selection behavior at this point.
@Matthias: That's too bad ... I don't think it should break anything, though. Maybe add this in GTK3 (if it isn't already)? I realize, this is not the right place, but could you tell me then instead, if there is any way to easily add this feature from a outside of GTK e.g. Thunar without completely rewriting a multiple-select-logic? Because, while GTK_SELECTION_MULTIPLE is being done, gtk_tree_view_get_path_at_pos (tree_view, event->x, event->y, &path, &column, NULL, NULL) doesn't seem to return a meaningful path (it returns NULL) which would be needed to set selections manually. Also I would need an anchor meaning the last selection in order to select all between. Maybee I'm just talking gibberish. I never programmed with GTK before, I just tried to find a quickfix for that Thunar/GTK-bug because I'm used to shift+ctrl+click from Windows.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/600.