diff options
author | Dan Vrátil <dvratil@redhat.com> | 2012-07-25 17:29:22 +0800 |
---|---|---|
committer | Dan Vrátil <dvratil@redhat.com> | 2012-07-25 17:29:22 +0800 |
commit | 8663b54cae296883452850f3baad6d4cbc92e220 (patch) | |
tree | f895a43b817e0115a57bc639b2b6a9e40caa1193 /mail/e-mail-display.c | |
parent | b456ff5423b9f4ffe5719e460e4b769bed28c934 (diff) | |
download | gsoc2013-evolution-8663b54cae296883452850f3baad6d4cbc92e220.tar gsoc2013-evolution-8663b54cae296883452850f3baad6d4cbc92e220.tar.gz gsoc2013-evolution-8663b54cae296883452850f3baad6d4cbc92e220.tar.bz2 gsoc2013-evolution-8663b54cae296883452850f3baad6d4cbc92e220.tar.lz gsoc2013-evolution-8663b54cae296883452850f3baad6d4cbc92e220.tar.xz gsoc2013-evolution-8663b54cae296883452850f3baad6d4cbc92e220.tar.zst gsoc2013-evolution-8663b54cae296883452850f3baad6d4cbc92e220.zip |
Highlighting of text parts and source codes
This adds 'Format as' submenu to the preview pane context menu.
The submenu is available only for text/plain parts or parts
with a source code (we support about 40 various types). Using
the 'highlight' utility, the formatter processes the part and
highlights the source code it contains.
(discussion in bug #680026)
Diffstat (limited to 'mail/e-mail-display.c')
-rw-r--r-- | mail/e-mail-display.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/e-mail-display.c b/mail/e-mail-display.c index be99ea226c..6cbbaa6091 100644 --- a/mail/e-mail-display.c +++ b/mail/e-mail-display.c @@ -177,6 +177,12 @@ mail_display_button_press_event (GtkWidget *widget, GList *extensions, *iter; EWebView *web_view = E_WEB_VIEW (widget); + if (event->button != 3) { + return GTK_WIDGET_CLASS ( + e_mail_display_parent_class)->button_press_event ( + widget, event); + } + hit_test = webkit_web_view_get_hit_test_result ( WEBKIT_WEB_VIEW (web_view), event); |