Commit graph

1107 commits

Author SHA1 Message Date
Alistair Francis
45939221bc fractal-gtk: Rename power_levels to admins
The current power_levels variable really only describes the admins
(hence the call to get_admins()) so let's rename it to be more accurate.

Signed-off-by: Alistair Francis <alistair@alistair23.me>
2019-08-23 18:14:17 +00:00
Daniel Șerbănescu
aea9d5be85 Add Romanian translation 2019-08-23 08:16:07 +00:00
Daniel Pauls
748ab68d01 directory: Remove duplicate entries for rooms
Currently when opening the room directory and scrolling down, the
already existing rooms will get appended to the list as well as the
new ones causing duplicates.

Only appending new rooms fixes this issue.
2019-08-20 23:04:35 +02:00
Daniel Pauls
2b4c2e8ed6 directory: Rename set_directory_rooms to append_directory_rooms
A function in directory.rs is currently called set_directory_rooms, but
it's used in a way so that it appends rooms to the directory list.

Renaming the function to append_directory_rooms will clarify what it's
actually doing.
2019-08-20 23:04:35 +02:00
Alejandro Domínguez
50803772f2 API, user: Separate endpoint connection from query build 2019-08-20 20:21:52 +00:00
Alejandro Domínguez
587a8c3caf API, register: Separate endpoint connection from query build 2019-08-20 20:21:52 +00:00
Alejandro Domínguez
962143c95d API, directory: Separate endpoint connection from query build 2019-08-20 20:21:52 +00:00
Daniel Pauls
37ea7c77aa autocompletion-popover: Fix misplacement on small window widths
Currently the autocompletion-popover has a margin-left in its stylesheet
which does look misplaced if the window has a small width.

To fix this remove the left margin of the autocompletion-popover once the
transition between the 'narrow' and 'non-narrow' mode happens.

Fixes https://gitlab.gnome.org/GNOME/fractal/issues/516
2019-08-17 19:51:03 +00:00
Christopher Davis
57945eecad fractal-gtk: Migrate to GtkSourceView4
GtkSourceView3 is no longer updated.
2019-08-10 23:35:12 -07:00
Daniel García Moreno
65ed458295 Release 4.2.0 2019-07-27 09:30:29 +02:00
Daniel García Moreno
fabb950060 fractal-gtk: Don't call quit on window delete event
The quit method of AppOp was called twice because it was called on the
window delete event closure and also in the app shutdown. This patch
removes the call in the window delete event so we only left one call.

Fix https://gitlab.gnome.org/GNOME/fractal/issues/506
2019-07-27 08:24:14 +02:00
Christopher Davis
197e063157 directory: Adapt room directory for mobile sizes
Makes it so that the room directory can scale down to mobile
sizes.
2019-07-19 13:15:15 -07:00
Christopher Davis
d4af8fb48e Cargo: Update dependencies
The latest version of the libhandy bindings requires an
update to the latest version of the gtk-rs bindings. This
update comes with a few changes, including the removal of the
`Into<Option<T>` pattern in favor of explicitly using `Some(T)` for options.
2019-07-19 12:59:17 -07:00
Christopher Davis
2158b64a4b markdown: Enable highlighting during the initial load
Previously we did not enable syntax highlighting if the user
already had markdown enabled during startup. This commit
ensures that we enable it.

Closes https://gitlab.gnome.org/GNOME/fractal/issues/302
2019-07-16 18:10:21 +00:00
Daniel García Moreno
76d93a20c0 Reload active room on rooms update
We need to select again the active room when we clear the room list and
we've one active room so we can reload the list of messages.

Fix https://gitlab.gnome.org/GNOME/fractal/issues/404
2019-07-13 06:01:53 +00:00
Kukuh Syafaat
f561bcb515 Update Indonesian translation 2019-07-11 07:07:16 +00:00
Alistair Francis
de8c3cb677 app: Use gtk_window_present for activation
GTK 3.24.7 has fixed the gtk_window_present() not working in Wayland
issue described here: https://gitlab.gnome.org/GNOME/gtk/issues/624.

Since this has been fixed update our minimum GTK version and use the
present() function.

Signed-off-by: Alistair Francis <alistair@alistair23.me>
2019-07-02 21:28:25 -07:00
Daniel García Moreno
def9fe0841 Show room detail info in 1:1 rooms 2019-07-02 06:35:24 +00:00
Daniel García Moreno
0e55e01e40 Send typing notifications 2019-07-02 06:06:09 +00:00
Alexandre Franke
3fd6a47566 Update French translation 2019-06-30 17:35:36 +00:00
Rafael Fontenelle
98d7f09a86 Update Brazilian Portuguese translation 2019-06-27 07:50:48 +00:00
Daniel García Moreno
daf36388ad Fix typing notification margin
The margin of the typing_label was not exactly aligned with the text, we
have the padding left of the list (18/6) plus the size of the avatar
(40) plus double of the padding of the row (9 * 2).

With the handy column the list left padding changes from 18 to 6 so we
need to control that case and change the margin according to that.

Fix https://gitlab.gnome.org/GNOME/fractal/issues/492
2019-06-26 08:31:38 +02:00
Daniel Mustieles
114fc20c1d Update Spanish translation 2019-06-19 10:34:19 +00:00
Christopher Davis
f8092850a6 Cargo: Update secret-service & html2pango
Use the latest versions from crates.io
2019-06-12 11:59:57 -07:00
Christopher Davis
38628c4311 Update gtk-rs stack
Closes https://gitlab.gnome.org/GNOME/fractal/issues/489
2019-06-12 11:59:57 -07:00
Piotr Drąg
289a4e3319 Update Polish translation 2019-06-09 17:18:10 +02:00
Isaac Curtis
f17c87b8c0
Match gnome guidelines in kicked dialog 2019-06-01 11:27:04 -06:00
Isaac Curtis
53fce8d7a0
Add kicked_dialog.rs and kicked_room.ui to POTFILES.in 2019-06-01 11:26:48 -06:00
Jiri Grönroos
9211430850 Update Finnish translation 2019-06-01 17:11:27 +00:00
Isaac Curtis
250376a7bd Initial support for being kicked
Remove translatable from kicked dialog
2019-05-28 21:30:15 -06:00
Asier Sarasua Garmendia
6a6955b034 Add Basque translation
(cherry picked from commit 12016d65e5)
2019-05-25 09:52:25 +00:00
Piotr Drąg
c3a168b5ad Update Polish translation 2019-05-19 12:12:28 +02:00
Rodrigo Lledó
9b51d4a2cb Update Spanish translation 2019-05-17 08:18:24 +00:00
Rodrigo Lledó
dd62a33232 Update Spanish translation 2019-05-16 16:26:39 +00:00
Baptiste Gelez
1619aa3840 Update changelog: keyboard shrotcuts were added 2019-05-15 17:41:23 +01:00
Ana
7925a3338c Apply suggestion to fractal-gtk/src/widgets/roomlist.rs 2019-05-14 11:14:42 +00:00
Daniel Garcia Moreno
a6722dbfc5 roomlist: flatten sibling_id function
The sibling_id function has a complex if-else, to flatten that
I've split the functionality in three different functions with
one if-else in each one so the code is easier to read.
2019-05-14 10:59:12 +00:00
Baptiste Gelez
7348934615 Add new keyboard shortcuts to the help dialog 2019-05-14 10:59:12 +00:00
Baptiste Gelez
2e3e1fb6f7 Fix a bug when trying to go to far in the history with keyboard shortcuts 2019-05-14 10:59:12 +00:00
Baptiste Gelez
5cd2c51b14 Add keyboard shortcuts for easier navigation
- Ctrl+PageUp and Ctrl+PageDown to go to the next/previous room of the list
- Ctrl+Shift+PageUp and Ctrl+Shift+PageUp to go to the next/previous room with unread messages
- Ctrl+Home and Ctrl+End to go to the first/last room of the list
- PageUp and PageDown to go up/down in the history

Fixes #49
2019-05-14 10:59:12 +00:00
Christopher Davis
408c7ce2da fractal-gtk: Improve list keyboard navigation
Previously on both the room list and the message list,
our GtkScrolledWindows would not scroll with our focus.
This meant users that relied on keyboard navigation were
stuck at the top of our room list and the bottom of our
message list.

Now we scroll both lists as focus moves, improving
navigation for keyboard users.
2019-05-14 06:59:47 +00:00
Christopher Davis
af742af0ba notify: Use GBytesIcon
Previously we sent a GFileIcon for notifications, but the
flatpak portal does not support GFileIcon (https://github.com/flatpak/xdg-desktop-portal/issues/317).
Because of this notifications from the flatpak were
being dropped.

Now we create a GBytesIcon by loading a GFile and reading
the bytes, and set that as the icon for notifications.

Closes https://gitlab.gnome.org/GNOME/fractal/issues/490
2019-05-10 21:35:52 +00:00
Kukuh Syafaat
f8c69cbe95 Update Indonesian translation 2019-05-10 08:56:22 +00:00
Alexandre Franke
1522550314 Prepare changelog for 4.2 2019-05-05 11:20:46 +02:00
Christopher Davis
0bc483c184 Revert "Switch to upstream gettext-rs"
This reverts commit c1632bf973
2019-05-01 22:10:59 +00:00
Alexandre Franke
b454a7fcac rust: simplify loop code 2019-05-01 21:37:20 +00:00
Christopher Davis
47a83f928c cache: Don't store typing_users
Previously we cached typing_users when we saved our
state before closing, which lead to odd behaviour
when re-opening Fractal where it showed a user as typing
incorrectly.

Now we reset typing_users as we save the room.

Closes https://gitlab.gnome.org/GNOME/fractal/issues/462
2019-04-30 10:15:55 -04:00
Christopher Davis
a10c7c4ad6 ui: Unmark placeholders as translatable
As per https://gitlab.gnome.org/GNOME/fractal/issues/397,
removes translation for strings that are replaces and
translated within the code.

Fixes #397
2019-04-29 20:01:27 -04:00
Rafael Fontenelle
a4e66f8eac Update Brazilian Portuguese translation 2019-04-29 20:55:23 +00:00
Christopher Davis
839f408255 build: Add 'doc' task
Using raw `cargo doc` lead to a situation where the
documentation tried to generate without being
aware of the resources we need to build.
2019-04-29 12:42:50 +00:00