summaryrefslogtreecommitdiff
path: root/src/nautilus-files-view.h
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2016-03-18 16:58:31 +0100
committerCarlos Soriano <csoriano@gnome.org>2016-04-14 10:35:15 +0200
commit3c66ac706569583c1c9adb9cb0f2e94a1a47ea77 (patch)
treee117b011d6b2ad2f3cb135cd440110ddcee959cd /src/nautilus-files-view.h
parent5ff1d1beff51e0a9c664afa3c8d8b755758afb93 (diff)
downloadnautilus-3c66ac706569583c1c9adb9cb0f2e94a1a47ea77.tar.gz
files-view: use inheritance for scripts vars
When a script is present we set some environment variables to allow the scripts to work with them. For example, we set a environment variable for selected items. However, some views have special links, like the desktop. Therefore we need special treatment for those. Use inheritance instead of doing special casing in the parent class for this case. https://bugzilla.gnome.org/show_bug.cgi?id=712620
Diffstat (limited to 'src/nautilus-files-view.h')
-rw-r--r--src/nautilus-files-view.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nautilus-files-view.h b/src/nautilus-files-view.h
index ccd05830f..b979f6126 100644
--- a/src/nautilus-files-view.h
+++ b/src/nautilus-files-view.h
@@ -268,6 +268,12 @@ struct NautilusFilesViewClass {
* home and other special links. */
gboolean (* special_link_in_selection) (NautilusFilesView *view,
GList *selection);
+ /* Use this when the scripts environment vars are being set, for selected files, etc.,
+ * if the subclassed view has some special links that need conversion to
+ * normal uris */
+ char * (* get_file_paths_or_uris_as_newline_delimited_string) (NautilusFilesView *view,
+ GList *selection,
+ gboolean get_paths);
};
/* GObject support */