summaryrefslogtreecommitdiff
path: root/src/nautilus-window-slot.h
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2015-04-30 12:44:01 -0300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2015-05-07 12:18:23 -0300
commit40599696c4e61211cac4c847488a4d46ea6f8379 (patch)
treebd4344e9b95c5d64847315e56a45844d4d91c8ac /src/nautilus-window-slot.h
parent10a96ee39eadb19e1ec46393c3f79c96d271de0a (diff)
downloadnautilus-40599696c4e61211cac4c847488a4d46ea6f8379.tar.gz
window: set places sidebar to the previous location on error
Nautilus opens the location notified by GtkPlacesSidebar without further interaction with it. With that, when a location fails to open, Nautilus goes back to the previous valid location but, because of we're not interacting with the sidebar after the failure, the sidebar was not updated to match these changes, i.e. kept the old invalid row selected. To fix it, set the previous valid location to the sidebar as well if there's some error loading a location. https://bugzilla.gnome.org/show_bug.cgi?id=734755
Diffstat (limited to 'src/nautilus-window-slot.h')
-rw-r--r--src/nautilus-window-slot.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nautilus-window-slot.h b/src/nautilus-window-slot.h
index ed4c8737b..ed7e780c7 100644
--- a/src/nautilus-window-slot.h
+++ b/src/nautilus-window-slot.h
@@ -125,4 +125,9 @@ void nautilus_window_slot_set_status (NautilusWindowSlot *slot,
const char *detail_status);
void nautilus_window_slot_sync_view_mode (NautilusWindowSlot *slot);
+void nautilus_window_slot_display_view_selection_failure (NautilusWindow *window,
+ NautilusFile *file,
+ GFile *location,
+ GError *error);
+
#endif /* NAUTILUS_WINDOW_SLOT_H */