After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 766066 - entryArea: Support pasting text/image content from files
entryArea: Support pasting text/image content from files
Status: RESOLVED FIXED
Product: polari
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Polari maintainers
Polari maintainers
Depends on:
Blocks: 766068
 
 
Reported: 2016-05-06 15:45 UTC by Florian Müllner
Modified: 2016-05-10 19:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
entryArea: Support pasting text/image content from files (6.90 KB, patch)
2016-05-06 15:45 UTC, Florian Müllner
committed Details | Review
entryArea: Support pasting text/image content from files (5.13 KB, patch)
2016-05-06 15:46 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2016-05-06 15:45:39 UTC
See patch.

Bug 755573 is related, but as I'm only adding support for the existing formats/services, I'll leave the other bug for supporting generic file uploads.

Note that I'll attach two variants of the same patch - the second one avoids adding new strings, so we can apply it to the stable branch without breaking the string freeze.
Comment 1 Florian Müllner 2016-05-06 15:45:42 UTC
Created attachment 327399 [details] [review]
entryArea: Support pasting text/image content from files

For users, it is not immediately obvious why they can copy file contents
in a text/image editor and paste it into Polari for uploading, but trying
to paste the file itself only inserts a (most likely useless) URI.
Instead, accept file pastes and upload the contents to the appropriate
service if possible.
Comment 2 Florian Müllner 2016-05-06 15:46:58 UTC
Created attachment 327400 [details] [review]
entryArea: Support pasting text/image content from files

(same patch for the gnome-3-20 branch)
Comment 3 Florian Müllner 2016-05-10 19:50:53 UTC
Attachment 327399 [details] pushed as 1efcc6d - entryArea: Support pasting text/image content from files
Attachment 327400 [details] pushed as 1efcc6d - entryArea: Support pasting text/image content from files