Commit Graph
100 Commits
Author SHA1 Message Date
p bb97445a96 Attach mtime to the browser's rescaled thumbnails 2022-06-04 16:37:25 +02:00
p e2adac72cc Use the model's mtime for validating thumbnails
Saves a syscall, generalizes fiv_thumbnail_lookup(),
wastes a tiny bit of memory per entry.
2022-06-04 16:37:25 +02:00
p 3ddb0cf205 Expose the mtime of the model's entries 2022-06-04 14:50:56 +02:00
p efc13db66e Plug two memory leaks 2022-06-04 01:28:44 +02:00
p b6315482b7 Fix sort changes taking way too much time
All thumbnails were reloaded five times on each change.

GTK+/GObject's behaviour doesn't make a lot of sense, but such is life.
2022-06-02 11:46:16 +02:00
p 51ea785d83 Bump spng wrap 2022-04-20 03:03:30 +02:00
p 5c34a6846a Fix loading huge JPEGs
They fell back to gdk-pixbuf, then misrendered in the thumbnailer,
and crashed the program when loaded directly.

The second best we can do is scale them down, right after tiling,
which is a complex feature to add.
2022-03-09 18:04:36 +01:00
p da507edd05 Prevent thumbnailing from disrupting mouse clicks 2022-02-24 21:52:25 +01:00
p 580b68789b Turn the browser into a DnD source
The destination does all the work of handling file operations.

Also, add some missing logic for horizontal scrolling.
2022-02-22 15:44:38 +01:00
p 31f9feab7b Use the X-GNOME-FullName desktop file key 2022-02-21 22:29:14 +01:00
p 41bd25e711 Avoid g_app_info_should_show() in context menus
We were hiding our own JPEG cropper.
2022-02-21 21:49:44 +01:00
p d9435c988c Clean up 2022-02-21 21:20:16 +01:00
p 919a55c90b Try to thumbnail everything we can 2022-02-21 00:02:15 +01:00
p 68bb695054 Clean up 2022-02-20 21:29:34 +01:00
p 04ec292caf Make thumbnailers pass back raw images 2022-02-20 21:14:33 +01:00
p a28fbf25bc Implement wide thumbnail cache invalidation 2022-02-20 15:44:42 +01:00
p 6c748439ed Use natural sort order
This is exposed in GLib through collate key construction.
2022-02-20 12:07:41 +01:00
p fbf26a7d66 Show application icons in context menu items 2022-02-20 12:07:40 +01:00
p 1a8c461af2 Simplify sidebar DnD 2022-02-19 23:13:35 +01:00
p 2a73e46315 fiv-jpegcrop: avoid negatively sized crop regions 2022-02-19 23:04:12 +01:00
p a68a73cf5c Don't mention gdk-pixbuf as a direct dependency
It's a similar case to Cairo.
2022-02-19 22:02:22 +01:00
p 433ede4bf1 Add a lossless JPEG cropper
This is more of an MVP, as metadata probably need adjustments.
2022-02-19 20:48:38 +01:00
p 3ae8be8348 Add a TODO comment
WebP can't save all JPEGs, because WEBP_MAX_DIMENSION is only 16383.
2022-02-18 19:54:05 +01:00
p 5d019e20b5 Make the view a drop target 2022-02-17 10:57:05 +01:00
p 03d1798e23 Add a missing header file include 2022-02-14 06:55:37 +01:00
p ef2544868d Open items on mouse button release, not press
At least the left and middle mouse buttons seem to behave similarly
in other programs and systems.

Context menus are opened on button release on Windows and with some
GTK+ widgets (popovers in GtkPlacesSidebar).
2022-02-14 02:10:25 +01:00
p 0857a04a3a Scroll to selection when returning from the viewer 2022-02-13 13:18:36 +01:00
p 4302ec71f2 Make changing the browser zoom launch thumbnailers 2022-02-13 13:18:36 +01:00
p ee5f63e50b Adjust keyboard shortcuts 2022-01-26 04:44:00 +01:00
p 6e26dc13b4 Only show the info bar when appropriate
The late, global gtk_widget_show_all() made it always start visible,
in particular when the program was launched directly on an image file,
and not in browsing mode.
2022-01-25 06:15:05 +01:00
p 5c725d1968 Fix some user guide formatting 2022-01-25 05:59:05 +01:00
p ee71fb0dd0 Start a basic user guide
Move some information out there from the README.
2022-01-25 05:54:00 +01:00
p 381e5f57c7 Add TGA to the list of supported media types 2022-01-25 05:16:31 +01:00
p 788485d81e Redirect warnings to the info bar
And speed up thumbnailing of animated images while at it.

Also, fix thumbnailing SVGs with external links.
2022-01-24 05:48:13 +01:00
p 991e74b99b Redirect image open failure messages
Pop-up dialogs are quite annoying, as is not being able to
iterate over broken images.

This will also be useful for warnings and asynchronous loading.
2022-01-24 02:48:38 +01:00
p 38670428da Add keyboard shortcuts for thumbnail size 2022-01-23 06:44:50 +01:00
p a7e638207f Fix Meson
The disabler, for some reason, bubbles up to its target.
2022-01-23 04:44:41 +01:00
p 098895bfd9 Remove SVG debugging tools
I already know how librsvg over Cairo behaves.
2022-01-23 04:15:48 +01:00
p 235b14dc11 Fix a case in orientation mirroring 2022-01-23 04:15:48 +01:00
p 6ce5c7c2b6 Scale SVGs accurately in the viewing widget 2022-01-23 04:15:48 +01:00
p 07e7d39ea2 Produce properly scaled SVG thumbnails 2022-01-23 04:12:11 +01:00
p 562e140a1e Add backend for accurate SVG scaling 2022-01-23 04:12:10 +01:00
p b71d5dff57 Make truncated WebP parts always transparent 2022-01-23 00:27:20 +01:00
p c85de6b20f Update a comment 2022-01-22 22:51:59 +01:00
p 3796f56e81 Load even partial WebP images 2022-01-22 22:45:35 +01:00
p 0a11abd3fe Reorder code 2022-01-22 21:38:00 +01:00
p 78faf438a5 Improve WebP error reporting 2022-01-22 21:31:16 +01:00
p f2eb7621b4 Bump Wuffs, add TGA support through it 2022-01-22 21:02:56 +01:00
p 8877e17108 Default to gdk-pixbuf even for Wuffs formats 2022-01-22 21:02:56 +01:00
p 686d45553b Plug a corner-case memory leak, fix range checks 2022-01-21 19:03:05 +01:00
p 4ba1d85363 Add preliminary support for resvg
It claims better SVG support, but it sucks for a plethora of reasons.
2022-01-21 09:14:19 +01:00
p 45238d78cd Mesonize JPEG Quant Smooth
Now SIMD works on amd64, although the build remains questionable,
because it assumes that all of its compiler flags will work.

This way we lose an uncomfortable git submodule.

Also, add Meson subprojects to .gitignore.
2022-01-19 01:11:47 +01:00
p 8a656121a3 Update command line usage string 2022-01-16 01:51:04 +01:00
p 6a1278786c Fix a compiler warning 2022-01-13 23:42:35 +01:00
p 13ae4810ca Apply some bits of GNOME HIG 1.0 2022-01-13 21:38:32 +01:00
p 222ba6a060 Add a comment about HDR PNG 2022-01-13 21:09:16 +01:00
p 8e8cf49343 Add a normally hidden, stubbed-out menu bar
So that the About dialog is discoverable now at all.
2022-01-13 21:08:59 +01:00
p 6de5ab6298 Select the file when Return-ing from the viewer
It might make sense to also do it on M-Left or the back button.
Not sure about it so far.
2022-01-12 11:15:35 +01:00
p 757bc9beaa Fully support GNOME's inode/directory mechanism 2022-01-12 11:12:32 +01:00
p f632510d2a Put reloading the image as its own action 2022-01-12 10:58:33 +01:00
p 05453718bb Avoid blank browser space when resizing the window 2022-01-12 10:41:33 +01:00
p cfa90fb7de Don't hardcode the project name in its URI 2022-01-12 10:41:33 +01:00
p f1e9e47e13 Implement browser keyboard navigation 2022-01-11 14:36:19 +01:00
p 764312652d Support invoking a context menu from keyboard 2022-01-11 12:26:28 +01:00
p e663f02754 Implement selection in the browser
Keyboard controls are missing so far.
2022-01-11 11:27:35 +01:00
p 1a190001fc Make the browser implement its own scrollable
It's quite rough around the edges so far.
2022-01-10 11:53:15 +01:00
p 3bf41993a3 Clean up the About animation 2022-01-10 10:25:08 +01:00
p 4f19a67da3 Add an unnecessarily fancy about dialog 2022-01-09 19:11:36 +01:00
p 12e3c42888 Move key bindings to a more usual shortcut
gThumb is confused.
2022-01-09 12:31:19 +01:00
p 146c5c6977 Improve the icon
Now it's simple, colourful, pixel-aligned, balanced and everything.

The ligature is a bit awkward, but it will do.
2022-01-09 09:47:44 +01:00
p 25dcc3b136 Handle view bindings through an action signal
This makes them adjustable.
2022-01-09 07:48:44 +01:00
p 09e5a02ed6 Swap zoom in/out action buttons 2022-01-09 05:24:57 +01:00
p af80303719 Update mildly confused comments 2022-01-08 12:03:52 +01:00
p d65e83a21d Fix a key binding conflict 2022-01-08 10:05:32 +01:00
p 77de7efc55 Bump Wuffs, clean up image loading 2022-01-08 08:04:58 +01:00
p 35c1f2c8ba Parallelize thumbnail production 2022-01-08 07:46:28 +01:00
p b973d323ba Fix GIF decoding for certain files
The handling is not perfect yet, but it should be fine enough.
2022-01-08 05:34:01 +01:00
p 231b77e6c0 Make sort order changes update iteration order 2022-01-07 16:30:47 +01:00
p 7160a915e2 Update README 2022-01-07 12:16:19 +01:00
p 6a878fd3c4 Bump more copyright years 2022-01-07 09:53:58 +01:00
p 3274b64f5a Fix SVG thumbnailing
They're not loaded as image surfaces.
2022-01-07 09:43:28 +01:00
p feda4fd70f Don't force sanitizers in debug builds 2022-01-07 08:37:18 +01:00
p 59af3b7e7b Show sidebar DnD targets when dragging breadcrumbs 2022-01-07 07:41:05 +01:00
p fc559c3d01 Work around an annoying GTK+ issue 2022-01-07 07:28:05 +01:00
p 6869816cc4 Fix desktop file regeneration with certain AWKs 2022-01-07 06:47:13 +01:00
p 8fdf9e2bc3 Turn breadcrumbs into DnD sources
Now it makes sense to keep that GtkSidebar placeholder item around.
2022-01-07 06:11:42 +01:00
p 235af37382 Handle middle mouse clicks on breadcrumbs
Also, don't act on button releases happening outside the widget.
2022-01-07 05:33:33 +01:00
p 06ab13797d Add some padding to the location dialog
It looked awful with Ubuntu's theme.
2022-01-07 03:48:30 +01:00
p e70bb20934 Improve toolbar hiding 2022-01-07 03:34:32 +01:00
p b0de0e09bd Add a screenshot to the README 2022-01-06 12:43:27 +01:00
p 077747f428 Improve desktop file regeneration 2022-01-06 11:44:01 +01:00
p 3ae22e49ee Make sure our info-symbolic is actually used
The previous placement was ultra-fallbacky, "info" was picked instead.
2022-01-06 10:13:10 +01:00
p bb67df716c Mildly improve Ubuntu 20.04 compatibility 2022-01-06 08:39:33 +01:00
p 4cd2978e21 Add a keyboard shortcut for filtering 2022-01-06 06:59:30 +01:00
p 68e786b4e8 Fix build with JPEG-QS but without lcms2 2022-01-06 06:15:08 +01:00
p 9a1396b91f Update comments 2022-01-05 12:07:05 +01:00
p 5abf6a719f Add UI for sort order settings 2022-01-05 10:54:36 +01:00
p 0a6b06d1d0 Fix browsing the "resource" GVfs schema 2022-01-05 07:59:18 +01:00
p d889acc315 Show available protocols in open location dialog 2022-01-05 07:59:18 +01:00
p 6142bf9c53 Automount from location input 2022-01-05 06:40:39 +01:00