Commit Graph

86 Commits

Author SHA1 Message Date
93ad75eb35
Switch to a GAction-based menu
The new menu has a few more entries, and shows accelerators.

Most shortcuts have now moved from on_key_press() to actions,
and Alt-Shift-D has started working on macOS.

This also adds support for the global menu in macOS,
and moves some accelerators/key equivalents to the Command key.
There is no other easy way of accessing that global menu in GTK+.
2023-08-07 08:55:41 +02:00
ab75d2b61d
Fix build under Cygwin 2023-07-07 12:01:12 +02:00
2869c656c1
Centralize the project's URL 2023-06-26 15:46:10 +02:00
19913a5e48
Only show X11-specific option when it makes sense 2023-06-25 03:39:24 +02:00
4b5b8ec9fa
Implement our own Preferences dialog
And fix a resource leak.
2023-06-24 22:13:08 +02:00
2dc4e9c13b
Make backspace go back in history
As on Windows.
2023-06-22 18:37:24 +02:00
1577961aa2
Improve compatibility with older dependencies 2023-06-10 11:52:49 +02:00
338ae69121
Add support for the Little CMS fast float plugin
On a sample of JPEGs, it improved loading speed from ~0.26s to ~0.15s.

Unfortunately, it isn't normally installed.
2023-06-04 16:16:52 +02:00
dd1d6647dc
Shuffle code around 2023-06-04 12:10:36 +02:00
abf4f1a792
Convert to strictly non-unique GtkApplication
It's not pretty, but it works.
2023-06-04 12:10:36 +02:00
6a7c86a41b
Remove a macOS rendering bug workaround
Most important Cairo bugs seem to have been fixed recently.
2023-06-04 12:10:35 +02:00
200485246b
Process some GFileMonitor events
So far, it's rather crude.
2023-05-31 18:39:14 +02:00
859736e5be
Move FivIoModel to its own compilation unit 2023-05-28 09:33:03 +02:00
a6560509d9
Revise documentation and help output
Split out clearly internal options.
2023-04-17 07:20:07 +02:00
44c28f00d6
Make supported media type listing output unique 2023-04-17 07:19:37 +02:00
cce2b6ba51
Fix history behaviour
When starting in A/B, then manually going up to A,
and back down to A/B, going back in history to A was impossible,
because it would actually end up being a /forward/ entry.
2023-04-16 15:08:36 +02:00
43363ea4bf
Cleanup 2023-04-16 11:50:15 +02:00
00fa76cb69
Avoid needless data duplication
And turn the initial load hack into somewhat clean-looking.
2023-04-15 05:20:35 +02:00
a012011631
Deduplicate file information structures 2023-04-14 07:31:03 +02:00
8da5f807cf
Move and extend the browser toolbar
This makes the user interface more cohesive, and easier to use.

Both toolbars should ideally be made configurable.
2023-04-11 06:33:22 +02:00
1b50a834a5
Add optional browser filename labels 2023-04-11 06:04:27 +02:00
c646864805
Add directory tree traversal functionality
Thus far merely bound to the [ and ] keys in the browser.
2023-04-05 00:09:53 +02:00
796b05c9a5
Integrate online reverse image search
This makes use of our image processing capabilities in order to
turn arbitrary image files into normalized thumbnails,
upload them to a temporary host, and pass the resulting URI
to a search provider.

In future, fiv should ideally run the upload itself,
so that its status and any errors are obvious to the user,
as well as to get rid of the script's dependency on jq.
2023-03-15 05:52:32 +01:00
dd09af34b7
Make binaries say what git commit they come from
The manual skipping of the initial "v" from tag names is unfortunate,
but still a bit better than further cluttering up the build system.
2022-08-13 12:42:21 +02:00
1a163bdb8b
Resolve a few issues with MSYS2 cross-builds
- Fix launching of subprocesses (missing gspawn helpers).
 - Discard unused GSettings schemas.
 - Make the program find its user guide.
 - Bundle a somewhat suboptimal version of ExifTool.
2022-08-11 16:10:04 +02:00
dba2b9c982
Fix the argument list of a callback 2022-08-10 10:22:44 +02:00
b6e1dc4893
Overload the F9 keyboard shortcut
It doesn't make a lot of sense to be able to toggle invisible widgets,
so just make F9 toggle "the toolbar that can currently be seen".

The more permanent setting can be adjusted in GSettings.
2022-08-09 18:03:55 +02:00
701846ab39
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.
2022-08-08 18:06:50 +02:00
4927c8c692
Don't crash on orphan URIs 2022-08-08 15:14:20 +02:00
33fb047a73
Make Alt+Return work in the browser as well 2022-08-06 07:49:01 +02:00
8c6fe0ad32
Integrate dconf-editor
This is a more than adequate solution for now.
2022-08-05 09:58:04 +02:00
51dc56c9df
Improve support for opening HTTP URIs
While all GVfs files implement the mountable interface,
mounting may not actually achieve anything.
2022-08-05 04:15:42 +02:00
d590d1da46
Add support for copying to clipboard 2022-08-04 00:35:22 +02:00
d1d9caaa5e
Capitalize modifier names, prefer Command on macOS
So far, the macOS special casing is only partial.

Also, GtkShortcutsWindow confusingly labels Command as Meta.
2022-08-04 00:34:05 +02:00
6baf1a7bbd
Make the switch-to-browser button select last file
Before, it was only possible to achieve the same result using keyboard.
2022-07-26 00:31:43 +02:00
78636fdc18
Add sidebar/toolbar toggles to GSettings 2022-07-25 23:20:30 +02:00
e18f729488
Add thumbnail size to GSettings 2022-07-25 21:09:15 +02:00
9f1041988d
Add a dark theme toggle to GSettings 2022-07-25 20:27:36 +02:00
31f428f4ec
Make the window assume a centred position on macOS
Windows and Linux applications are more likely to not bother,
and their desktop environments don't place windows right in the corner,
which is what happens with GTK+/macOS.
2022-07-23 21:26:24 +02:00
5529727137
Fix thumbnail passing on Windows
LF was converted to CR LF, systematically corrupting bitmap data.
2022-07-22 20:49:54 +02:00
e137afa736
Fix a function name conflict on Mingw-w64
This could also be resolved through `#define NO_OLDNAMES`,
however the function rather deserved a more precise name.
2022-07-22 18:33:55 +02:00
891420edfd
Handle back/forward mouse buttons on Win32/macOS
There is no conflict with X11/Wayland, because 4/5 are the scroll wheel,
which never gets forwarded to button-press-event.
2022-07-22 16:27:43 +02:00
e03bc36f63
Print errors from launching new instances 2022-07-21 16:27:48 +02:00
26dead7ea4
Fix the About dialog animation on macOS 2022-07-17 16:05:08 +02:00
94f6938b9a
Add a key binding for keeping the zoom/position 2022-07-17 15:26:20 +02:00
bd2e929b77
Add ability to keep zoom/position when browsing 2022-07-17 13:04:29 +02:00
4efda5347c
Let FivView take care of its drag gesture
Making the GtkScrolledWindow's scrollbars draggable again.
2022-07-17 07:16:41 +02:00
ca57c2632a
Simplify view dragging code a bit 2022-07-16 14:57:44 +02:00
c55500f51a
Support dragging the view
It would also be possible to handle this through press/motion/release
event handlers, though GtkGestureDrag is more convenient for hacking in
support for dragging to widgets not supporting GtkScrollable (yet).

There may be some undesired interactions lurking, besides the jarring
movements when dragging native GdkWindows (these are a pain).
2022-07-15 14:00:31 +02:00
84f8c9436f
Downscale embedded thumbnails within minions
Otherwise the UI would become unresponsive during loading.
2022-06-08 02:51:55 +02:00