Commit graph

1561 commits

Author SHA1 Message Date
Christopher Davis
ca3dd2d3b0 widgets/message.rs: Implement hold to right click
Right click is not possible on touchscreens, so our right click menu would be inaccessible.

Here we use GtkGestureLongPress to create our right click menu, but only on touch devices.
2019-02-06 11:00:11 +00:00
Marek Cernocky
260b8de1e7 Updated Czech translation 2019-02-06 09:28:02 +01:00
mairandomness
ac42237675 change CI rust-fmt checks to stable rust 2019-02-02 14:32:22 -05:00
Christopher Davis
6d99cd8593 main_window: set width-request for content
The width-request of the HeaderBar dictates what size the room HeaderBar needs to be to fold at and the minimum width of the HdyLeaflets total in this case.

Prevents the room content from becoming too narrow.
2019-02-01 08:54:43 -05:00
Christopher Davis
36c1d827b3 main_window: wrap room_info GtkBox in GtkScrolledWindow
The room_info labels could cause the leaflet to fold before
they could ellipsize, causing Fractal to fold at the wrong width. By wrapping in ScrolledWindow we work around that issue.
2019-02-01 08:54:43 -05:00
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
Alejandro Domínguez
e1455bb5fb Readability improvements to model/room.rs 2019-01-26 05:22:38 +01:00
Alejandro Domínguez
dcf51f2ef7 Backend: Implement and use filter API 2019-01-24 23:26:13 +01:00
Alejandro Domínguez
3194c13f1d Backend: Implement and use sync response types and cleanup
We implemented the structs to which we parse the sync response except
the events, which are a tough case for another commit. Some enhancements
and cleanups were made to the code surrounding the sync management in
order to be able to remove unnecessary error handling and/or queries.
2019-01-24 23:26:13 +01:00
Alejandro Domínguez
46ac06576f Backend: enhancements to backend/sync.rs
Removed a mut variable, replaced a match with an if let and used time::Duration
for storing time instead of plain integers.
2019-01-24 15:08:10 +01:00
Alejandro Domínguez
ede3e4b454 Backend: Implement and use register request and response types 2019-01-24 04:08:15 +01:00
Alejandro Domínguez
e24ef247c7 Backend: Implement and use login request and response types 2019-01-24 04:08:15 +01:00
Rafael Fontenelle
71fa56f18c Update Brazilian Portuguese translation 2019-01-23 16:09:09 +00:00
Alejandro Domínguez
b6bde7e99c Backend: implement PublicRoomsRequest
Previously we built the JSON request for listing the rooms directly. Here we do the same
by constructing a struct and then serializing it.
2019-01-22 20:57:06 +01:00
Alejandro Domínguez
9f1af03b08 Backend: use Deserialize in room_search
We replace our own deserializing logic in `room_search()` in `backend/directory.rs`
with the derived Deserialize trait on the room types.
2019-01-22 20:55:21 +01:00
Alejandro Domínguez
32ff088156 Add types related to room listing API 2019-01-22 20:52:20 +01:00
Alejandro Domínguez
ce6582d623 Backend: implement Deserialize for protocol types 2019-01-22 20:21:52 +01: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
Alejandro Domínguez
f270ad6d9a Add linter config 2019-01-20 09:27:19 +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
Jordan Petridis
5dcb990447
Flatpak: fix libhandy config options
They were changed upstream to meson auto-features it seems
2019-01-16 13:33:59 +02: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
Julian Sparber
2c30cdfd30 backend: simplify get_alias method of Member 2019-01-15 15:02:05 +00: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