User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20061201 Firefox/2.0.0.3 (Ubuntu-feisty) Build Identifier: Allow use of right-click on removable media so that you can eject and/or unmount devices from the places plugin... Reproducible: Always Steps to Reproduce:
Thanks for creating the bug report Harold. I still have your email, but it was getting deeper and deeper in my inbox. FYI: Since I'm not sure this is how I want the plugin to behave, I'll be trying this out in a subversion branch.
I made a change to the way the model interfaces with the view so that it now sends along a list of actions with each bookmark, where each action has a label and a callback function. I then modified the view to add a right-click menu with this actions list, and I modified the volumes part of the model to define eject/unmount/mount actions. Feel free to check out the code with subversion from http://svn.xfce.org/svn/goodies/xfce4-places-plugin/branches/umount/ and try it out. It's far from perfect right now, but it's certainly a start.
I touched up some of the logic so that it behaves **much** better. Harold, can you give the svn branch a try and let me know what you think?
Additionally, I would enable right-click on *all* items, in order to enable the feature "open terminal here". When you right-click on an icon on your desktop such as the "home" or "file system" icon you also get this option, I love this and hope this can be put into the "places" plugin too. When dealing with recent documents the behavior would be to open a terminal in the containing folder. Lastly, when you right-click on a file-icon on the Desktop (such as a pdf file) you can choose between some possible programs to open the file with, it might be cool if this functionality was added in the "panel" plugin too when right-clicking.
Re: "Allow use of right-click on removable media so that you can eject and/or unmount devices from the places plugin..." This feature made its way into trunk and it seems fairly stable for me. However, I don't have an optical drive to test with. Re: "Additionally, I would enable right-click on *all* items, in order to enable the feature \"open terminal here\"." I agree that this is useful, and this is also in trunk now. Dieter: Everything you said about recent documents is unfortunately hard to do with the GtkRecentChooserMenu I am using, simply because GtkRecentChooser only provides an "item-activated" signal for me to work with. I don't easily get a signal to use for right-clicking. If you still insist, please open your own bug report.