Commit graph

1083 commits

Author SHA1 Message Date
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
Christopher Davis
f96d72654a fractal-gtk: Reduce margins when leaflet is folded
Our current margins are a little too big for a mobile screen.
So, we reduce them to 6px when we detect that the app is
folded with HdyLeaflet.

Closes https://gitlab.gnome.org/GNOME/fractal/issues/480
2019-04-29 08:29:59 +00:00
Piotr Drąg
ab299524aa Update POTFILES.in 2019-04-29 06:35:52 +00:00
Igor Gnatenko
c1632bf973 Switch to upstream gettext-rs 2019-04-28 17:20:03 +00:00
Christopher Davis
c76a8b17f3 build: Don't use globbing to find sources
Previously we were using a script to grab our sources
automatically. However, this was error-prone and meson
didn't actually understand the output.

Now we declare our sources manually. This helps meson
know when to trigger a build based on what files have
changed.
2019-04-27 16:24:08 +00:00
Christopher Davis
919037495f build: Place target in meson build dir
Instead of putting target/ and in the source
directory, we can tell our cargo script to put both target
and our cargo-home in meson's build directory. This means
that when triggering a rebuild through meson via tooling
like Builder, Fractal will actually rebuild.
2019-04-27 16:24:08 +00:00
Christopher Davis
7b1734af95 build: Build resources with meson instead of build.rs
Allows us to get rid of build.rs, which was only used to
compile resources. static_resource.rs is now created by
meson, and the meson path is used for include_bytes!.
2019-04-27 16:24:08 +00:00
Christopher Davis
bd4d7b8859 build: Use config.rs instead of env! macro
Previously we were using the env! macro to determine
build-time variables like version, app ID, and locale dir.
Instead of relying on env vars, we can create a configuration
file with meson and import it.
2019-04-27 16:24:08 +00:00
Kukuh Syafaat
1a4ed5dd43 Update Indonesian translation 2019-04-24 11:39:04 +00:00
Piotr Drąg
37f3a59de5 ui: Fix translatable attribute in login_flow
It takes “yes,” not “true”.
2019-04-21 15:13:33 +00:00
Piotr Drąg
540863923d Update Polish translation 2019-04-21 13:03:57 +02:00
Daniel Mustieles
f63fc170c3 Update Spanish translation 2019-04-17 10:33:41 +00:00
Piotr Drąg
b35b06dc13 Update POTFILES.in 2019-04-16 18:23:18 +02:00
Christopher Davis
e1fbb54ca4 login_flow.ui: Add mnemonics for keyboard navigation
mnemonics are a tool used for faster keyboard navigation,
and help with accessibility.

This commit adds mnemonics for every entry and button that
either has a label or doesn't have another shortcut.
2019-04-15 10:30:58 -04:00
Christopher Davis
56d71ad161 fractal-gtk: Add shortcuts to login view
Adds keyboard and mouse shortcuts for the back action
in the login view. Now users can press back on their
mouse or hit Escape to go back in the login stack.
2019-04-15 10:30:58 -04:00
Christopher Davis
66e95aa151 fractal-gtk: Redesign Login Flow
This is a complete overhaul over the interface for login.

* widgetifies the login view (removes app/connect/login.rs)
* Instead of asking for the identity server, uses .well-known
* No longer assumes a homeserver

Closes #448
2019-04-15 10:30:58 -04:00
Christopher Davis
336f0b22ae ui: Separate login from main_window.ui
Branches the login flow off from the main window's UI file.
Like the account settings view we can add it to the stack
manually at run-time. This cuts down greatly on the
complexity of the main_window file.
2019-04-15 10:30:58 -04:00
Alexandre Franke
7eec414e3c rust: fix some warnings 2019-04-14 18:07:26 +02:00
Jiri Grönroos
0e08877ef4 Update Finnish translation 2019-04-14 12:36:33 +00:00
Kukuh Syafaat
67eaee9609 Add Indonesian translation 2019-04-12 10:31:35 +00:00
Symphorien Gibol
c0de295a2c AppOp::set_active_room_by_id: call set_state after changing the active room
Fixes GNOME/fractal#470
2019-04-10 06:47:46 +00:00
Rafael Fontenelle
5c4afada48 Update Brazilian Portuguese translation 2019-04-05 12:38:50 +00:00
Zander Brown
cd750dec44
Only add margin to the start of message rows
Allows text to flow right to the edge, important on smaller devices

Also avoids use of child properties which are going away soon
2019-04-03 21:50:30 +01:00
Christopher Davis
d0887529fa media_viewer: Remove zoom controls
Until we get a proper image viewer widget, we've
decided that it's best to remove the zoom controls
instead of having broken ones.
2019-04-02 07:43:04 +00:00
Piotr Drąg
f39555bbc4 Update Polish translation 2019-03-25 12:55:41 +01:00