summaryrefslogtreecommitdiff
path: root/src/nautilus-window-slot.h
diff options
context:
space:
mode:
authorSachin Daluja <30343-sachindaluja@users.noreply.gitlab.gnome.org>2020-05-24 13:29:49 -0400
committerAntónio Fernandes <antoniojpfernandes@gmail.com>2020-07-12 16:27:10 +0000
commit9c08b6d2cf9ebe863d242446ab4e2fefc6620587 (patch)
tree92dbc29aec0c0cf2ceed6b4704ad636ff8873d09 /src/nautilus-window-slot.h
parent5561219e34d0925ea752ffd87c13cd95258e3172 (diff)
downloadnautilus-9c08b6d2cf9ebe863d242446ab4e2fefc6620587.tar.gz
window-slot: Rename RestoreTabData to NautilusNavigationState
This struct is going to be used to also restore navigation state when replacing the active window slot in order to handle other-locations:// Also enhance it to also save and restore the current location bookmark.
Diffstat (limited to 'src/nautilus-window-slot.h')
-rw-r--r--src/nautilus-window-slot.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nautilus-window-slot.h b/src/nautilus-window-slot.h
index 42bf092ff..bdb9dccfa 100644
--- a/src/nautilus-window-slot.h
+++ b/src/nautilus-window-slot.h
@@ -43,7 +43,8 @@ typedef struct
gint view_before_search;
GList *back_list;
GList *forward_list;
-} RestoreTabData;
+ NautilusBookmark *current_location_bookmark;
+} NautilusNavigationState;
struct _NautilusWindowSlotClass {
GtkBoxClass parent_class;
@@ -123,14 +124,14 @@ void nautilus_window_slot_search (NautilusWindowSlot *
gboolean nautilus_window_slot_handles_location (NautilusWindowSlot *self,
GFile *location);
-void nautilus_window_slot_restore_from_data (NautilusWindowSlot *self,
- RestoreTabData *data);
+void nautilus_window_slot_restore_navigation_state (NautilusWindowSlot *self,
+ NautilusNavigationState *data);
-RestoreTabData* nautilus_window_slot_get_restore_tab_data (NautilusWindowSlot *self);
+NautilusNavigationState* nautilus_window_slot_get_navigation_state (NautilusWindowSlot *self);
NautilusQueryEditor *nautilus_window_slot_get_query_editor (NautilusWindowSlot *self);
/* Only used by slot-dnd */
NautilusView* nautilus_window_slot_get_current_view (NautilusWindowSlot *slot);
-void free_restore_tab_data (gpointer data);
+void free_navigation_state (gpointer data);