Commit Graph

437 Commits

Author SHA1 Message Date
bb669743b6
Fix default filenames in the "Save as" dialog
- Don't assume the filesystem is in UTF-8.
 - Don't try to extract basenames directly from URIs.
2022-08-05 04:15:37 +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
5bae7c1bd2
Use gdk_event_triggers_context_menu() 2022-08-03 21:37:45 +02:00
6f83d1dceb
Minor improvements for the user guide 2022-08-01 02:38:30 +02:00
ab70b30053
Centre ultra-wide items vertically
Overall, this looks better, even though we lose a baseline of sorts.
2022-07-31 04:35:04 +02:00
ea75579b33
Fix a crash with empty exiftool stderr output 2022-07-31 03:54:53 +02:00
8437164dec
Try a bit harder to get a file's local path 2022-07-31 02:52:20 +02:00
fec64d5595
Support file information for non-local files 2022-07-31 01:14:42 +02:00
fefb4c16ac
Support file information for FUSE-mounted paths 2022-07-31 00:12:53 +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
fa034a1a6a
Handle gdk-pixbuf's dynamic format support better
If we use it, install an update script.
2022-07-25 19:05:37 +02:00
dcc5b6c719
Use GSettings for a new native window toggle
Also, redo desktop files handling.
2022-07-25 19:05:27 +02:00
eca319e5e4
Extend a comment 2022-07-24 22:46:03 +02:00
817f1b6000
Support colour management on Windows
There is also an alternative WcsGetDefaultColorProfile() path
that might be necessary on some broken versions of Microsoft Windows,
which I certainly do not want to support.
2022-07-23 22:59:29 +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
4b4e24e71a
Work around broken Cairo Quartz backend on macOS
Pre-render the padded pattern, costing us 2 megabytes of memory there.
2022-07-23 20:47:57 +02:00
4e84d6a802
Don't eat application launch errors 2022-07-23 17:29:18 +02:00
f94171fcf2
Make the jpeg-quantsmooth wrap work on Debian
Sadly, it's not possible to delete files using patch_directory.
2022-07-23 15:23:44 +02:00
4131a926f2
Fix the remaining Windows build error
Linux has st_mtim (and an st_mtime macro),
macOS has st_mtimespec (and an st_mtime macro),
Windows has just st_mtime.

GFileInfo would be another option, though it seems unnecessary.
2022-07-23 10:39:53 +02:00
4fcc506d84
Update README.adoc 2022-07-22 20:49:54 +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
0bfd3ad4ce
Fix touch screen scrolling on sidebar breadcrumbs
The drag gesture needs to be disabled there,
because touch drags fail in an unfortunate way.
2022-07-22 15:40:17 +02:00
e03bc36f63
Print errors from launching new instances 2022-07-21 16:27:48 +02:00
d3b34cd482
Only offer horizontal browser scrolling if useful
Motivated by small screens.
2022-07-21 16:04:51 +02:00
b067c1948b
Use GDK event handling return value constants 2022-07-21 16:03:36 +02:00
390e21a72d
Fix touch screen drag scrolling in the browser 2022-07-21 15:33:42 +02:00
876fda4f55
Handle the long press gesture on browser items
Unfortunately, this doesn't work on X11, though Wayland seems fine.
2022-07-21 12:28:01 +02:00
60b2395940
Mildly improve Windows portability 2022-07-21 09:57:00 +02:00
e7c75f8f9b
Remove forgotten include directive 2022-07-20 17:51:00 +02:00
a9a9d69a92
Add missing array sentinel value 2022-07-19 16:08:53 +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
62b1e83541
Support horizontal scrolling in the browser
An unlikely situation.
2022-07-17 13:47:56 +02:00
bd2e929b77
Add ability to keep zoom/position when browsing 2022-07-17 13:04:29 +02:00
9a0647fdfd
Improve the workaround for native GdkWindows
Overshooting caused the image to be one pixel taller/wider,
due to using ceil() within get_display_dimensions().
2022-07-17 11:45:02 +02:00
47b7600f5e
Work around a mysterious no-image zoom issue 2022-07-17 09:57:28 +02:00
8f98c623ee
Center zoom around pointer or middle of the view 2022-07-17 09:13:12 +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
23429d9631
Implement GtkScrollable in FivView
This fixes rendering and positioning behaviour when dragging on X11,
where we aim to use a native GdkWindow.
2022-07-17 05:27:06 +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
1fee920902
Make the browser scroll with touchpad on Wayland
And generally clear up scroll handling.
2022-07-15 07:35:33 +02:00
c6096d05b5
Discard the inner sidebar's size request
It used to create a hole when there weren't enough bookmarks
to fill that space.
2022-07-14 12:47:35 +02:00
07aa11d78d
Use GPatternSpec rather than fnmatch()
Fixing a portability issue on Windows, where we still aim to use
the shared-mime-info database.
2022-07-14 10:08:15 +02:00