Alexandre Franke
5921e2b1ee
media: add tooltip to fullscreen button
...
Fixes #272
2020-07-28 20:17:12 +02:00
Bilal Elmoussaoui
ab56037822
misc: use the nightly icon for devel
...
this also remove the desktop file suffix
as it's not needed to distinguish both versions anymore
2020-07-28 13:22:51 +02:00
Alejandro Domínguez
1c75b554f5
Remove usage of Url in (de)serialization structs
...
It seems that Synapse sometimes sends junk data in fields where a URL
is expected. Since there are plans to use the ruma libraries and they
don't use Url intentionally, doing this fixes #642 and adapts the code
for the future inclusion of ruma.
2020-07-23 05:29:10 +02:00
Daniel García Moreno
cd012a8a17
fractal-gtk: Remove avatar from cache on update
...
When the avatar is updated the cached image should be removed in order
to force a download of the new one.
This patch adds a new function to remove a user info from the cache and
do call to this new function when the user avatar is updated.
2020-07-22 11:39:57 +02:00
Daniel García Moreno
b60122beb5
fractal-gtk: Add AppOp to AccountSettings
...
During the App::connect_gtk the login_data is None, so the
AccountSettings is not initialized correctly.
We need to get the login_data when we are going to change the avatar,
because that data can change during the app usage.
This patch uses the AppOp shared reference to get the updated data just
on click.
Fix https://gitlab.gnome.org/GNOME/fractal/-/issues/652
2020-07-22 10:30:01 +02:00
Alejandro Domínguez
66a642530f
Separate the use of URLs and local paths
2020-07-21 16:39:19 +02:00
Alexandre Franke
283301a848
Update French translation
2020-07-21 10:11:45 +00:00
Boyuan Yang
6cfeb6445c
Update Chinese (China) translation
2020-07-19 17:55:51 +00:00
Piotr Drąg
b2581d5333
Update Polish translation
2020-07-19 13:55:28 +02:00
Rafael Fontenelle
7bd7523d90
Update Brazilian Portuguese translation
2020-07-18 11:08:47 +00:00
James Westman
36ce8cd1cf
media_viewer: Swipe to navigate
...
Adds a swipe gesture to navigate back and forth in the media viewer.
Also removes the scrolled window and viewport, since they aren't necessary.
2020-07-16 16:16:51 -05:00
Florentina Mușat
b2de1700ca
Update Romanian translation
2020-07-16 11:12:39 +00:00
Florentina Mușat
914f6ea531
Update Romanian translation
2020-07-14 15:03:02 +00:00
Yuri Chornoivan
4f95f832af
Update Ukrainian translation
2020-07-14 10:35:02 +00:00
Alejandro Domínguez
b1d7311bb2
Return errors without conversion
2020-07-13 17:09:22 +02:00
Alejandro Domínguez
0f15121615
Make get_client() infallible
...
If getting the system proxies fails, the request will fail.
This will enable us to use only the reqwest error type easily
in many places.
2020-07-12 17:51:38 +02:00
Piotr Drąg
783e7d388e
Update Polish translation
2020-07-12 13:19:36 +02:00
Florentina Mușat
f314183ca5
Update Romanian translation
2020-07-10 13:41:29 +00:00
Alejandro Domínguez
23641cf436
Remove unused crates
2020-07-10 07:05:56 +00:00
Alejandro Domínguez
5854606889
Remove glib_thread stuff
2020-07-10 07:05:56 +00:00
Alejandro Domínguez
7c694015dd
Fix account details loading
...
Applies the changes proposed by Link Dupont. Fix #592
2020-07-09 17:18:21 +00:00
Yuri Chornoivan
31fc6f259e
Update Ukrainian translation
2020-07-09 11:32:41 +00:00
Alejandro Domínguez
67c7b018b7
Get rid of upgrade_weak! and use glib::clone! where possible
2020-07-09 06:03:19 +00:00
Alejandro Domínguez
4c425b9a6c
Use clone! macro from glib
2020-07-09 06:03:19 +00:00
Florentina Mușat
4bd7a0223c
Update Romanian translation
2020-07-08 11:52:37 +00:00
Daniel García Moreno
173681729b
Update POTFILES.in with latest source files
2020-07-07 18:05:14 +02:00
Alejandro Domínguez
19c77a6f6f
App: use trait for errors
...
There is a big match block in `fn dispatch_error` to handle all error
cases, which are modeled with a big enum with many variants. Since there
is an error case for each request, this can be changed to isolated data
structures that implement a common trait. Done this way, extending and
modifying existing error cases becomes easier. Moreover, there is no
need to check among so many variants and then run the proper piece of
code; traits pass a pointer directly to the function.
2020-07-06 15:02:19 +02:00
Daniel García Moreno
bd1c55b5f0
clippy: Use AtomicBool instead of Mutex<bool>
...
https://rust-lang.github.io/rust-clippy/master/index.html#mutex_atomic
2020-07-06 06:04:27 +00:00
Daniel García Moreno
e39554b4d5
clippy: Remove media_viewer data new function
...
The Data::new function is not needed, it just creates the struct with
the same params. This patch removes this method and moves the struct
creation to the MediaViewer constructor.
https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
2020-07-06 06:04:27 +00:00
Daniel García Moreno
1c76de280a
clippy: Remove unused imports
2020-07-06 06:04:27 +00:00
Daniel García Moreno
78325f3629
clippy: Use type
definition for async channel types
...
https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
2020-07-06 06:04:27 +00:00
Daniel García Moreno
61f52d80b8
clippy: Rename RelativePosition enum
...
This patch changes the RelativePosition enum to follow the enum variant
names rule:
https://rust-lang.github.io/rust-clippy/master/index.html#enum_variant_names
2020-07-06 06:04:27 +00:00
Daniel García Moreno
c06d54b923
clippy: Remove redundant clones
...
https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
2020-07-06 06:04:26 +00:00
Piotr Drąg
493c34ee54
Update Polish translation
2020-07-05 11:52:41 +02:00
Yuri Chornoivan
e286b98deb
Update Ukrainian translation
2020-07-03 12:24:14 +00:00
Juraj Fiala
881c10799c
fractal-gtk: message widget: Show last edit date in tooltip
2020-07-02 10:36:02 +00:00
Juraj Fiala
16bed11123
fractal-gtk: message widget: Mark edited messages
2020-07-02 10:36:02 +00:00
Juraj Fiala
3f46aa69c6
fractal-gtk: Wire up message replacements
2020-07-02 10:36:02 +00:00
Juraj Fiala
20bf9ee48b
fractal-gtk: room_history: Allow replacing messages
2020-07-02 10:36:02 +00:00
Juraj Fiala
38033997c1
fractal-matrix-api: Handle replace messages
2020-07-02 10:36:02 +00:00
Alejandro Domínguez
2f3532d03d
Move as much as possible from fractal-matrix-api to fractal-gtk
2020-06-30 22:01:04 +02:00
Alejandro Domínguez
bc33790afb
API: move items around
2020-06-30 21:57:28 +02:00
Alejandro Domínguez
aac1d91d68
App: use mod aliases for imports
2020-06-30 21:57:28 +02:00
Alejandro Domínguez
5057f910d6
API: move stuff to the root of the backend module
2020-06-29 08:28:10 +00:00
Alejandro Domínguez
8ffa747bee
App: remove backend loop
2020-06-29 08:28:10 +00:00
Alejandro Domínguez
54ba60be54
API: remove backend loop
2020-06-29 08:28:10 +00:00
Alejandro Domínguez
5ea9182f0a
API: manage sync module from app directly
2020-06-29 08:28:10 +00:00
Alejandro Domínguez
f67d943ab7
API: manage room module from app directly
2020-06-29 08:28:09 +00:00
Alejandro Domínguez
66a67e7b37
API: manage register module from app directly
2020-06-29 08:28:09 +00:00
Daniel García Moreno
d44e439638
fractal-gtk: Fix loggerv init with debug_assertions
...
This patch is a quick fix for the regression introduced in this commit:
146df508d3
The loggerv init method should be called just once, and it's different
depending on the debug_assertions flag.
2020-06-29 10:26:11 +02:00