diff options
author | Alexandru Pandelea <alexandru.pandelea@gmail.com> | 2017-03-27 23:00:43 +0300 |
---|---|---|
committer | Alexandru Pandelea <alexandru.pandelea@gmail.com> | 2017-05-31 15:58:52 +0300 |
commit | 6e16bc32e85c80229578ddff6615554f84c492c8 (patch) | |
tree | 8fb716489ac1e99b0b88a12e6cf7263b353c3a95 /src/nautilus-window-slot.h | |
parent | e4e9eb83d58786e44ba193bd20d7adaa0e38f7fa (diff) | |
download | nautilus-6e16bc32e85c80229578ddff6615554f84c492c8.tar.gz |
add "restore tab" action
Adds option to reopen closed tabs with Ctrl+Shift+T.
In order to do so, keep a list with data needed to restore closed
tabs. So, this list keeps the location bookmark, the view id before
search, which is needed in case the closed tab was a search and
the back/forward history.
https://bugzilla.gnome.org/show_bug.cgi?id=561136
Diffstat (limited to 'src/nautilus-window-slot.h')
-rw-r--r-- | src/nautilus-window-slot.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nautilus-window-slot.h b/src/nautilus-window-slot.h index 57b83fab8..573357d9b 100644 --- a/src/nautilus-window-slot.h +++ b/src/nautilus-window-slot.h @@ -42,6 +42,13 @@ G_DECLARE_DERIVABLE_TYPE (NautilusWindowSlot, nautilus_window_slot, NAUTILUS, WI #include "nautilus-window.h" #include "nautilus-toolbar-menu-sections.h" +typedef struct +{ + NautilusFile *file; + gint view_before_search; + GList *back_list; + GList *forward_list; +} RestoreTabData; struct _NautilusWindowSlotClass { GtkBoxClass parent_class; @@ -110,6 +117,11 @@ 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); + +RestoreTabData* nautilus_window_slot_get_restore_tab_data (NautilusWindowSlot *self); + /* Only used by slot-dnd */ NautilusView* nautilus_window_slot_get_current_view (NautilusWindowSlot *slot); |