GNOME Bugzilla – Bug 532475
middle-click drag a path bar button
Last modified: 2008-08-01 12:47:49 UTC
the bug has been opened on https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/228213 "When in browser mode, you can drag a button on the path bar to copy the folder it represents. It would be useful to be able to middle-drag it too, to get the same options you get when you middle-click drag a folder."
Created attachment 110790 [details] [review] proposed patch Complete the DnD implementation for buttons on pathbar. This is done in the same way we do it for the spatial window location selector.
Thanks for your efforts! Improving the button bar experience is a very important task. The approach looks fine too, but you should use gtk_widget_get_ancestor() on the button_data's button instead of storing a link to the GUI widget in ButtonData.
Created attachment 111156 [details] [review] proposed patch v2 Christian, thanks for the review. I updated the patch according to your comment.
Christian already committed a similar patch to trunk some time ago, so we were just lacking GDK_BUTTON2_MASK in the gtk_drag_source_set () call to make this work. 2008-07-24 Cosimo Cecchi <cosimoc@gnome.org> * src/nautilus-pathbar.c: (setup_button_drag_source): Enable middle-click dragging a path bar button (#532475).
Hi and thanks for all your efforts, I have been using the latest Ubuntu Intrepid daily iso to test this new feature, (it appears as "fix released" in Launchpad) but the functionality still seems to be missing. I can drag pathbar buttons with the left button alright, even press the ctrl / shift keys to copy / move, but using the middle button to drag seems to have no effect at all. The iso I'm using might, in fact, be two or three days old but if definitely should sport this feature. Are you positive that middle-dragging a pathbar button gives you a menu now?
David, Ubuntu Intrepid has nautilus 2.23.5.1 (current nautilus dev version) which doesn't contain the fix you might want to wait for the next nautilus release or try the trunk version, thanks you.