Commit graph

859 commits

Author SHA1 Message Date
Hugo Carvalho
0d4970c57d Add Portuguese translation 2022-10-25 13:32:33 +00:00
Kévin Commaille
26c182b052
window: Only clean login if a new session is ready 2022-10-22 16:12:46 +02:00
Kévin Commaille
340fff5276
session: fix typo 2022-10-22 15:51:20 +02:00
Kévin Commaille
7ef617bfd9
window: Remove action to show greeter
It's redundant with the one to create a new session and the distinction
between the two isn't really needed.
2022-10-22 15:29:31 +02:00
Kévin Commaille
c533478e2c
login: Remove signal for new session
It is used in a single place and it's easier to call the method of
the window directly.
2022-10-22 15:16:23 +02:00
Kévin Commaille
926926491d
chore: Update Ruma 2022-10-18 10:25:12 +02:00
Julian Sparber
a40829eeb2 docs: Improve runtime dependencies section 2022-10-17 14:00:07 +00:00
Lukáš Tyrychtr
f0ac677121 sidebar: Tell accessibility tools about expanded state of categories 2022-10-14 11:18:58 +02:00
Christopher Davis
c6edc58468 event_actions: Use GtkFileChooserNative for saving
Fractal does not have a full view of the filesystem, which
means that we can't use GtkFileChooserDialog if we want users
to be able to save anywhere. Instead, we need to use the
file chooser portal via GtkFileChooserNative.

Closes https://gitlab.gnome.org/GNOME/fractal/-/issues/1064
2022-10-13 12:38:01 +02:00
Kévin Commaille
e8c3728a95 session: Use image crate to get image metadata 2022-10-12 12:44:48 +00:00
Kévin Commaille
4a0e79642d misc: Use the image crate to load images
Handle more codecs than GDK-Pixbuf and add support for animated images.
2022-10-12 12:44:48 +00:00
Kévin Commaille
7500f4cebc misc: Update image and rqrr dependencies 2022-10-12 12:44:48 +00:00
Kévin Commaille
ba430b50cc login: Handle matrix client creation in Login 2022-10-11 13:33:41 +00:00
Kévin Commaille
0487df15ab login: Split in pages and cleanup 2022-10-11 13:33:41 +00:00
Kévin Commaille
4b7703ba87
room-history: Reset scroll position when switching rooms 2022-10-11 14:16:54 +02:00
Kévin Commaille
27e96f4acb
room-history: Add an icon to files in replies 2022-10-11 14:16:54 +02:00
Kévin Commaille
97933849f4
room-history: Fix width of locations in replies 2022-10-11 14:16:53 +02:00
Kévin Commaille
19d5f87e48
room-history: Fix corners of media messages in replies 2022-10-11 14:16:49 +02:00
Kévin Commaille
cd823e5937
room-history: Request bigger thumbnails
Otherwise they are blurry because we request smaller images than the
available space.
2022-10-11 14:13:48 +02:00
Kévin Commaille
e546769dc7
misc: Fix strings and comments 2022-10-10 15:04:24 +02:00
Kévin Commaille
b0274eaaf2
room-history: Don't loop when new messages are added
The scrollbar has not been updated when the `load()` method returns,
so wait until we get notified of the change if new messages are added.
2022-10-10 14:58:41 +02:00
Kévin Commaille
f0e5d97684
account-settings: UI fixes 2022-10-10 12:49:39 +02:00
Kévin Commaille
6e82ea2f60
account-settings: Use AdwPasswordEntryRow 2022-10-10 12:49:35 +02:00
Kévin Commaille
4270577625
account-settings: Don't use AdwPreferencesPage when not needed 2022-10-10 12:49:04 +02:00
Kévin Commaille
1c891ce5fa
room-history: Add preview tooltips on linkified URLs 2022-10-10 12:06:17 +02:00
Kévin Commaille
f56b28bb44
room-history: Escape HTML entities in URLs tooltips
The tooltips consider that there is markup by default and don't like '&' that
are not escaped.
2022-10-10 12:06:17 +02:00
Kévin Commaille
0225b10ab7
room-history: Fix parsing of matrix.to URIs
ruma_common::serde::urlencoded::de chokes when there are several identical
keys, so replace it with form_urlencoded.

URIs with encoded HTML entities now recognize & in the query.
2022-10-10 12:06:17 +02:00
Kévin Commaille
7e212947fe
room-history: Fix parsing of nested mentions 2022-10-10 12:02:39 +02:00
Kévin Commaille
dd1f5b8246 session: Send media info with attachments
Generate thumbnails for images.

Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1173>
2022-10-10 08:45:13 +00:00
Kévin Commaille
7706441ee8 utils: Reorganize by creating submodules
Improve the docs.

Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1173>
2022-10-10 08:45:13 +00:00
Piotr Drąg
49d31bfff4 Update Polish translation 2022-10-09 13:35:05 +02:00
Jiri Grönroos
8e75dbd5f2 Update Finnish translation 2022-10-08 19:17:56 +00:00
Yuri Chornoivan
02235f1694 Update Ukrainian translation 2022-10-07 20:24:09 +00:00
Kévin Commaille
5d7d49a973 session: Allow to join a room by ID, alias or permalink 2022-10-07 17:10:40 +00:00
Kévin Commaille
23691dbf87 room-history: Fix parsing of matrix.to URIs that are not percent-encoded 2022-10-07 17:10:40 +00:00
Yuri Chornoivan
3d4a4b347a Update Ukrainian translation 2022-10-05 19:58:14 +00:00
Kévin Commaille
0232d98dc1
explore: Allow to explore custom matrix servers 2022-10-05 16:37:51 +02:00
Kévin Commaille
a6999bd958
chore: Update Cargo.lock 2022-10-05 16:09:12 +02:00
Kévin Commaille
91085e91df chore: Update matrix-sdk to 0.6.0 and ruma to 0.7.4
Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1177>
2022-10-05 10:04:40 +00:00
Kévin Commaille
6203ba01b3 chore: Switch to Rust 2021 edition
Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1176>
2022-10-05 09:36:22 +00:00
Paul van Tilburg
76ddc9c45a
room-history: Show location viewer error when geo URI parsing fails
This is only used for displaying locations. When previewing/sending a
location, it is assumed to be valid, so no error overlay is necessary.

* Pass a `GeoUri` object to the `LoctionViewer` and `MediaContentViewer`
  instead of a geo URI string so it is known to be valid
* Wrap the `LocationViewer` component in a `GtkOverlay` in the
  `ContentMessageLocation` component that can overlay an error message
  over the location viewer if coordinate parsing fails
2022-10-05 08:44:06 +02:00
Paul van Tilburg
85b5af0f37
room-history: Use geo_uri crate for geo URI parsing/generation 2022-10-05 08:44:06 +02:00
Kévin Commaille
ea937599e3
chore: Update libshumate dependency
Switch to the first stable release
2022-10-03 22:08:31 +02:00
Yuri Chornoivan
5b192ca5dd Update Ukrainian translation 2022-10-02 19:32:00 +00:00
Kévin Commaille
5f5ebd5730
room-history: Make title of location preview translatable 2022-10-02 19:51:27 +02:00
Kévin Commaille
4e355341a3
content: Fix unwanted rounded corners in location preview 2022-10-02 17:32:07 +02:00
Kévin Commaille
00b8bcc83a
login: Add message for translators 2022-09-28 18:37:35 +02:00
Kévin Commaille
825580cc41
misc: Don't init widgets that are TemplateChild 2022-09-28 18:14:02 +02:00
Kévin Commaille
7e46ea6a35
misc: Don't specify type if it's not needed 2022-09-28 17:51:56 +02:00
Kévin Commaille
d19bb254d5
misc: Remove RefCell or OnceCell wrapping WeakRefs 2022-09-28 17:32:50 +02:00