Commit graph

102 commits

Author SHA1 Message Date
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
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
Christopher Davis
0bc483c184 Revert "Switch to upstream gettext-rs"
This reverts commit c1632bf973
2019-05-01 22:10:59 +00:00
Igor Gnatenko
c1632bf973 Switch to upstream gettext-rs 2019-04-28 17:20:03 +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
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
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
Julian Sparber
6aa7230cdf use gspell from crates 2019-02-18 09:25:44 +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
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
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
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
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
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
Daniel García Moreno
5c0f17a42c Release 4.0.0 2018-12-22 11:19:34 +01:00
Daniel García Moreno
9a13a32f46 Beta release 3.99.1
See #396
2018-12-20 15:51:59 +01:00
Daniel García Moreno
b4dc4d2b6f Beta release 3.99.0
See #396
2018-12-14 19:46:41 +01:00
Daniel García Moreno
420e64931a Use letter-avatar from crates.io 2018-12-12 11:34:29 +01:00
Zeeshan Ali
8b39ce1f2e fractal-gtk: Bump regex requirement to 1.1.0
We'll need the latest regex in a following patch for emoji matching.
2018-12-09 22:53:21 +01:00
Julian Sparber
1ce73a7881 Notification: use GNotification 2018-12-07 12:44:23 +01:00
Daniel García Moreno
0403f14d83 Update all dependencies 2018-10-27 19:18:09 +02:00
Daniel García Moreno
ada758a33a cache: First steps to use lmdb cache 2018-10-05 09:14:49 +02:00
Julian Sparber
158f4c24a5
column: add libhandy column to message view 2018-10-01 08:32:41 +03:00
Daniel García Moreno
25f4cb948a reqwests update to 0.9.0 2018-09-20 09:24:37 +02:00
Daniel García Moreno
45977c3533 Update all dependencies 2018-09-18 10:53:15 +02:00
Jordan Petridis
c41484a86c
Remove gspell
Gspell hasn't been used since we switched to a source view for the
message entry. We should not keep it in the tree if its not used
and nobody is currenty working on wiring it up again.

Close #333
2018-09-13 22:11:53 +03:00
Daniel García Moreno
ed632140d3 Release 3.30.0 2018-09-04 09:43:06 +02:00
Daniel García Moreno
6170d0e0d5 New release 3.29.92
New features:

 * Use markup for room details
 * Direct chat and invite to user id
 * Redesign file messages
 * Improve notification title format
 * Room Topic: Remove the button, use only labels
 * MessageMenu: Copy selected text action to menu
 * Native file chooser for attachments

Fixes:
 * Don't override m.direct on direct room creation

New and improved translations and a lot of code fixes
2018-08-30 09:03:39 +02:00
Daniel García Moreno
ced28384f2 Remove unicode segmentation, not needed 2018-08-07 14:17:29 +02:00
Daniel García Moreno
8d2ed11379 New release 3.29.6
Changelog:

 * Add German translation
 * Message right click menu with: view source, reply, copy text and
   delete
 * Styles for quotes in messages
 * Initial sync speed up
2018-08-03 10:57:02 +02:00
Daniel García Moreno
d093f03bfc message.rs: Use itertools to group quotes lines
I've tried to simplify the code that group lines by quote/no-quote, it's
a lot simpler using the itertools crate.

This patch also adds a new enum for the message part, instead of use a
simple bool, so we can manage other kind of rendering in a message. I
was thinking about the Markdown code block for example.
2018-07-29 19:57:40 +02:00
Daniel García Moreno
54933a903a New release 3.29.5
* Fix multiline behaviour
 * Update spanish translations
2018-07-27 12:46:51 +02:00
Daniel García Moreno
c68fa2d651 New release 3.29.4
New features:
 * New audio player widget for audio files
 * MediaViewer now loads more images from the server
 * MediaViewer with headerbar in full screen
 * New avatar async loading and defaults
 * New room settings view
 * Multiline entry with markdown syntax highlighting
2018-07-23 19:10:23 +02:00
Daniel García Moreno
0bc7474eda Update rust deps 2018-07-23 18:53:42 +02:00
Eisha Chen-yen-su
f49f6be6cc fractal-gtk: Use msg_entry as a GtkSourceView
This modifies `msg_entry` to be a GtkSourceView in order to support
multiline message input. Messages are still sent by simply pressing the
enter key but there is also the possibility to insert line returns
within the message with Shift-Enter.

See https://gitlab.gnome.org/World/fractal/issues/154
2018-07-23 17:25:24 +02:00
Daniel García Moreno
a5d354ad31 Improve avatar async loading
The avatar was not redrawing after image download, I've moved the avatar
loading retry from the drawing method to a separated one to call just
after the backend respond so we don't retry if it's not needed and we
can redraw when the image is ready.

I've also changed the letter-avatar git dependency to use the crates.io
one.

We should improve this async user data loading, this will change in the
near future when we change to the new data model and we can have a good
cache system. Meantime this solution works.
2018-07-10 09:19:01 +02:00
Julian Sparber
8993f5fdfd avatar: refactor avatar loading and caching
* use the same method everywhere to display an avatar
* move code to generate letter avatars to a separate crate
* use the generated avatar as a fallback till the real avatar is
avaibile
* remove gtk dependecies from fractal-matrix-api

Note: The avatar in room details dialog is borken but the dialog will be
replaced soon. Also updating the username in the room history doesn't
work, the room history needs a refactor to resolve some issues.
2018-07-05 18:54:59 +02:00
Jordan Petridis
d1cfc8b633 Update gst crates and add pulseaudio to the flatpak manifest. 2018-06-26 15:24:53 +00:00
Jordan Petridis
efb685ac6a AudioPlayer: Wire the labels and slider to the gst_player. 2018-06-26 15:24:50 +00:00
Jordan Petridis
aba59f6197 AudioPlayer: Initial yak shaving, not wired up yet. 2018-06-26 15:24:50 +00:00
Jordan Petridis
b581ae4d01
fractal-gtk: Remove pining of some deps.
This was due to a bug. It has since been fixed and
it's no longer needed.
2018-06-22 16:50:40 +03:00
Daniel García Moreno
7250f95206 New release 3.29.1
New features:

 * Media viewer for images
2018-06-22 09:15:40 +02:00
Daniel García Moreno
ae80f56720 i18n: New module to use gettext with params
We can't use format with dynamic strings so we can't use gettext
response with format. To format translatable strings easily I've created
a new module so we can use like this:

```
    let literal = i18n("TESTINGx gettext");
    let nonamed_params = i18n_f("TESTING! gettext {} and {}", &["one", "two"]);
    let named_params =i18n_k("TESTING2 gettext {one} and {two}",
                             &[("one", "1"),
                               ("two", "two")]);
```
2018-06-18 13:41:09 +02:00
Daniel García Moreno
5c0316cbbd fractal-api renamed to fractal-matrix-api 2018-06-08 15:51:37 +02:00
Alexandre Franke
16e6e80517 passwd: Improve handling of uninstalled schemas 2018-06-07 23:59:08 +02:00
Daniel García Moreno
d060f47312 Adapt version number to follow gnome release cycle
We want to make Fractal a *real* GNOME app so we need to follow the
gnome version number for releases.

See #253
2018-06-01 00:19:09 +02:00
Daniel García Moreno
4b45f1c8c2 stickers: Render correctly gif and stickers button hide 2018-05-25 10:16:57 +02:00