Commit graph

1587 commits

Author SHA1 Message Date
paul
1d37ede952 replace deprecated GtkStock 2019-11-20 17:14:54 +00:00
Paul
4b94a12f82 replace deprecated g_memmove with memmove 2019-11-19 10:09:21 +00:00
Colin Leroy
48d3a5452c LiteHtml viewer: implement keyboard scroll 2019-11-19 10:08:08 +00:00
Colin Leroy
db3a75f4a6 Unplug LiteHtml's print callback which does nothing 2019-11-19 10:06:14 +00:00
Paul
e70e3cde6f fix bug 4253, 'Claws metadata included in MBOX exports' 2019-11-19 09:57:09 +00:00
Paul
a546095316 fix bug 4239, 'Preferences: Text Options Header Display modal is not modal' (sic)
... and so on
2019-11-19 09:52:18 +00:00
Andrej Kacian
33d61c7745 Initialize some missing members in rssyl_item_new()
Among other things, this should fix the occasional
glib runtime warning about removing an invalid GSource.
2019-11-19 09:25:35 +00:00
Andrej Kacian
b003028a90 Fix build of pgpcore unit test 2019-08-26 22:18:24 +02:00
Andrej Kacian
b1bc36d2f7 Update litehtml_viewer to build on Windows 2019-08-26 22:16:24 +02:00
Andrej Kacian
abef83168f Fix handling deleted feed items where modified and published dates do not match 2019-08-26 22:16:19 +02:00
Andrej Kacian
c7ce85fb14 Fix comparison for RSS feed items without text 2019-08-26 22:16:14 +02:00
Ricardo Mones
eaaefcdf4c Fix const correctness
Fixes "lh_viewer.c:97:19: warning: initialization discards ‘const’
qualifier from pointer target type"
2019-08-26 22:16:10 +02:00
Colin Leroy
432dd7cfc6 Fix bug #4237 - 403 is Forbidden not Unauthorized 2019-08-26 22:15:42 +02:00
Ricardo Mones
e139c11261 perl: fix incoming typos in pod 2019-08-08 19:37:56 +02:00
Ricardo Mones
ef64f05e6a Fix leak on error variable 2019-08-08 19:37:32 +02:00
Ricardo Mones
825be32b25 Add minimalistic plugin description
Thanks Andrej for the inspiration:
https://lists.claws-mail.org/pipermail/users/2019-March/023861.html
2019-08-08 19:37:26 +02:00
Ricardo Mones
179c736dbf Don't show mojibake when encoding is not UTF-8
Litehtml expect displayed strings in UTF-8, so convert message part
before displaying.
2019-08-08 19:37:22 +02:00
Colin Leroy
32e4bbe817 litehtml_viewer: use new procmime_get_part_as_pixbuf helper function 2019-08-08 19:34:22 +02:00
Colin Leroy
80108ed0f1 procmime_get_part_as_inputstream doesn't touch error, so remove it 2019-08-08 19:34:05 +02:00
Michael Rasmussen
bcde37e893 If error is NULL print a static message instead
Signed-off-by: Michael Rasmussen <mir@datanom.net>
2019-08-08 19:33:57 +02:00
Michael Rasmussen
8fb446dda5 Since procmime_get_part_as_inputstream can return NULL and never touches error we need to bail if stream is NULL
Signed-off-by: Michael Rasmussen <mir@datanom.net>
2019-08-08 19:33:52 +02:00
Andrej Kacian
7b996f775c Fix a crash in Fancy plugin if one of the MIME parts has no Content-ID 2019-08-08 19:33:47 +02:00
Andrej Kacian
fe04873dd3 Fix a crash in litehtml plugin if one of the MIME parts has no Content-ID 2019-08-08 19:33:43 +02:00
Andrej Kacian
3c18210966 Fix a typo - it's CURL_CFLAGS, not CURL_FLAGS 2019-05-18 12:05:06 +02:00
Andrej Kacian
9fcee262ec Add missing libgumbo cflags and ldflags to litehtml_viewer 2019-05-18 12:05:05 +02:00
Andrej Kacian
68486f4da9 Fix markup in 'key not fully trusted' warning in pgpcore 2019-05-08 21:29:37 +02:00
Andrej Kacian
e83ef13409 Get rid of deprecated GTK API calls in litehtml plugin
gdk_cairo_create(), gdk_cursor_new(), gtk_menu_popup()
2019-05-05 14:21:55 +02:00
Andrej Kacian
0b14aad2d4 Make litehtml plugin rendering work better with GTK3 widget redraw
Unlike GTK2's "expose-event", GTK3's "draw" signal provides the
handler function with an already prepared cairo context to draw
on. This fixes flickering when scrolling HTML messages.

Unfortunately, litehtml's redraw() doesn't allow us to pass
custom arguments, so we have to store a pointer to the cairo
context as a member variable of our document container, so that
redraw() can access it.
2019-05-05 13:52:08 +02:00
Andrej Kacian
3c7b518b7b Use "draw" signal to render the contents in litehtml plugin, instead of obsolete "expose-event" signal 2019-05-04 17:32:16 +02:00
Andrej Kacian
6e3ba6de4b Fix GTK3-related compile errors for litehtml plugin 2019-05-04 17:17:39 +02:00
Andrej Kacian
3d290a4f13 Fix two memory leaks in litehtml plugin 2019-05-04 16:56:59 +02:00
Andrej Kacian
4cb31b49ab Fix a memory leak in litehtml plugin's container_linux::load_image() 2019-05-04 16:56:54 +02:00
Andrej Kacian
b007c1233c Fix incorrect logic in lh_widget::set_cursor(). 2019-05-04 16:56:34 +02:00
Andrej Kacian
7c6693d708 Add a getter for litehtml::document's m_over_element member
This allows us to avoid some expensive GDK calls in
lh_widget::set_cursor().
2019-05-04 16:56:30 +02:00
Andrej Kacian
85fae2899e Make cursor and statusbar URL display smarter in litehtml plugin 2019-05-04 16:56:20 +02:00
Andrej Kacian
0ceccd127a Always remove local images from Litehtml image cache
Since their "url" in cache only includes MIME
file name, they are not guaranteed to be unique
across different messages.
2019-05-04 16:56:12 +02:00
Andrej Kacian
5e478fb048 Added support for local image attachments to the Litehtml plugin 2019-05-04 16:56:07 +02:00
Andrej Kacian
6cfa503d18 Update callers of procmime_get_part_as_string() 2019-05-04 16:56:01 +02:00
Andrej Kacian
0e508b3410 Make Litehtml image loading non-blocking using threads 2019-05-04 16:55:27 +02:00
Andrej Kacian
6f207b2291 Add a mutex lock for Litehtml plugin image cache 2019-05-04 16:55:19 +02:00
Andrej Kacian
25389c8db3 Write missing prefs_done() in Litehtml plugin 2019-05-04 16:55:06 +02:00
Michael Rasmussen
f2915834e3 Remove useless debug code. Add copyright
Signed-off-by: Michael Rasmussen <mir@datanom.net>
2019-05-04 16:55:00 +02:00
Andrej Kacian
79659144fc Simplify Litehtml plugin's show_mimepart 2019-05-04 16:53:09 +02:00
Andrej Kacian
22a159866b Use Pango to render text in Litehtml plugin
Since we're no longer using the "toy" cairo text API, we
can now render all Unicode glyphs, and the code even ends
up slightly simpler.

The text-related Litehtml callbacks have been moved from
container_linux to lh_widget class, and into a separate
.cpp file.
2019-05-04 16:53:02 +02:00
Andrej Kacian
42231eff67 Use prepend document base url to #fragment links in Litehtml plugin 2019-05-04 16:52:53 +02:00
Andrej Kacian
fa7135fa3b Add default_font preference to Litehtml plugin 2019-05-04 16:52:45 +02:00
Michael Rasmussen
8071229a71 Fix build error
Signed-off-by: Michael Rasmussen <mir@datanom.net>
2019-05-04 16:52:39 +02:00
Andrej Kacian
cd43a4956b Make Litehtml display sub- and superscript correctly 2019-05-04 16:52:26 +02:00
Andrej Kacian
3d209145f3 Use height of the viewport, not the scrolled window when telling Litehtml size of the area it has available for rendering 2019-05-04 16:52:16 +02:00
Andrej Kacian
f0dc8213f7 Reset Litehtml scrolledwindow to top-left when displaying new content 2019-05-04 16:52:05 +02:00