Commit graph

439 commits

Author SHA1 Message Date
Sophie Herold
14e5d03a1e image/rendering: Use new GdkMonitor geometry units
The bug that the geometry isn't returned in app pixels on wayland
without scale-monitor-framebuffer was fixed in GDK. Therefore also
require newer GTK version.
2024-02-11 19:03:32 +01:00
Sophie Herold
de5b3b2c7e meta: Update copyright
Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/374>
2024-02-11 15:26:56 +00:00
Sophie Herold
869f0b3714 app: Don't use animations with Left/Right keys
Closes #322
2024-02-11 14:29:46 +00:00
Sophie Herold
5f023a2b40 metadata/gps: City detection from 100 to 15 km
The original idea was that it's helpful to at least know the very rough
location of an image. In practice that mostly seems to be confusing. So
reducing this to a much smaller distance.

Closes #318

Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/370>
2024-02-10 00:13:11 +00:00
Sophie Herold
8b60dc7dcb propertiesView: Add button to copy coordiantes
Copy location coordinates in a machine readable format for use in other apps.

Closes #164

Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/371>
2024-02-09 23:41:47 +00:00
Sophie Herold
0dc71357f1 window: Add permanently delete shortcut
Permanently delete images with Shift + Delete like in Files. Adding this
since EOG supported it as well.

Closes #323

Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/369>
2024-02-09 22:53:59 +00:00
Sophie Herold
b44412fac6 meson: Make X11 support an optional feature
Closes #255

Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/326>
2024-02-09 21:05:46 +01:00
Sophie Herold
8c817a3ec6 meta: Update copyright annotations 2024-02-09 20:55:26 +01:00
Sophie Herold
ea5f4f447b window: Use VariantTy constants 2024-02-08 21:19:09 +01:00
Sophie Herold
6a4c1c61d7 image/scrollable: Add non-nullable adj getters
Somehow they are not automatically generated anymore with new gtk-rs
version.
2024-02-08 21:19:09 +01:00
Sophie Herold
0ed7036098 cargo: Update gtk-rs stack 2024-02-08 21:19:05 +01:00
Sophie Herold
a7116925bf debug: Add more tracing for initial operations 2024-02-08 00:57:33 +01:00
Sophie Herold
23918bf31e slidingView: Fix non-animated page changes
Add missing signal for ended animation and fix wrong index juggling.
2024-02-05 17:25:44 +01:00
Sophie Herold
6958f427bd application: Shortcuts for non-animated next/prev
Don't animate switching between images for Alt+Arrow.

Closes #45
2024-01-31 23:34:25 +01:00
Sophie Herold
3f1c247f41 cargo: Update glycin version 2024-01-29 22:35:42 +01:00
Sophie Herold
e4ee49c2a1 SlidingView: Properly animate fast scrolling 2024-01-28 20:57:19 +00:00
Sophie Herold
0e44037239 ImageView: Reliably show image restored from trash
Closes #316
2024-01-28 20:57:19 +00:00
Sophie Herold
f1f8ba9a88 SlidingView: Fix animation for deleting images 2024-01-28 20:57:19 +00:00
Sophie Herold
67513dc3f5 window: Stop adding svg mime manually
This was from way back when glycin didn't support SVGs yet.
2024-01-28 20:57:19 +00:00
Sophie Herold
47cb0e0acb SlidingView: Stop using gtk_widget_get_allocation
It got deprecated. Hopefully "width" does what we need.
2024-01-28 20:57:19 +00:00
Sophie Herold
619b4f8150 cargo: Update glycin 2024-01-23 21:03:22 +01:00
Sophie Herold
c5685b5b5e decoder: Update dimension with frame info
In theory the header information doesn't has to be correct. There are no
known formats where this is the case, but just to be safe.

Closes #305
2024-01-21 14:19:33 +01:00
Sophie Herold
2f0150ade1 image/zoom: Create animation with a fake target
This avoids warnings when contructing the animation.
2024-01-20 14:44:29 +01:00
Sophie Herold
0d060f6790 image: Occupy 40% instead of 30% screen area
Closes #272
2024-01-19 15:47:16 +00:00
Sophie Herold
aa3e517a1b image/zoom: Use more trace instead of debug 2024-01-19 15:47:16 +00:00
Sophie Herold
e0df6fc725 image/rendering: Clamp natural size correctly 2024-01-19 15:47:16 +00:00
Sophie Herold
171077ffc7 window: Resize to natural on map
Only at this point we can be certain about the screen info like size an
scaling factor.
2024-01-19 15:47:16 +00:00
Sophie Herold
446ae5063a window: Limit HeaderBar to min width as nat width
Before we were doing the same with just the title in the HeaderBar. This
gave problems with correctly measuring for ADW_CENTERING_POLICY_LOOSE.
2024-01-09 20:12:02 +01:00
Sophie Herold
7ebc902838 image/rotation: Configure adj during rotation
This was missing after we stopped configuring adjustments in snapshots.

Closes #302
2024-01-09 14:19:16 +01:00
Sophie Herold
784c53b318 slidingView: Use stacked cards animation for steps
Use an animation with less motion for navigation through images with
arrow keys and buttons. For skipping multiple images and for using the
touchpad, the animations stay the same.

Closes #245
2024-01-08 20:31:40 +00:00
Sophie Herold
0d21222dcd meta: Release 46.alpha 2024-01-08 17:41:54 +01:00
Sophie Herold
0c53c75127 image/inputHandling: Stop kinetic after zoom
Stop kinetic scrolling after having used Ctrl + Touchpaad to zoom.

Closes #165
2024-01-04 21:50:34 +01:00
Sophie Herold
b1d1d547cf image/zoom: Force zoom to center for buttons
Before, using buttons on touchscreen could zoom to the cursor position.
2024-01-04 14:37:11 +01:00
Sophie Herold
88099b1ec9 image/zoom: Make code more readable 2024-01-04 14:37:11 +01:00
Sophie Herold
56625f2309 image/zoom: Store pointer target through animation
Closes #48 #287
2024-01-04 14:37:04 +01:00
Sophie Herold
a0e4791e6b image/zoom: Functions to calculate required adj 2024-01-03 00:49:50 +01:00
Sophie Herold
fe43bc3a4c metadata: Centralize many loose ends 2024-01-01 22:43:30 +01:00
Sophie Herold
de0446bc32 print: Fix height entry having wrong upper limit
Fixes #294
2023-12-30 22:26:38 +01:00
Sophie Herold
f14cb540eb decoder: Use glycin 1.0 2023-12-29 20:10:04 +01:00
Sophie Herold
0e490f38ad print: Init preview image more cleanly 2023-12-27 00:12:44 +01:00
Sophie Herold
db6a7e7f2a image: Move most functions to imp module 2023-12-27 00:12:35 +01:00
Sophie Herold
3d5ef4038e image: Rename background_color module 2023-12-26 22:28:45 +01:00
Sophie Herold
139bd4ebb2 decoder/tiling: Make shared frame buffer a struct 2023-12-26 22:09:07 +01:00
Sophie Herold
6827a9c176 print: Use LpImage for preview 2023-12-26 21:51:39 +01:00
Sophie Herold
e387d8dc66 image: Check realized before using surface
This avoids crashes in early calls to scaling()
2023-12-26 18:36:26 +01:00
Sophie Herold
d3cd32e090 code: Drop async-std dependeny 2023-12-25 20:53:46 +00:00
Automeris naranja
4af0159341 appdata: Set developer name to "The GNOME Project"
GNOME core apps have "The GNOME Project" as the
developer name.

Closes https://gitlab.gnome.org/GNOME/loupe/-/issues/291
2023-12-24 14:46:10 -03:00
Sophie Herold
410e71141f window/controls: Keep headerbar outside fullscreen 2023-12-22 23:41:29 +01:00
Sophie Herold
4a7ef27853 window: Move overlay controlling to own module 2023-12-22 22:52:43 +01:00
Sophie Herold
2864eb7cc3 print: Only show one size input for percent 2023-12-22 21:46:41 +01:00