From 701846ab398371de5a921b1a561bcc1601cd8297 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Thu, 28 Jul 2022 00:37:36 +0200 Subject: Support opening collections of files Implement a process-local VFS to enable grouping together arbitrary URIs passed via program arguments, DnD, or the file open dialog. This VFS contains FivCollectionFile objects, which act as "simple" proxies over arbitrary GFiles. Their true URIs may be retrieved through the "standard::target-uri" attribute, in a similar way to GVfs's "recent" and "trash" backends. (The main reason we proxy rather than just hackishly return foreign GFiles from the VFS is that loading them would switch the current directory, and break iteration as a result. We could also keep the collection outside of GVfs, but that would result in considerable special-casing, and the author wouldn't gain intimate knowledge of GIO.) There is no perceived need to keep old collections when opening new ones, so we simply change and reload the contents when needed. Similarly, there is no intention to make the VFS writeable. The process-locality of this and other URI schemes has proven to be rather annoying when passing files to other applications, however most of the resulting complexity appears to be essential rather than accidental. Note that the GTK+ file chooser widget is retarded, and doesn't recognize URIs that lack the authority part in the location bar. --- resources/resources.gresource.xml | 1 + resources/shapes-symbolic.svg | 154 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 155 insertions(+) create mode 100644 resources/shapes-symbolic.svg (limited to 'resources') diff --git a/resources/resources.gresource.xml b/resources/resources.gresource.xml index f52bb76..b3d6b1c 100644 --- a/resources/resources.gresource.xml +++ b/resources/resources.gresource.xml @@ -11,5 +11,6 @@ heal-symbolic.svg info-symbolic.svg pin2-symbolic.svg + shapes-symbolic.svg diff --git a/resources/shapes-symbolic.svg b/resources/shapes-symbolic.svg new file mode 100644 index 0000000..fa09c2c --- /dev/null +++ b/resources/shapes-symbolic.svg @@ -0,0 +1,154 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3-70-g09d2