Commit graph

988 commits

Author SHA1 Message Date
Christopher Davis
3b69e8e898 fractal-gtk: Use HdyLeaflet to adapt to small sizes
Fractal's main view could only shrink so far, barring usage at smaller sizes such as a phone's screen. HdyLeaflet enables
Fractal to adapt.

Related to https://gitlab.gnome.org/GNOME/fractal/issues/377
2019-02-01 08:54:43 -05:00
Christopher Davis
0b8055dff8 appop: Remove RoomPanel enum and room_panel() func
The functionality from these symbols have been moved into
set_state().
2019-02-01 08:54:43 -05:00
Julian Sparber
9cdf4760cd room: download full list of members for each room 2019-02-01 08:46:03 +00:00
Julian Sparber
c40553c9d3 avatar: download, cache and remove room avatar 2019-02-01 08:46:03 +00:00
Julian Sparber
9b1756575b backend: clean up room avatar request
We used to request the complete room state to get only the memebers list
if there was no avatar, which was expensive and we actually have already
the members list.
This reduces memory use.
2019-02-01 08:46:03 +00:00
Christopher Davis
8537c5edc1 Revert "fractal-gtk: Use git version of tree_magic"
This reverts commit dac4e17e28.
The commit traded an inconsistent crash with a consistent freeze.
2019-01-31 16:19:24 -05:00
Christopher Davis
279d334010 markdown_popover: Remove deprecated props and clean up
`markdown_popover` used the deprecated start and end properties and abused margins to space elements out.
Now it uses the `margin` property to create margins around widgets on all sides, as well as the properties of GtkGrid and GtkBox.
2019-01-30 17:48:09 +00:00
Christopher Davis
dac4e17e28 fractal-gtk: Use git version of tree_magic
tree_magic did not previously return an Option from `from_filepath`, and used `unwrap()` internally, occasionally causing a crash when we used `is_gif()`.

On git master they have fixed this, so that's what we need to use until they put out a new release.

Related to https://gitlab.gnome.org/GNOME/fractal/issues/37
2019-01-30 00:31:10 -05:00
Daniel Mustieles
2704435800 Update Spanish translation 2019-01-29 15:51:16 +00:00
Daniel Mustieles
d2051858b9 Update Spanish translation 2019-01-28 14:19:25 +00:00
Rafael Fontenelle
71fa56f18c Update Brazilian Portuguese translation 2019-01-23 16:09:09 +00:00
Alejandro Domínguez
58c86df864 Add types related to third party protocol module API 2019-01-22 20:19:24 +01:00
azdle
2f3401f67a hookup the mouse back button to the 'app.back' action 2019-01-22 16:48:54 +00:00
Julian Sparber
6f643c12c7 backend: add a RoomMembership to Room type
This replaces some boolean properties of the Room Model with a single
property called membership. This makes the room membership (joined, left,
invited) and tag (favourties, low priority, etc) mutch more
understandable and gives the Model a better structure.
2019-01-22 17:24:32 +01:00
Daniel García Moreno
efd64a7c07 Ellipsize long display names in member list
Fix #428
2019-01-21 11:51:26 +01:00
Julian Sparber
9b6f53786f backend: force id on every Message
Since every message has to have a ID, this drops the Option for id in
the Message Model
2019-01-20 18:15:47 +00:00
Anders Jonsson
d2d1872b42 Update Swedish translation 2019-01-20 16:58:08 +00:00
Carmen Bianca BAKKER
60991cd300 Add Esperanto translation 2019-01-20 11:50:03 +00:00
Julian Sparber
aafd8096c5 sidebar: fix notification counter style 2019-01-19 11:23:43 +01:00
Piotr Drąg
58fec8d6b5 Update Polish translation 2019-01-17 11:26:12 +01:00
Piotr Drąg
182cfd9bb7 Use Unicode apostrophes in new user-visible strings
See https://developer.gnome.org/hig/stable/typography.html
2019-01-16 19:02:33 +01:00
Piotr Drąg
2c7fcb5e95 Update POTFILES.in 2019-01-16 19:00:32 +01:00
Jiri Grönroos
f77758f1e0 Update Finnish translation 2019-01-16 17:53:00 +00:00
Julian Sparber
b088a0da0c file_chooser: add file filter 2019-01-16 11:47:47 +00:00
Julian Sparber
cf68e36c75 use Gaction to change avatar in room/account settings 2019-01-16 11:47:47 +00:00
Piotr Drąg
319136b66f Update Polish translation 2019-01-15 20:07:08 +00:00
Christopher Davis
b17fe29c56 sourceview_entry: Clean up self imports
We previously included `self` of different crates so we could get things from the crates' roots with crate_name::ObjectName; This can be done in Rust 2018 without
the explicit self.
2019-01-15 10:43:07 -05:00
Christopher Davis
6982765607 fractal-gtk: Use gspell for spellchecking
With the move to GtkSourceView, we no longer had spellcheck
support in Fractal as bindings for GspellTextView were not generated.

Related to https://gitlab.gnome.org/GNOME/fractal/issues/124
2019-01-15 10:33:57 -05:00
Elizaryev Pavel
2d7c906c0a media_viewer_menu.ui: replace "..." with "…" 2019-01-15 19:19:30 +05:00
Elizaryev Pavel
5031784237 roomlist.rs: replace "favourites" with "favorites" 2019-01-15 19:19:30 +05:00
Pavel Elizaryev
c157b76f50 Fix strings:
"Save as" should probably be "Save as…"
"You’ve been invited to join to "… → "to join", not "to join to".
Time formats should use a ratio symbol ∶ as suggested by the HIG
"Favorites" → "Favourites" (multiple occurrences)

https://gitlab.gnome.org/GNOME/fractal/issues/417
2019-01-15 19:19:30 +05:00
Bilal Elmoussaoui
ff411a5763 Appdata: add kudos tags
Documentation: https://gitlab.gnome.org/GNOME/gnome-software/blob/master/doc/kudos.md
2019-01-15 07:43:37 +00:00
Bilal Elmoussaoui
d8707df903 Appdata: improve the appdata file
specs: https://freedesktop.org/software/appstream/docs/chap-Quickstart.html
2019-01-15 07:43:37 +00:00
Bilal Elmoussaoui
ba288dcaf4 meson: add tests to validate appdata/desktop file 2019-01-14 07:57:42 +00:00
Piotr Drąg
9017488331 Update Polish translation 2019-01-12 12:42:51 +01:00
Piotr Drąg
f8ed2088f4 Update POTFILES.in 2019-01-09 19:50:12 +01:00
Julian Sparber
8afbc5cd15 attach: use common filechooser widget to attach file 2019-01-08 17:58:04 +01:00
Julian Sparber
985782b3b3 file dialog: add a common filepicker dialog 2019-01-08 17:57:10 +01:00
Daniel Garcia
bd0afef09d Updated Spanish translation 2019-01-08 09:54:43 +01:00
Anders Jonsson
ec53fe1ab9 Update Swedish translation 2019-01-07 22:03:05 +00:00
Alejandro Domínguez
ff7744efc0 Use .unwrap_or_default() instead of .unwrap_or() where possible 2019-01-06 17:48:37 +01:00
Alejandro Domínguez
043e7f5d44 Call String::new() instead of String::from("") or "".to_string() 2019-01-06 17:26:12 +01:00
Alejandro Domínguez
09894a81b6 Fix warning: unused mut 2019-01-06 04:13:33 +00:00
Alejandro Domínguez
280d585a25 Reformat Cargo.toml 2019-01-06 04:13:32 +00:00
Alejandro Domínguez
84b7026b2f Upgrade to Rust 2018 2019-01-06 04:13:32 +00:00
Julian Sparber
4205a6a980 rooms: cache rooms only when the roomlist is cleared 2019-01-05 15:29:15 +00:00
Julian Sparber
78dfdc1e97 room: open default room when avaible 2019-01-02 22:54:18 +01:00
Julian Sparber
0ea988a0f3 refactor: simplify how rooms are added to the roomlist
This removes many clones and loops which where not needed.
2019-01-02 22:54:18 +01:00
Julian Sparber
f32f9cee64 refactor: pass rooms to set_rooms by value 2019-01-02 22:54:18 +01:00
Alexandre Franke
30809bccd1 Update French translation 2018-12-29 18:56:38 +00:00