Commit graph

609 commits

Author SHA1 Message Date
Alexandre Franke
c374e33786 Update French translation 2018-08-10 21:07:06 +00:00
Daniel García Moreno
ced28384f2 Remove unicode segmentation, not needed 2018-08-07 14:17:29 +02:00
Daniel García Moreno
60140b6b1c MessageMenu: Copy selected text action to menu
The message menu override the default label context menu and we can't
copy selected text using the label context menu so I've added a copy
selected text option to the message menu to do the same.

We can do something similar to add two new actions to this menu:

 * Copy link
 * Open link

We can try to check if we've a link below the cursor and in that case we
can show these two new actions.

See #195
2018-08-07 12:29:30 +02:00
Daniel García Moreno
c39ca4daae Translation in filechooser dialogs 2018-08-07 09:39:40 +02:00
Daniel García Moreno
57ef55fa68 Native file chooser for attachments 2018-08-07 09:31:52 +02:00
Eisha Chen-yen-su
f5401c26e1 message_menu.rs: Hide msg_src_window on deletion
This hides the message source window when receiving the "delete-event"
instead of destroying it so that it can be reused afterwards.
2018-08-07 09:24:54 +02:00
Rafael Fontenelle
7780ac096f Update Brazilian Portuguese translation 2018-08-06 18:18:30 +00:00
Jiri Grönroos
7e5688ee16 Add Finnish translation 2018-08-06 07:19:18 +00:00
Mario Blättermann
b7a778e7ea Update German translation 2018-08-04 19:59:31 +00:00
Eisha Chen-yen-su
5281f94274 message_menu: Use "kate" style scheme
This makes the GtkSourceView buffer use the style scheme "kate" in
order to make the syntax highlight more readable.

See https://gitlab.gnome.org/World/fractal/issues/195
2018-08-04 15:00:26 +02:00
Eisha Chen-yen-su
5e357a5ad9 UI: Make the Message Source window title bold
See https://gitlab.gnome.org/World/fractal/issues/195
2018-08-04 14:58:57 +02:00
Eisha Chen-yen-su
c210de2dc2 POTFILES.in: Rename "source_dialog" to "msg_src_window"
See https://gitlab.gnome.org/World/fractal/issues/195
2018-08-04 12:27:47 +02:00
Eisha Chen-yen-su
b0ef4d20f0 message_menu: Connect the new message source view
This connects the new message source view window and move some code
in order to make it work more properly.

See https://gitlab.gnome.org/World/fractal/issues/195
2018-08-04 11:49:14 +02:00
Eisha Chen-yen-su
48ab8d66ee UI: Remove the old source dialog
See https://gitlab.gnome.org/World/fractal/issues/195
2018-08-04 11:28:17 +02:00
Eisha Chen-yen-su
0b50687901 UI: Add a new modal window for message source view
See https://gitlab.gnome.org/World/fractal/issues/195
2018-08-04 11:27:45 +02:00
Eisha Chen-yen-su
8560af2e76 message.rs: Display clearly redacted messages
See https://gitlab.gnome.org/World/fractal/issues/195
2018-08-03 16:22:16 +02:00
Eisha Chen-yen-su
37e80c03e2 app.css: Add a CSS class for redacted messages
See https://gitlab.gnome.org/World/fractal/issues/195
2018-08-03 16:21:34 +02:00
Eisha Chen-yen-su
ab3146e80b Message: Add a redacted field to Message
See https://gitlab.gnome.org/World/fractal/issues/195
2018-08-03 16:20:42 +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
Julian Sparber
b9d7a5a99a message_menu: remove appOP dependecy from message_menu
We are moving away from the appOp therefore this removes it form the
message_menu. Also the use of different gtk:builder to load .ui files is
the better way.
2018-08-02 22:38:44 +02:00
Joaquín Rosales
12e14c899f Update Spanish translation 2018-08-02 06:46:48 +00:00
Eisha Chen-yen-su
33a7053c4d message_menu.rs: Fix the popover positioning
See https://gitlab.gnome.org/World/fractal/issues/195
2018-08-01 12:13:12 +02:00
Joaquín Rosales
3c7ae9cd71 Update Spanish translation 2018-08-01 07:46:16 +00:00
Eisha Chen-yen-su
b5270762dd message_menu.rs: Improve the popover positioning
See https://gitlab.gnome.org/World/fractal/issues/195
2018-07-31 14:54:19 +02:00
Eisha Chen-yen-su
83251c120b UI: Move "View Source" button in the menu
This moves the "View Source" button so that it is just after the "Reply"
and "Copy Text" buttons.

See https://gitlab.gnome.org/World/fractal/issues/195
2018-07-31 14:44:12 +02:00
Daniel García Moreno
ba86e472e0 Initial sync speed up
The stickers loading was done syncronously so the initial sync wasn't
launched after the stickers was loaded and that increments a lot the
initial sync time.

I've also removed the m.receipt from the filter and use the m.fully_read
that comes with the initial sync to know the last read message.
2018-07-31 11:41:56 +02:00
Daniel García Moreno
cae4942674 message: Username async for emotes 2018-07-30 17:49:17 +02:00
Eisha Chen-yen-su
febfd64001 message.rs: Trim quotes and blank lines properly
This allows the leading whitespaces of the messages to be kept.
2018-07-30 16:34:32 +02:00
Eisha Chen-yen-su
0d90afbd4b message.rs: Remove whitespaces around msg parts
This removes the leading and trailing whitespaces of each messages'
parts as we want a consistent spacing between the quotes and the rest
of the messages. Thus the spacing between a quote and a text separated
by many line returns and none will be the same.
2018-07-30 08:41:18 +02:00
Daniel Garcia Moreno
5e01895925 Merge branch 'source-dialog-scrolling' into 'master'
Improve message source dialog

See merge request World/fractal!174
2018-07-29 18:16:26 +00:00
Daniel García Moreno
35c0e8a870 Merge branch 'quotes-styling' into 'master'
Improved styling for quotes

See merge request World/fractal!173
2018-07-29 20:01:53 +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
Piotr Drąg
fab7433c0f Update Polish translation 2018-07-29 17:45:35 +00:00
Eisha Chen-yen-su
7a8baeb66d message_menu.rs: Use GtkSourceView to show source
This makes use of the GtkSourceView of the dialog in order to display
the message's source with JSON syntax highlight.

See https://gitlab.gnome.org/World/fractal/issues/195
2018-07-29 19:17:55 +02:00
Eisha Chen-yen-su
19dabf2719 source_dialog.ui: Add a scrolling GtkSourceView
This adds a scrolling GtkSourceView so that the dialog doesn't get very
large for large messages and there can be syntax highlight for JSON.

See https://gitlab.gnome.org/World/fractal/issues/195
2018-07-29 19:16:01 +02:00
Daniel García Moreno
d4598b9e73 message.rs: Remove white spaces for each line 2018-07-29 19:13:08 +02:00
Eisha Chen-yen-su
745831a86e message.rs: Divide messages in several labels
This allows to add styling for quotes (lines that start with a ">").

See https://gitlab.gnome.org/World/fractal/issues/192
2018-07-29 18:09:38 +02:00
Eisha Chen-yen-su
763ea03de8 app.css: Add a class for quotes in messages
This adds a class for the quotes in messages so that they have a 6px
left margin, a 2px blue line on the left side and their text dimmed.

See https://gitlab.gnome.org/World/fractal/issues/192
2018-07-29 14:56:28 +02:00
Daniel García Moreno
0f70977c70 po: Update the POTFILES with new files 2018-07-29 14:17:57 +02:00
Eisha Chen-yen-su
69a7224c08 fractal-gtk: Connect "Delete Message" button
See https://gitlab.gnome.org/World/fractal/issues/195
2018-07-28 10:34:32 +02:00
Eisha Chen-yen-su
5889d509c3 fractal-gtk: Connect "Reply" button
See https://gitlab.gnome.org/World/fractal/issues/195
2018-07-28 10:34:32 +02:00
Eisha Chen-yen-su
6a8d31b7d0 fractal-gtk: Connect "Copy Text" button
This connects the "Copy Text" button of the message menu that copies
the body of the message to the clipboard.

See https://gitlab.gnome.org/World/fractal/issues/195
2018-07-28 10:34:32 +02:00
Eisha Chen-yen-su
37396b3a47 fractal-gtk: Connect "View Source" menu button
This connects the "View Source" button of the menu message that shows
the message's JSON source.

See https://gitlab.gnome.org/World/fractal/issues/195
2018-07-28 10:34:32 +02:00
Eisha Chen-yen-su
66f0bd343d UI: Add a dialog to show messages' source
See https://gitlab.gnome.org/World/fractal/issues/195
2018-07-28 10:34:32 +02:00
Eisha Chen-yen-su
a9a017bfc1 Message: Add message's source
See https://gitlab.gnome.org/World/fractal/issues/195
2018-07-28 10:34:32 +02:00
Eisha Chen-yen-su
4135cc16ac fractal-gtk: Add a popover for messages
This adds a popover that is displayed when right-clicking a message.

See https://gitlab.gnome.org/World/fractal/issues/195
2018-07-28 10:34:32 +02:00
Eisha Chen-yen-su
6812c3980d UI: Add a message menu popover
See https://gitlab.gnome.org/World/fractal/issues/195
2018-07-28 10:34:32 +02:00
Daniel Garcia Moreno
59febd786d Merge branch 'patch-2' into 'master'
Add de to LINGUAS

See merge request World/fractal!170
2018-07-28 08:13:58 +00:00
Mario Blättermann
6648220bd3 Add de to LINGUAS 2018-07-27 14:45:29 +00:00
Mario Blättermann
2adf7876e5 Add German translation 2018-07-27 14:43:23 +00:00