Commit Graph

65 Commits

Author SHA1 Message Date
Comrade DOS
08cd37b814 [preview] Adding detection of supported mime types at runtime 2020-03-17 20:49:00 +01:00
Philipp Hörist
5a0e69961f [preview] Rename directory vars 2019-12-26 21:54:17 +01:00
Philipp Hörist
25bf2d4ed5 [preview] Rewrite plugin 2019-12-26 21:44:18 +01:00
André Apitzsch
206c2812f3 [preview] Remove reference to unavailable setting 2019-11-10 16:02:12 +01:00
Philipp Hörist
2517c0e849 [preview] Adapt to Gajim changes
- Open files with open_file()
2019-11-09 10:50:01 +01:00
Philipp Hörist
ac32f7fd75 [preview] Use cross-platform compatible cursor 2019-09-04 22:22:02 +02:00
Daniel Brötzmann
e73114c01e [preview] Cleanup code 2019-06-22 17:15:38 +02:00
Daniel Brötzmann
e4c7c446fc [preview] Open file directly if encrypted
If Open Link in Browser is selected as default action for left clicking an image,
the user would get a warning when clicking an encrypted image. Fall back to open
image directly instead of issuing a warning dialog.
2019-04-27 14:29:37 +02:00
Daniel Brötzmann
4901c1e1b7 [preview] Fix on_save_as_menuitem handler name 2019-04-27 14:29:37 +02:00
Daniel Brötzmann
0636307329 [preview] Add Open Folder to context menu 2019-04-27 14:29:37 +02:00
Philipp Hörist
d9b146ee35 [preview] Use new open_uri method to open links 2019-04-27 14:29:11 +02:00
Philipp Hörist
6436c1cafa Change logging domains 2019-03-10 10:27:07 +01:00
Philipp Hörist
003f21034f [preview] Make pillow a required dependency
Fixes #367
2018-12-09 11:39:35 +01:00
Philipp Hörist
f61f8d3d67 [preview] Simplify setting cursor on hover 2018-12-09 11:38:30 +01:00
Philipp Hörist
214fb16286 [preview] Fix problem with too long filenames
Fixes #365
2018-12-08 20:27:03 +01:00
Philipp Hörist
9bb2bc5c0d [preview] Dont crash on errors in other threads 2018-12-08 20:27:03 +01:00
Philipp Hörist
df5d2d60ea [preview] Remove legacy code 2018-10-28 13:09:03 +01:00
Philipp Hörist
97c2bfbdd9 Add compatibility for Gajim 1.1 2018-10-06 20:46:24 +02:00
Philipp Hörist
dcce26e851 [preview] Add compatibility for Gajim 1.1.0 2018-08-19 17:42:06 +02:00
Philipp Hörist
555585b47e [preview] Lower log level on log output 2018-08-07 08:59:29 +02:00
Philipp Hörist
059fa25edf [preview] Fix faulty conversion of text to url 2018-08-06 23:55:46 +02:00
Philipp Hörist
36948f6990 [preview] Port to new FileChooser API 2018-05-10 18:49:08 +02:00
Philipp Hörist
d0b81cae31 [preview] Refactor _accept_uri() 2018-05-07 23:40:24 +02:00
Philipp Hörist
587648dd9d [preview] Remove useless log messages 2018-05-07 22:18:36 +02:00
Philipp Hörist
8061974c37 [preview] Use if/then instead of multiple if conditions 2018-05-07 22:11:22 +02:00
Philipp Hörist
9c91784480 [preview] Add setting to allow all image urls
Fixes #301
2018-05-07 22:11:22 +02:00
Philipp Hörist
6b98cdbc5d [preview] Change default allowed file size 2018-05-07 22:11:22 +02:00
Philipp Hörist
2ff0cbc836 [preview] Fix bug in ratio calculation 2018-05-07 22:11:22 +02:00
Philipp Hörist
e6c1fee17c [preview] Dont use deprecated way to get path 2018-04-21 16:30:19 +02:00
Philipp Hörist
c134ae5b3d [preview] Fix error when mime or size is not set 2018-04-21 14:14:19 +02:00
Philipp Hörist
8d236746ed [preview] Fix error when no Content-Type is set 2018-03-21 22:11:48 +01:00
Philipp Hörist
e8bca2b2c8 [preview] Follow API changes in Gajim 2018-03-21 22:11:47 +01:00
Daniel
fcbf425309 [preview] Add map preview for locations provided by geo:-URIs 2018-03-21 22:10:16 +01:00
Daniel
f583de57d2 [preview] Add margins and drop-shadow 2018-02-14 21:13:24 +01:00
Philipp Hörist
c19b6dee71 [preview] Fix selecting images 2017-12-19 23:21:11 +01:00
Daniel
2b3769f6e6 [preview] Display preview beginning with a new line and add tooltip 2017-12-19 20:29:33 +01:00
Philipp Hörist
9c91679a63 [preview] Add option to disable https verification 2017-12-05 18:08:20 +01:00
Philipp Hörist
1d17a08659 [preview] Preserve aspect ratio while scaling 2017-11-26 13:38:18 +01:00
Philipp Hörist
a438644124 [preview] Add Animated GIF support 2017-11-20 22:21:16 +01:00
Philipp Hörist
cca0fa0b2b [preview] Refactor image loading
- Make Pillow the fallback loader
- Simplify loading of images
- Use Gtk.Image instead of Gajims TextViewImage
2017-11-20 22:21:02 +01:00
Philipp Hörist
e68b434d2f [preview] Pass textview instead of chatcontrol
HistoryWindow doesnt have a ChatControl
2017-11-07 22:31:09 +01:00
Philipp Hörist
2e2cf945c4 [preview] Dont use chatcontrol parent for transient
- In minimized MUCs we dont have a parent window
- use Gtks get_active_window() instead
2017-11-07 15:31:49 +01:00
Philipp Hörist
359b6a703a [preview] Fix pylint/pep8 errors 2017-11-06 15:43:39 +01:00
Philipp Hörist
4bfcefdea8 [preview] Change logging domain 2017-11-06 15:43:39 +01:00
Philipp Hörist
9581970404 [preview] Convert MAX_FILE_SIZE to int 2017-11-06 15:43:39 +01:00
Thilo Molitor
caefa4ffe9 [preview] Use print_real_text extension point
- Remove parsing of OOB data, Gajim does this now
2017-11-06 15:43:39 +01:00
Thilo Molitor
363ac580b6 [preview] Scroll to end after image insertion 2017-11-06 15:43:39 +01:00
Thilo Molitor
78436dbe4c [preview] Add support for history window previews 2017-11-06 15:43:39 +01:00
Thilo Molitor
fa07320cf0 [preview] Limit URIs to httpupload filetransfers 2017-11-06 15:43:39 +01:00
Philipp Hörist
e52ab4c627 [preview] New Config Dialog 2017-11-01 12:33:02 +01:00