I LOVE ROX Filer, but I've had a long standing pet-peeve with it that's bitten me many times.
If no items are selected in a filer window, and you right-click on an item, the item is selected, and you're operating on it. That's fine. But if one or more other items are selected, and you right-click on an item that isn't selected, the clicked item is NOT selected, and the popup menu is generated to operate on the previously selected items.
This behavior has messed me up many times. The problem often occurs like this: I'm cleaning up a temporary folder. I right-click on a file and examine its properties. I elect not to delete it, and move on. The file is still selected, however. I see another file I definitely know I want to delete, so I right click on it and select delete. The problem is that the file I clicked on is not added to the selection, while the first file remains selected. What's worse, the popup menu is operating on the FIRST file, which is not the one I wanted to delete! And now it's gone. When I realize what happened, I curse, and go looking for my backups.
I've enclosed a very simple patch to fix the behavior. With it, any right-clicked item that is not itself selected sets the selection to itself only. This still allows you to get a popup menu for multiple items - just right-click on an item that is already selected.
I wasn't sure what exactly to do with the temp_item_selected property; as I'm not sure what it's for. it does not seem to make much difference, though.
I hope you like it! Thanks for a wonderful file manager.
Here's the patch against the 2.11 source, instead of 2.10
Hm. it looks like this is a dupe of 2925212 .
Upon further inspection, it does not appear the patch for bug 2925212 solves
the problem for me, as it is applied in the 2.11 source I was using to
reproduce the bug.
Your patch does not work for me. I am using GTK 2.24.8.
I have posted bug reports about this same problem. The last one:
https://sourceforge.net/tracker/?func=detail&aid=3147977&group_id=7023&atid=107023
I have also posted two bug reports to the rox-devel mail list, see:
https://sourceforge.net/mailarchive/forum.php?thread_name=CABWT5yjMQo_65pkrH1_pTt0Y_wQunybHfR0Ry2bPdHRUBtez9A%40mail.gmail.com&forum_name=rox-devel
We are being ignored.
Fantastic, Nicola Fontana has posted a patch to the rx-devel mail list:
https://sourceforge.net/mailarchive/forum.php?thread_name=20120218154757.33f1225e%40beta.entidi.local&forum_name=rox-devel
Please put this into the official rox code.