summaryrefslogtreecommitdiff
path: root/src/nautilus-window-slot-dnd.c
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2015-08-18 15:23:02 -0300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2015-08-20 17:38:35 -0300
commit404f1492dbe03b407abd4ca0c2b743f7810f4b3e (patch)
treebabcbe37fa37648d8731acd20a19e0967ebe8cc9 /src/nautilus-window-slot-dnd.c
parentabef8cac2f1df4b808fcb66b35877b75b54774e4 (diff)
downloadnautilus-404f1492dbe03b407abd4ca0c2b743f7810f4b3e.tar.gz
places-view: implement a view for Other Locations
GtkFileChooser received a Other Locations view that lists persistent devices, as well as networks and the root location for the computer's hard drive. Since Nautilus is a file management tool too, it should keep consistency between Gtk+ file chooser, something that doesn't happen since it doesn't display Other Locations. To fix that, add NautilusPlacesView, a NautilusView implementation that displays the GtkPlacesView widget. In order to implement that, update window-slot to correctly display the places-view whenever Other Locations is clicked. https://bugzilla.gnome.org/show_bug.cgi?id=753871
Diffstat (limited to 'src/nautilus-window-slot-dnd.c')
-rw-r--r--src/nautilus-window-slot-dnd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nautilus-window-slot-dnd.c b/src/nautilus-window-slot-dnd.c
index 71386b140..af15c18bc 100644
--- a/src/nautilus-window-slot-dnd.c
+++ b/src/nautilus-window-slot-dnd.c
@@ -360,7 +360,13 @@ slot_proxy_handle_drop (GtkWidget *widget,
target_view = NULL;
if (target_slot != NULL) {
- target_view = nautilus_window_slot_get_current_view (target_slot);
+ NautilusView *view;
+
+ view = nautilus_window_slot_get_current_view (target_slot);
+
+ if (view && NAUTILUS_IS_FILES_VIEW (view)) {
+ target_view = NAUTILUS_FILES_VIEW (view);
+ }
}
if (target_slot != NULL && target_view != NULL) {