summaryrefslogtreecommitdiff
path: root/src/nautilus-files-view.h
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2019-07-06 22:26:44 -0700
committerCosimo Cecchi <cosimoc@gnome.org>2019-08-29 16:20:05 -0700
commit0f9823b05e5a1371b3b0d8a1838aef8f78f08d30 (patch)
treee4daf101a284a9b58b71a7a8944c5d61ef431df0 /src/nautilus-files-view.h
parent2d3dcbcfb78df09f8707a12b33468cd63da2b020 (diff)
downloadnautilus-0f9823b05e5a1371b3b0d8a1838aef8f78f08d30.tar.gz
Add support for the SelectionEvent previewer signal
And handle it by moving the selection in the current view. Once in a following commit we have the previewer follow the view selection, we'll achieve the desired effect of moving the preview with the selection.
Diffstat (limited to 'src/nautilus-files-view.h')
-rw-r--r--src/nautilus-files-view.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nautilus-files-view.h b/src/nautilus-files-view.h
index 954101bd6..602cf8bec 100644
--- a/src/nautilus-files-view.h
+++ b/src/nautilus-files-view.h
@@ -236,6 +236,9 @@ struct _NautilusFilesViewClass {
/* Use this to show an optional visual feedback when the directory is empty.
* By default it shows a widget overlay on top of the view */
void (* check_empty_states) (NautilusFilesView *view);
+
+ void (* preview_selection_event) (NautilusFilesView *view,
+ GtkDirectionType direction);
};
NautilusFilesView * nautilus_files_view_new (guint id,
@@ -304,6 +307,8 @@ void nautilus_files_view_new_file_with_initial_contents (NautilusFi
/* selection handling */
void nautilus_files_view_activate_selection (NautilusFilesView *view);
+void nautilus_files_view_preview_selection_event (NautilusFilesView *view,
+ GtkDirectionType direction);
void nautilus_files_view_stop_loading (NautilusFilesView *view);
char * nautilus_files_view_get_first_visible_file (NautilusFilesView *view);