diff options
author | Milan Crha <mcrha@redhat.com> | 2011-05-16 19:21:22 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:42:16 +0800 |
commit | fb38e4a4ba22026cd4524ca6bb3c35bb2cdba0ef (patch) | |
tree | 688e65dd1ed2b623b1c7255c612d2259f307ff68 /mail | |
parent | 42580e1802fce5e83008c6c79d64ea2a9bedafe9 (diff) | |
download | gsoc2013-evolution-fb38e4a4ba22026cd4524ca6bb3c35bb2cdba0ef.tar gsoc2013-evolution-fb38e4a4ba22026cd4524ca6bb3c35bb2cdba0ef.tar.gz gsoc2013-evolution-fb38e4a4ba22026cd4524ca6bb3c35bb2cdba0ef.tar.bz2 gsoc2013-evolution-fb38e4a4ba22026cd4524ca6bb3c35bb2cdba0ef.tar.lz gsoc2013-evolution-fb38e4a4ba22026cd4524ca6bb3c35bb2cdba0ef.tar.xz gsoc2013-evolution-fb38e4a4ba22026cd4524ca6bb3c35bb2cdba0ef.tar.zst gsoc2013-evolution-fb38e4a4ba22026cd4524ca6bb3c35bb2cdba0ef.zip |
Bug #601541 - Add 'Copy Image' Option On Inline Email Images
Diffstat (limited to 'mail')
-rw-r--r-- | mail/e-mail-browser.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/e-mail-browser.c b/mail/e-mail-browser.c index 6866913ff4..900ba63052 100644 --- a/mail/e-mail-browser.c +++ b/mail/e-mail-browser.c @@ -311,6 +311,7 @@ mail_browser_popup_event_cb (EMailBrowser *browser, GdkEventButton *event, const gchar *uri) { + EMFormatHTML *html_formatter; EMailReader *reader; GtkMenu *menu; guint32 state; @@ -319,6 +320,11 @@ mail_browser_popup_event_cb (EMailBrowser *browser, return FALSE; reader = E_MAIL_READER (browser); + html_formatter = e_mail_reader_get_formatter (reader); + + if (html_formatter && e_web_view_get_cursor_image (em_format_html_get_web_view (html_formatter)) != NULL) + return FALSE; + menu = e_mail_reader_get_popup_menu (reader); state = e_mail_reader_check_state (reader); |