Commit graph

1204 commits

Author SHA1 Message Date
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
382e0d3244 flatpak: Different app id for nightly
I've set the FRACTAL_ID env variable to change the default app id so we
can run the development version with builder at the same time that we've
the stable version in our desktop.
2018-08-07 09:41:01 +02:00
Daniel Garcia Moreno
4c63dc632a Merge branch 'flatpak-runtime' into 'master'
Flatpak: Switch to master branch of the runtime.

See merge request World/fractal!183
2018-08-07 07:40:28 +00: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
Daniel Garcia Moreno
adeeea6dc9 Merge branch 'fix-msg-src-window-deletion' into 'master'
message_menu.rs: Hide msg_src_window on deletion

See merge request World/fractal!185
2018-08-07 07:31:27 +00: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
Jordan Petridis
19d20f07f7
Flatpak: Switch to master branch of the runtime. 2018-08-07 02:05:49 +03:00
Rafael Fontenelle
7780ac096f Update Brazilian Portuguese translation 2018-08-06 18:18:30 +00:00
Daniel García Moreno
ab84b0a2d9 api: Remove not needed debug println 2018-08-06 20:13:41 +02: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
Daniel Garcia Moreno
8ca36b209b Merge branch 'view-source-visual-fix' into 'master'
Visual fixes for "Message Source" window

See merge request World/fractal!182
2018-08-04 13:27:57 +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
Daniel Garcia Moreno
2299e59637 Merge branch 'view-source-modal' into 'master'
Turn the "View Source" dialog into a modal window

See merge request World/fractal!181
2018-08-04 10:58:38 +00: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
Daniel Garcia Moreno
0604a20366 Merge branch 'redacted-messages' into 'master'
Add support for redacted messages

See merge request World/fractal!180
2018-08-03 15:16:16 +00: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
Daniel Garcia Moreno
12b5e8eafd Merge branch 'rightclick' into 'master'
message_menu: remove appOP dependecy from message_menu

See merge request World/fractal!179
2018-08-03 07:57:50 +00: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
Daniel Garcia Moreno
19308e2b82 Merge branch 'fix-popover-positioning' into 'master'
message_menu.rs: Fix the popover positioning

See merge request World/fractal!178
2018-08-01 10:21:41 +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
Daniel Garcia Moreno
1fe4779fdf Merge branch 'right-click-popover-fixes' into 'master'
Right-click messages' menu popover fixes

See merge request World/fractal!177
2018-08-01 06:16:46 +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
Daniel Garcia Moreno
5528633211 Merge branch 'message-leading-space' into 'master'
message.rs: Trim quotes and blank lines properly

See merge request World/fractal!176
2018-07-30 15:21:05 +00: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
Daniel Garcia Moreno
67336c4a46 Merge branch 'quotes-spacing' into 'master'
message.rs: Remove whitespaces around msg parts

See merge request World/fractal!175
2018-07-30 06:46:53 +00: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