Christopher Davis
439286be40
general: Use std's OnceCell where possible
...
Rust's standard library now provides a drop-in replacement
for `OnceCell`. It requires no API changes from `once_cell`'s
version.
This commit replaces the version from `once_cell` with the
new `std` struct where possible. We still need to use
`once_cell` for properties until
https://github.com/gtk-rs/gtk-rs-core/pull/1113
is merged. We also still need it for Lazy until that lands.
Part-of: <https://gitlab.gnome.org/GNOME/Incubator/loupe/-/merge_requests/241 >
2023-06-23 18:59:09 +00:00
Huan Thieu Nguyen
ffb2e1064d
window: Toast priority high to push old toast to queue.
2023-06-21 19:13:46 +00:00
Sophie Herold
eb94683d1f
fileChooser: Only list supported image formats
...
Closes #151
Part-of: <https://gitlab.gnome.org/GNOME/Incubator/loupe/-/merge_requests/238 >
2023-06-21 10:03:38 +00:00
Sophie Herold
cc1c8a3da5
image: Use contains in modifier type flag checks
...
This, for example, allows to also pan the image
with Ctrl+Shift+Scroll like in EOG.
Closes #175
Part-of: <https://gitlab.gnome.org/GNOME/Incubator/loupe/-/merge_requests/237 >
2023-06-20 20:42:14 +00:00
Sophie Herold
0c2bdbd736
image: Do not guess bg color for opaque images
...
In theory this feature made sense to see a black square
but in practice it seems mostly confusing.
Closes #186
Part-of: <https://gitlab.gnome.org/GNOME/Incubator/loupe/-/merge_requests/235 >
2023-06-20 20:02:18 +00:00
Sophie Herold
c1422cf728
image: Notify when setting file property
...
This fixes new file names not being shown in HeaderBar
after renames.
2023-06-20 16:54:38 +02:00
Sophie Herold
3dd59c87ed
fileModel: Correct changed checks in file monitor
...
Those got accidentally inverted when moving to GFile.
Close #199
2023-06-20 16:42:51 +02:00
Sophie Herold
2faef84321
image: Also set zoom target when not animating
...
This currently only seems to affect HighRes scrolling
where SVGs are not rendered for the zoom level.
Closes #185
2023-06-20 13:23:21 +00:00
Sophie Herold
ae40ad4249
flatpak: Update to llvm16
2023-06-20 11:54:59 +02:00
Quentin PAGÈS
943ef5f867
Update Occitan translation
2023-06-15 15:46:20 +00:00
Sabri Ünal
b889665c95
Data: Fix Loupe URL
...
Fix out-of-date Loupe URL.
Fixes : #181
2023-06-10 22:35:21 +03:00
Sophie Herold
8d8197dda4
fileModel: Add missing IS_HIDDEN file attribute
2023-06-07 23:47:58 +02:00
Sophie Herold
291fa13d1f
meta: Update copyright headers
2023-06-07 23:44:20 +02:00
Sophie Herold
1b2dde79b6
decoder: Use glycin for image loading expect SVG
...
This gives us sandboxed image decoding and others the
option to extend Loupe with other image formats.
2023-06-07 20:21:28 +00:00
Sergej A
d690c0e2d8
Update Russian translation
2023-06-07 15:05:57 +00:00
Jiri Grönroos
43fa2191f4
Update Finnish translation
2023-06-06 16:00:17 +00:00
Yaron Shahrabani
77b75b6900
Update Hebrew translation
2023-06-01 11:34:47 +00:00
Christopher Davis
6df16aaa71
application: Remove backspace as a trash shortcut
...
Closes https://gitlab.gnome.org/GNOME/Incubator/loupe/-/issues/183
Part-of: <https://gitlab.gnome.org/GNOME/Incubator/loupe/-/merge_requests/229 >
2023-05-31 22:04:33 +00:00
Christopher Davis
77c81c8f7c
window: Use sp instead of px for breakpoints
...
sp is a unit provided by libadwaita for sclae-independent pixels.
This unit changes with the text scale factor.
Part-of: <https://gitlab.gnome.org/GNOME/Incubator/loupe/-/merge_requests/228 >
2023-05-31 21:32:40 +00:00
Christopher Davis
a5cb0606b4
window: Remove stack from breakpoint
...
The stack widget is always visible, and does not need to be
set as visible again when the breakpoint is applied/unapplied.
Part-of: <https://gitlab.gnome.org/GNOME/Incubator/loupe/-/merge_requests/228 >
2023-05-31 21:32:40 +00:00
Christopher Davis
5297231137
window: Use only one breakpoint
...
AdwBreakpoint automatically resets properties when the breakpoint
conditions no longer apply. This means we don't need to manually
create a breakpoint for the sidebar at widths greater than 590px,
as libadwaita already does that for us.
This commit removes the extra breakpoint.
Part-of: <https://gitlab.gnome.org/GNOME/Incubator/loupe/-/merge_requests/228 >
2023-05-31 21:32:40 +00:00
Christopher Davis
4d391b566e
window: Remove extra quotes
...
Some extra quotes were left in the UI file. Thankfully because
these were fully closed, they weren't causing any issues. Still,
they don't need to be there.
This commit removes the extra quotes.
Part-of: <https://gitlab.gnome.org/GNOME/Incubator/loupe/-/merge_requests/228 >
2023-05-31 21:32:40 +00:00
Kukuh Syafaat
40cbf6001b
Update Indonesian translation
2023-05-31 12:30:40 +00:00
Huan Nguyen
735451250c
imageView: Merge set_image_from_file with set_images_from_files
...
Also changing behavior when opening with multiple command line
arguments or when multiple images were selected from other
applications.
Old behavior: Spawn an instance of Loupe for each argument.
New behavior: One Loupe instance containing all arguments.
Closes #195
2023-05-30 12:52:59 +00:00
Piotr Drąg
6dda1eeb50
Update Polish translation
2023-05-28 10:08:54 +00:00
Hugo Carvalho
ea3305fb63
Update Portuguese translation
2023-05-26 21:07:12 +00:00
Danial Behzadi
473e32e8fb
Update Persian translation
2023-05-26 15:19:02 +00:00
Martin
92fb9c0521
Update Slovenian translation
2023-05-26 07:36:21 +00:00
FineFindus
a3a0ccdf52
imageView: Replace magic values with adw::ToastPriority
2023-05-25 10:56:38 +00:00
FineFindus
32be6c8246
imageView: Check set wallpaper response
...
Closes #166
2023-05-24 15:34:52 +00:00
Jürgen Benvenuti
9a940a43ba
Update German translation
2023-05-24 08:35:45 +00:00
Ekaterine Papava
f541457542
Update Georgian translation
2023-05-24 03:37:22 +00:00
Yuri Chornoivan
8d7e9cdd38
Update Ukrainian translation
2023-05-23 19:59:12 +00:00
Huan Thieu Nguyen
c6897da62d
window: Let the user select multiple files to open.
...
Uses code that drag and drop already uses. It's kinda ugly because the
file dialog returns a ListModel.
As an added bonus, since the button responds to the action "win.open",
it will also allow open multiple files with the primary menu.
It would be a good idea to change the "Open…" label in the primary menu though.
Closes #191
2023-05-21 23:41:22 +02:00
Huan Nguyen
8804938859
window: Support forward and back mouse buttons
...
The button value for forward is 9. See <GNOME/gtk#515>.
Closes #172
2023-05-21 16:17:48 +00:00
Huan Nguyen
0ddecefe01
imagePage: Correctly align right-click menu
...
Before it was incorrectly centered
2023-05-21 16:03:13 +00:00
Sabri Ünal
5c5aea286f
Update Turkish translation
2023-05-20 06:29:13 +00:00
Gage Berz
0679d08c22
fileModel: Skip hidden files
...
Closes #179
2023-05-17 15:49:13 +00:00
Jürgen Benvenuti
7031b04d8b
Update German translation
2023-05-14 08:48:03 +00:00
Asier Sarasua Garmendia
710bc2b59c
Update Basque translation
2023-05-13 09:00:25 +00:00
Sophie Herold
2fc7ca601a
CI: Publish nightly builds
2023-05-13 03:27:18 +02:00
Sophie Herold
e9c079c9b0
doap: Add XML declaration and update URLs
2023-05-13 03:12:50 +02:00
Sophie Herold
d19a5bcf4d
data: Prepare 44.3
...
Part-of: <https://gitlab.gnome.org/GNOME/Incubator/loupe/-/merge_requests/216 >
2023-05-11 18:23:53 +00:00
Sabri Ünal
22874fcc7b
help-overlay: Remove unused help shortcut
...
Complementary to #2965799374
Part-of: <https://gitlab.gnome.org/GNOME/Incubator/loupe/-/merge_requests/199 >
2023-05-11 18:04:01 +00:00
Fran Dieguez
112c37905f
Update Galician translation
2023-05-11 10:49:44 +00:00
Sophie Herold
443f955e9f
cargo: Update deps
2023-05-11 02:50:56 +02:00
Sergej A
ed975b78eb
Update Russian translation
2023-05-06 12:13:01 +00:00
Sophie Herold
dbf662ed3a
heif: Ignore EXIF rotation info for now
...
Ideally we would check if HEIF has transformations
but that will only work when libheif 1.16 is supported
Closes #157
2023-05-04 21:02:42 +02:00
Sophie Herold
3dc9e40bcb
imageView: Fix vertical minimum size in measure
2023-05-03 23:47:40 +02:00
Sophie Herold
6e29b1ebff
window: Move properties to bottom for narrow view
...
Closes #39
2023-05-03 23:41:36 +02:00