summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-canvas-dnd.h
Commit message (Collapse)AuthorAgeFilesLines
* dnd: use GtkPlacesSidebar drop targets hintsCarlos Soriano2015-10-061-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the dnd on the sidebar is only triggered when hovering above the sidebar itself. However we would like to give some feedback all along on the dnd operation. For that GtkPlacesSidebar has set_drop_targets_visible public API, which was implemented a few months ago and the GtkFileChooser is already using. I just forgot to implement the support for it on Nautilus... even if the original work was done for Nautilus, since users will probably use dnd more on nautilus than on the file chooser. I'm not entirely happy with the implementation, since it uses custom functions to access the drag data, given that we need them at drag-begin time and in random places on the code, since nautilus is doing all the dnd work manually and on different places. The final result is that drag and drop is still managed mostly on its own widgets, in this case list-view and canvas-view, and nautilus-dnd manages a central accessor for dnd in nautilus, in this case requesting depending on the widget that is the owner of the data, its data through the custom functions of that particula widget. All other ways I tried to do it entirely with only gtk_drag_* or gdk_drag_* functions were in vanish if no a complete refactoring is done, and probably it doesn't worth the effort. Also I actually separated the list view dnd code as well, so now at least the pattern to handling dnd on nautilus is more or less consistent.
* Updated FSF's addressDaniel Mustieles2014-01-311-2/+1
|
* Switch location on canvas view hoverWilliam Jon McCann2013-01-211-1/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=692097
* Rename icon view to canvas viewWilliam Jon McCann2012-08-071-0/+56
This will allow us to retain canvas view for the desktop directory but implement a new icon view for other folders. https://bugzilla.gnome.org/show_bug.cgi?id=681370