Commit Graph

54 Commits

Author SHA1 Message Date
Přemysl Eric Janouch d590d1da46
Add support for copying to clipboard 2022-08-04 00:35:22 +02:00
Přemysl Eric Janouch 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
Přemysl Eric Janouch 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
Přemysl Eric Janouch 78636fdc18
Add sidebar/toolbar toggles to GSettings 2022-07-25 23:20:30 +02:00
Přemysl Eric Janouch e18f729488
Add thumbnail size to GSettings 2022-07-25 21:09:15 +02:00
Přemysl Eric Janouch 9f1041988d
Add a dark theme toggle to GSettings 2022-07-25 20:27:36 +02:00
Přemysl Eric Janouch 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
Přemysl Eric Janouch 5529727137
Fix thumbnail passing on Windows
LF was converted to CR LF, systematically corrupting bitmap data.
2022-07-22 20:49:54 +02:00
Přemysl Eric Janouch 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
Přemysl Eric Janouch 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
Přemysl Eric Janouch e03bc36f63
Print errors from launching new instances 2022-07-21 16:27:48 +02:00
Přemysl Eric Janouch 26dead7ea4
Fix the About dialog animation on macOS 2022-07-17 16:05:08 +02:00
Přemysl Eric Janouch 94f6938b9a
Add a key binding for keeping the zoom/position 2022-07-17 15:26:20 +02:00
Přemysl Eric Janouch bd2e929b77
Add ability to keep zoom/position when browsing 2022-07-17 13:04:29 +02:00
Přemysl Eric Janouch 4efda5347c
Let FivView take care of its drag gesture
Making the GtkScrolledWindow's scrollbars draggable again.
2022-07-17 07:16:41 +02:00
Přemysl Eric Janouch ca57c2632a
Simplify view dragging code a bit 2022-07-16 14:57:44 +02:00
Přemysl Eric Janouch 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
Přemysl Eric Janouch 84f8c9436f
Downscale embedded thumbnails within minions
Otherwise the UI would become unresponsive during loading.
2022-06-08 02:51:55 +02:00
Přemysl Eric Janouch 8dfbd0dee2
Add a command line option to extract thumbnails
Only use LibRaw for now, which probably has the most impact
using the least amount of effort.
2022-06-08 02:51:54 +02:00
Přemysl Eric Janouch 4ca8825e02
Clean up
Use gchar when memory is allocated through GLib.
2022-06-05 13:30:53 +02:00
Přemysl Eric Janouch 3ddb0cf205
Expose the mtime of the model's entries 2022-06-04 14:50:56 +02:00
Přemysl Eric Janouch 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řemysl Eric Janouch 04ec292caf
Make thumbnailers pass back raw images 2022-02-20 21:14:33 +01:00
Přemysl Eric Janouch a28fbf25bc
Implement wide thumbnail cache invalidation 2022-02-20 15:44:42 +01:00
Přemysl Eric Janouch 5d019e20b5
Make the view a drop target 2022-02-17 10:57:05 +01:00
Přemysl Eric Janouch ee5f63e50b
Adjust keyboard shortcuts 2022-01-26 04:44:00 +01:00
Přemysl Eric Janouch 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řemysl Eric Janouch ee71fb0dd0
Start a basic user guide
Move some information out there from the README.
2022-01-25 05:54:00 +01:00
Přemysl Eric Janouch 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řemysl Eric Janouch 38670428da
Add keyboard shortcuts for thumbnail size 2022-01-23 06:44:50 +01:00
Přemysl Eric Janouch 8a656121a3
Update command line usage string 2022-01-16 01:51:04 +01:00
Přemysl Eric Janouch 13ae4810ca
Apply some bits of GNOME HIG 1.0 2022-01-13 21:38:32 +01:00
Přemysl Eric Janouch 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řemysl Eric Janouch 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řemysl Eric Janouch 757bc9beaa
Fully support GNOME's inode/directory mechanism 2022-01-12 11:12:32 +01:00
Přemysl Eric Janouch f632510d2a
Put reloading the image as its own action 2022-01-12 10:58:33 +01:00
Přemysl Eric Janouch cfa90fb7de
Don't hardcode the project name in its URI 2022-01-12 10:41:33 +01:00
Přemysl Eric Janouch e663f02754
Implement selection in the browser
Keyboard controls are missing so far.
2022-01-11 11:27:35 +01:00
Přemysl Eric Janouch 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řemysl Eric Janouch 3bf41993a3
Clean up the About animation 2022-01-10 10:25:08 +01:00
Přemysl Eric Janouch 4f19a67da3
Add an unnecessarily fancy about dialog 2022-01-09 19:11:36 +01:00
Přemysl Eric Janouch 12e3c42888
Move key bindings to a more usual shortcut
gThumb is confused.
2022-01-09 12:31:19 +01:00
Přemysl Eric Janouch 09e5a02ed6
Swap zoom in/out action buttons 2022-01-09 05:24:57 +01:00
Přemysl Eric Janouch af80303719
Update mildly confused comments 2022-01-08 12:03:52 +01:00
Přemysl Eric Janouch d65e83a21d
Fix a key binding conflict 2022-01-08 10:05:32 +01:00
Přemysl Eric Janouch 231b77e6c0
Make sort order changes update iteration order 2022-01-07 16:30:47 +01:00
Přemysl Eric Janouch 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řemysl Eric Janouch e70bb20934
Improve toolbar hiding 2022-01-07 03:34:32 +01:00
Přemysl Eric Janouch bb67df716c
Mildly improve Ubuntu 20.04 compatibility 2022-01-06 08:39:33 +01:00
Přemysl Eric Janouch 4cd2978e21
Add a keyboard shortcut for filtering 2022-01-06 06:59:30 +01:00