diff options
author | Tomas Popela <tpopela@redhat.com> | 2013-09-12 21:29:58 +0800 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2013-09-12 21:29:58 +0800 |
commit | 68f27ce0c8a3ed44d1f1105970cc68326df6bad3 (patch) | |
tree | cad3537983c28b85223ebb171301df1d8674f5e0 /em-format/e-mail-formatter-text-html.c | |
parent | b3fb5dfc8128fd903e702beeb96eae33de8aa993 (diff) | |
download | gsoc2013-evolution-68f27ce0c8a3ed44d1f1105970cc68326df6bad3.tar gsoc2013-evolution-68f27ce0c8a3ed44d1f1105970cc68326df6bad3.tar.gz gsoc2013-evolution-68f27ce0c8a3ed44d1f1105970cc68326df6bad3.tar.bz2 gsoc2013-evolution-68f27ce0c8a3ed44d1f1105970cc68326df6bad3.tar.lz gsoc2013-evolution-68f27ce0c8a3ed44d1f1105970cc68326df6bad3.tar.xz gsoc2013-evolution-68f27ce0c8a3ed44d1f1105970cc68326df6bad3.tar.zst gsoc2013-evolution-68f27ce0c8a3ed44d1f1105970cc68326df6bad3.zip |
Bug #706008 - Workaround gnome-shell style change on focus change
Avoid redrawing (thus loosing the selection and scroll position) of
preview window on style change by defining the colors through CSS styles.
On style change we just update the CSS color definitions and preview will
update itself without redraw.
Diffstat (limited to 'em-format/e-mail-formatter-text-html.c')
-rw-r--r-- | em-format/e-mail-formatter-text-html.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/em-format/e-mail-formatter-text-html.c b/em-format/e-mail-formatter-text-html.c index 0a581117a6..17632fa03f 100644 --- a/em-format/e-mail-formatter-text-html.c +++ b/em-format/e-mail-formatter-text-html.c @@ -328,15 +328,13 @@ emfe_text_html_format (EMailFormatterExtension *extension, "<iframe width=\"100%%\" height=\"10\" " " frameborder=\"0\" src=\"%s\" " " id=\"%s.iframe\" name=\"%s\" " - " style=\"border: 1px solid #%06x; background-color: #ffffff;\">" + " class=\"-e-mail-formatter-frame-color\" " + " style=\"background-color: #ffffff; border: 1px solid;\">" "</iframe>" "</div>", uri, e_mail_part_get_id (part), - e_mail_part_get_id (part), - e_rgba_to_value ( - e_mail_formatter_get_color ( - formatter, E_MAIL_FORMATTER_COLOR_FRAME))); + e_mail_part_get_id (part)); camel_stream_write_string (stream, str, cancellable, NULL); |