Commit graph

359 commits

Author SHA1 Message Date
Sophie Herold
ea3563493e image/rotation: Fix issuing edit for 0deg rotation
Rotating by 0 degrees went through the complete rotation pipeline including a image reload. Now, 0 deg rotations are ignored.
2024-08-06 14:08:24 +02:00
Sophie Herold
959a047816 image/rotation: Name variables more clearly 2024-08-06 14:02:52 +02:00
Sophie Herold
f16bd898d6 image/zoom: No different callbacks for animation
We actually don't need different callbacks for zooms with different
targets anymore since the target is an object property anyways.
2024-08-06 14:02:46 +02:00
Sophie Herold
7e227097ef metadata: Merge memory_format correctly 2024-08-05 23:43:52 +02:00
Sophie Herold
8ddaf34e87 window: Prefer wide window over properties overlay 2024-08-05 23:37:10 +02:00
Sophie Herold
4eb1e66d44 code: Update copyright 2024-08-02 21:48:44 +02:00
Sophie Herold
c1e6ccedab image/zoom: Use viewport center for buttons
Before, the image center was used, which would cause a jump if the
viewport was changed before.

Fixes #392
2024-08-01 01:18:05 +02:00
Sophie Herold
f75e64f73b window: Disable more actions if error is shown
Many operations don't make sense while an image is loading or can't be
shown like zoom or print. In these cases the actions should now be
disabled.

Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/440>
2024-07-30 18:24:53 +00:00
Sophie Herold
f2bc4a66b5 imagePage: Show spinner with small delay
That way, when quickly scrolling through images (holding down arrow
keys) no restarting spinner animations are shown in between.
2024-07-29 16:53:01 +02:00
Sophie Herold
053aa5da7e window: Add reload button and F5 shortcut
Reloading makes sense for out of memory situations or filesystems that
don't support inotify.
2024-07-29 15:53:40 +02:00
Sophie Herold
c3547f82fc svg: Handle errors for additional tiles gracefully
Some SVGs run into issues when zooming in due to memory limitations.
These errors are now ignored and the existing tiles are used.

Issue #358
2024-07-29 03:49:14 +02:00
Sophie Herold
b33943fbe2 imagePage: Show specific error for out of memory
Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/435>
2024-07-26 21:01:27 +00:00
Sophie Herold
e08866a1da image: Use enum for specific errors 2024-07-19 21:24:11 +00:00
Sophie Herold
134c488dbd errorDetails: Redesign the dialog a bit
Closes #378
2024-07-19 21:24:11 +00:00
Sophie Herold
f5cd2b822e windowContent: Remove unneeded template child 2024-07-19 15:09:45 +02:00
Sophie Herold
cd72a30d5f windowContents: Rename from fullscreenWidget
Also change some naming, comments, and bindings.
2024-07-19 14:31:36 +02:00
Christopher Davis
bb9b834a22 window: Rework properties adaptivity
Ports the sidebar to AdwOverlaySplitView, and uses AdwMultiLayoutView
to use a box at narrow sizes. A bottom sheet also
overlays the content when the window is both narrow and short.
2024-07-18 17:39:17 -04:00
Christopher Davis
230ffd5c77 general: Add fullscreen widget 2024-07-18 17:25:09 -04:00
Sophie Herold
0811a14198 cargo: Update glycin 2024-07-18 01:51:51 +02:00
Sophie Herold
0b33553144 util/gettext: Parse unicode escape sequences
Closes #351

Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/426>
2024-07-17 19:33:52 +02:00
Christopher Davis
cd68778890 image_page: Use AdwSpinner
Depends on
https://gitlab.gnome.org/GNOME/libadwaita/-/merge_requests/1201/

AdwSpinner automatically handles pausing the animation
when unmapped.

Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/420>
2024-07-17 10:55:11 +00:00
Lukáš Tyrychtr
ecc32af664 a11y: Ensure that the "Open containing folder" label is read
Just get rid of the in this case unwanted relations on the button.

Fixes #374.

Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/413>
2024-07-03 09:37:12 +00:00
Fina Wilke
5956aa6460 code: clone macro: Use convenience attributes instead of upgrade_or_else
Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/412>
2024-07-02 22:54:24 +00:00
Sophie Herold
798f2584ee code: Update copyright headers 2024-06-28 23:00:14 +02:00
Sophie Herold
afcc24e235 editor: Apply rotation to files 2024-06-21 13:11:29 +02:00
Sophie Herold
4164fa61c3 propertiesView: Bring back activatable-widget 2024-06-18 02:06:58 +02:00
Sophie Herold
e9dc3d810c code: Use new glib::clone! syntax 2024-06-18 00:37:38 +02:00
Sophie Herold
4650e6766a cargo: Update to gtk4-rs 0.9 and core 0.20 2024-06-14 17:46:33 +02:00
Yiğit Burak
b688ee6de7 propertiesView: Disable markup for all fields 2024-06-11 16:44:44 +03:00
Yiğit Burak
2d8747728f propertiesView: Disable markup for folder field
If a folder's name contains an ampersand (&) pango tries interpreting it
as markup and folder field stays empty/fails to update
Simply disabling markup fixes this
2024-06-11 01:39:57 +03:00
Anders Jonsson
6f42e31f88 imagePage: Fix typo 2024-06-01 13:40:55 +00:00
Sophie Herold
9b95a4706b code: Don't use mod.rs based on Rust Style Guide 2024-05-15 13:17:45 +02:00
Sophie Herold
c15e73274e print: Use new GTK API 2024-05-15 10:51:49 +00:00
Sophie Herold
db1bb785e1 meta: Update copyright info 2024-05-09 23:27:45 +02:00
Sophie Herold
57d8bba071 window: Use shortcuts instead of accels
Application level accels will also work if AdwDialogs are open.
Therefore, use shortcuts wherever possible.
2024-05-09 23:12:20 +02:00
Sophie Herold
e129e842a6 imagePage: Make error output look better
Make the errors on the status page translatable. Hide detailed errors
behind an extra error dialog that can be opened.
2024-05-09 14:25:06 +02:00
Sophie Herold
46a17367bd print: Do everything in request-page-setup
Otherwise we are too late to layout the page and the orientation will
not be honored by the actual printing.
We also have to use the per-page PageSetup because they are already
specualized at this point.

Closes #348
2024-04-06 18:45:42 +02:00
Sophie Herold
37ac3de2b8 metadata: Properly display exposure times > 0.5s
Closes #349
2024-04-06 17:24:24 +02:00
Sophie Herold
5295c63b91 data: Update changelog 2024-04-03 01:41:21 +02:00
Sophie Herold
30bc48514c print: Apply fill-space when changing orientation
Fixes space not being filled when option is enabled when changing to
horizontal page orientation.

Also make disablign UI signals during computational UI changes counter
based, not true false, because they can be nested.

Closes #338
2024-04-03 00:37:37 +02:00
Maximiliano Sandoval
41c26daba2 image: Use const for RGBA::new 2024-03-21 19:54:21 +00:00
Khalid Abu Shawarib
b1f4708d62 properties_view: Disambiguate translatable word 2024-03-08 16:03:46 +00:00
Sophie Herold
296817abe4 image/loading: Display first error, ignore second
Usually the first error is the relevant one. So show this one.

Why we get more than one error at all is a bit unclear.
2024-02-29 14:21:26 +01:00
Sophie Herold
0bafb1e5d3 image/backgroundColor: Scale down to to 201px
An odd number seems to help with catching some details.

Closes #328
2024-02-25 18:09:11 +01:00
Sophie Herold
92e100fdb0 image/backgroundColor: Change debugs to trace 2024-02-25 18:09:06 +01:00
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
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
8c817a3ec6 meta: Update copyright annotations 2024-02-09 20:55:26 +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