Commit graph

568 commits

Author SHA1 Message Date
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
DaPigGuy
dfd74b060f
window: Port delete confirmation to AdwAlertDialog 2024-06-11 23:32:45 -07: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
Andre Klapper
4ca5f9e03d About dialog: Link to GitLab Issues instead of New Issue URL
When not logged in, the New Issue URL only redirects to an unhelpful
login page while the Issues page allows you to search for existing
issues and still offers a "New Issue" button.
2024-05-20 17:44:27 +02: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
Dexter Reed
b99575d8d0 feat: Port about window to adw::Dialog (Adw.Dialog)
Other Changes:

Change window height to 294 to fit the HIG:
https://developer.gnome.org/hig/guidelines/adaptive.html#small-size-handling

Change adw features version in `Cargo.toml` from `v1_4` to `v1_5` to use
the new dialog widget(s)
2024-05-08 20:54:25 +00:00
Sophie Herold
74482bf6b6 util: Remove unused code 2024-05-08 22:53:50 +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
0757bf5a5c main: Set GDK_DEBUG=gl-no-fractional by default 2024-04-04 22:45:42 +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
Sophie Herold
4f6e988d06 fileModel: Fallback to FAST_CONTENT_TYPE
GVfs smb does not provide a FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE if the
content type is ambiguous. This happens for png/apng. Since we only need
to know if something is probably an image, we can use the fast content
type instead.

Closes #339
2024-03-28 22:21:20 +00:00
James Frost
a89279d556
window: Don't animate mouse fwd/back button
The forward and back buttons often found on the side of mice are binary
inputs in the same way keyboard keys are. After the change in !373 where
key presses where made instantaneous the mouse buttons have been
inconsistent. This change rectifies that.

Fixes #340
2024-03-28 21:21:22 +00: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
199d258577 Change to "gl" as GSK default renderer
Due to performance reasons
<https://gitlab.gnome.org/GNOME/gtk/-/issues/6411>
2024-03-02 21:58:10 +01: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
006d3dc5b4 cargo: Update to glycin 1.0.beta.2 2024-02-22 20:55:38 +00: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
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