GNOME Bugzilla – Bug 137717
Gtk+ filechooser should allow drag-n-drop of files in the desktop trash and in the trash window
Last modified: 2008-05-25 14:27:49 UTC
Currently you can drag-n-drop files from the new filechooser to the nautilus desktop. However, if you try to drop a file in the trash (say for example you noticed a "core" file in your $HOME) the file gets copied on the desktop anyway. Opening the trash in a nautilus window and dropping a file from the fileselector into it doesnt work either, but there it's worse as the dropping is not allowed. this is with gtk+ 2.4.0
This is a nautilus issue, right?
I'm working on this (trying to figure out if it's a Nautilus bug or a GtkFileChooser one).
Its probably a nautilus bug, since the drop side is supposed to do the operation.
Mass changing gtk+ bugs with target milestone of 2.4.2 to target 2.4.4, as Matthias said he was trying to do himself on IRC and was asking for help with. If you see this message, it means I was successful at fixing the borken-ness in bugzilla :) Sorry for the spam; just query on this message and delete all emails you get with this message, since there will probably be a lot.
same issue with the trashapplet described here: https://bugzilla.ubuntu.com/8002
Created attachment 110622 [details] [review] Add GDK_ACTION_MOVE to allow move and trash (which is a move)
This seems to fix things only partially, though. With the patch, dropping to the trash applet works, but the file chooser (at least with the unix backend) does not update the display, I have to force a reload to make the deleted file disappear. Dropping on the nautilus trash icon does not work unless I force the move action by pressing Shift.
First one could be something like bug 529966. Second one is a nautilus bug. In nautilus_icon_container_get_drop_action (libnautilus-private/nautilus-icon-dnd.c) there should be some target checks in the NAUTILUS_ICON_DND_URI_LIST case as in the NAUTILUS_ICON_DND_GNOME_ICON_LIST case.
2008-05-25 Jan Arne Petersen <jpetersen@jpetersen.org> * gtk/gtkfilechooserdefault.c: (create_file_list): Add GDK_ACTION_MOVE to the drag actions to allow trash (#137717).