Commit graph

1604 commits

Author SHA1 Message Date
Christopher Davis
908a837b78 room_history: re-enable kinetic scrolling after loading more
Previously kinetic scrolling was disabled while loading more
messages and was never re-enabled. This could lead to rooms
not scrolling with touch gestures.

Now after we add widgets to the top, we re-enable kinetic
scrolling for our ScrolledWindow.

Fixes https://gitlab.gnome.org/GNOME/fractal/issues/458
2019-03-14 13:46:29 +00:00
Anders Jonsson
2421ac1bd7 Update Swedish translation 2019-03-13 09:59:27 +00:00
Daniel García Moreno
54a1144ea8 Merge branch 'merge-requests/387'
account_settings: Remove revealer boxes

https://gitlab.gnome.org/GNOME/fractal/merge_requests/387
2019-03-13 10:40:57 +01:00
Xiang Fan
04aca0129c account: Downgrade scroll for callbacks 2019-03-13 09:00:46 +00:00
Xiang Fan
330bca114b account: Reduce unwanted scrolling
"size-allocate" signal can be triggered even when the revealer's state
doesn't change, so we need to check if the revealer is actually
revealing.

The 'obvious' solutions for this don't work. If we connect to
"child-revealed", the scroll only happens *after* expanding the
revealer. If we connect to "reveal-child", we'll only scroll to the
bottom at the beginning of the revealer's expansion, so the list will
grow longer without scrolling.

The handling is still imperfect though, since we always scroll to bottom
regardless where the revealer is.
2019-03-13 09:00:46 +00:00
Christopher Davis
a3654a6ae1 fractal-gtk: Clean up some mistakes with loggerv
When allowing stable builds to test verbosity, there
were a few mistakes that caused the stable build to fail.
This commit cleans up those mistakes and makes sure
we don't have an unused variable that produced a warning
for stable builds.
2019-03-10 05:13:52 +00:00
Rafael Fontenelle
4637c042a3 Update Brazilian Portuguese translation 2019-03-09 21:34:24 +00:00
Daniel Mustieles
1327faef17 Update Spanish translation 2019-03-08 11:46:41 +00:00
Nathan Follens
f52f26449d Add Dutch translation 2019-03-08 10:14:08 +00:00
Christopher Davis
8995697f54 fractal-gtk: Use clap to set verbosity for release builds
By default, a release build of Fractal will only log errors.
A debug build will use the max level for development
purposes.

Running `fractal -v` will get users the same verbosity as
the debug build. Subsequent `-v`s will use increased
verbosity that will include extra info from our dependencies.
2019-03-07 20:59:51 +00:00
Christopher Davis
8f8a2d0a94 fractal-gtk: Use loggerv for log output
Previously we moved from println! to the `log` crate, but `log` requires you to set a logger in order to output anything. `loggerv` is one such logger, with detailed output that tells you exactly where a log comes from.

Closes https://gitlab.gnome.org/GNOME/fractal/issues/430
2019-03-07 20:59:51 +00:00
Piotr Drąg
a91a1a1681 Update Polish translation 2019-03-07 11:59:15 +01:00
Rasmus Rendal
48c8013be4 Add typing notifications
Add handler for incoming typing notifications in the sync loop
Add an appop handler for typing notifications to the frontend

Feature added for #305
2019-03-07 08:40:03 +00:00
Xiang Fan
b2135efac2 account_settings: Remove revealer boxes 2019-03-04 09:53:47 +00:00
Christopher Davis
6c68fd2d40 build: Bump libhandy to 0.0.8
libhandy 0.0.8 fixes RTL support for HdyLeaflet.

Closes https://gitlab.gnome.org/GNOME/fractal/issues/444
2019-02-28 08:36:07 +00:00
Xiang Fan
9e92d3e1ab room_history: Add missing day divider between existing and old messages 2019-02-27 10:04:13 +00:00
Daniel Mustieles
ecbf32d489 Updated Spanish translation 2019-02-26 09:17:39 +01:00
mairandomness
e795177d27 create get_file_media_info 2019-02-25 14:41:41 -05:00
Piotr Drąg
2fa9b3f32b Update Polish translation 2019-02-25 13:49:59 +01:00
Robert Griesel
b4b38868ad Save and restore window state
Size, position and window maximize state are saved in gsettings
when closing Fractal. They are then restored on startup.

Window position is not working on all windowing systems.

Fixes #123
2019-02-25 11:01:33 +00:00
Xiang Fan
d7d7ae3004 cache: Fix reinitializing cache after destroying it
Currently the cache's directory is only initialized at first access. If
the cache gets destroyed the directory won't be created again, so future
cache data in the process cannot be saved. This can be reproduced by
logging in immediately after logout.
2019-02-25 07:54:14 +00:00
Xiang Fan
bba93fc3ea account: Fix minor typo 2019-02-24 21:37:50 +08:00
mairandomness
74fd2379be bump gst-editing services version to 1.14 2019-02-24 07:58:57 -05:00
mairandomness
9eb315a816 delete temporary thumbnail file 2019-02-24 07:58:57 -05:00
mairandomness
d71da4afec change thumb path to random file name in temp 2019-02-24 07:58:57 -05:00
mairandomness
a384c19472 create upload_thumbnail
change get_image_media_info to include thumbnail

propagate need for backend

try to debug the code

remove a println I forgot

Progress on using channel for thumb uploads

move thumbnail code to the backend

fix mimetype on json and only call ge_image_media_info on image files

remove random 'e' from util.rs

move get_image_media_info back to the frontend

create Info struct

hehe

lol
2019-02-24 07:58:57 -05:00
Mario Blättermann
25c369655f Update German translation 2019-02-22 21:49:34 +00:00
mairandomness
e8bb1c71e2 add proper type categorization on audio file upload
add duration to

remove unwraps and put early return in place

change branch in flatpak file to master for our master branch

add gstreamer-editing-services dependency

trade match statements for the ? operator

start video upload support

match mime types from the matrix-sdk library

delete meee
2019-02-21 20:59:01 -05:00
Yuri Myasoedov
6375f530eb Add Russian translation 2019-02-20 18:36:14 +00:00
Julian Sparber
6aa7230cdf use gspell from crates 2019-02-18 09:25:44 +00:00
Julian Sparber
29a87501af backend: use gloable timeout for http request 2019-02-18 08:55:22 +00:00
Julian Sparber
dd9a14ddce backend: create only one reqwest client 2019-02-18 08:55:22 +00:00
Balázs Meskó
9446b2d716 Add Hungarian translation
(cherry picked from commit aedbeb241e)
2019-02-17 23:44:21 +00:00
Artem Polishchuk
5753d37582 Add Ukrainian translation 2019-02-16 14:32:12 +00:00
Christopher Davis
345c267d9f fractal-gtk: Use HdyDialog for Dialogs
HdyDialog is an adaptive version of GtkDialog that's always modal and adapts to fit the size of the screen if folded with HdyLeaflet. In the process of changing to use HdyDialog the width_request of the dialogs was moved from the window to their HeaderBars.

Related to https://gitlab.gnome.org/GNOME/fractal/issues/377
2019-02-15 12:03:11 -05:00
Christopher Davis
1d355eacb6 meson.build: Bump libhandy dependency
HdyDialog is a new feature in 0.0.7 that we need.
2019-02-15 11:58:04 -05:00
Alejandro Domínguez
2d8e9764e3 API: use global variable for device name 2019-02-15 13:19:52 +00:00
Alejandro Domínguez
dc924b1be0 API: Implement and use user request and response types 2019-02-15 13:19:52 +00:00
Alejandro Domínguez
1ce06f4245 API: rework authentication in register model 2019-02-15 13:19:52 +00:00
Christopher Davis
1239698960 dependencies: Remove tree_magic from fractal-matrix-api
tree_magic was also used to get the mime type of uploads. We
can instead use gio::content_type_guess(). We can use it here because we are handling bytes, which is what it requires.
2019-02-14 16:51:34 -05:00
Christopher Davis
4d601d6472 dependencies: Remove tree_magic from fractal-gtk
Fractal crashes when switching to rooms with images due
to an issue with tree_magic. We used tree_magic to sniff out
the mime type, but we can use gio::FileInfo instead.

Related to https://gitlab.gnome.org/GNOME/fractal/issues/37
2019-02-14 16:51:27 -05:00
Jiri Grönroos
1f6cb8b676 Update Finnish translation 2019-02-10 17:59:43 +00:00
Christopher Davis
5f5903ad46 room_settings: Wrap settings in HdyColumn
Allows for the room settings to fit within small sizes.

Related to https://gitlab.gnome.org/GNOME/fractal/issues/377
2019-02-06 18:22:04 +00:00
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