aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-web-view.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-07-26 21:33:29 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-07-28 09:24:01 +0800
commit3eda7a50de7059e7898944d74ab1fc7c707e089b (patch)
tree7432f364f57ce7279e0939d527386e9bbd011f6d /e-util/e-web-view.h
parentc71f615a7f1d4f4c5df1d8a0a11af8f2319bdf20 (diff)
downloadgsoc2013-evolution-3eda7a50de7059e7898944d74ab1fc7c707e089b.tar
gsoc2013-evolution-3eda7a50de7059e7898944d74ab1fc7c707e089b.tar.gz
gsoc2013-evolution-3eda7a50de7059e7898944d74ab1fc7c707e089b.tar.bz2
gsoc2013-evolution-3eda7a50de7059e7898944d74ab1fc7c707e089b.tar.lz
gsoc2013-evolution-3eda7a50de7059e7898944d74ab1fc7c707e089b.tar.xz
gsoc2013-evolution-3eda7a50de7059e7898944d74ab1fc7c707e089b.tar.zst
gsoc2013-evolution-3eda7a50de7059e7898944d74ab1fc7c707e089b.zip
Add e_web_view_cursor_image_copy().
Asynchronously copies the image under the cursor to the clipboard. This replaces the "cursor-image" property, which attempts to match the image URI to a subresource from WebKitWebDataSource. The problem with that approach is EMailDisplay redirects several URI schemes to its own custom request handlers which further mutate the URI. So for example, a text/html message may use a "cid:" URI to refer to an embedded image, which EMailDisplay transforms to a "mail:" URI and finally to a "data:" URI. The final image URI might not be derivable from the original URI without retracing the SoupRequest. The "image-copy" action now calls e_web_view_cursor_image_copy(). This also adds an explicit requirement on gdk-pixbuf-2.0 >= 2.24 for gdk_pixbuf_new_from_stream_async() / finish(). New functions: e_web_view_cursor_image_copy() Removed functions: e_web_view_get_cursor_image() e_web_view_set_cursor_image()
Diffstat (limited to 'e-util/e-web-view.h')
-rw-r--r--e-util/e-web-view.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/e-util/e-web-view.h b/e-util/e-web-view.h
index 7897257e87..3f7b4e10b5 100644
--- a/e-util/e-web-view.h
+++ b/e-util/e-web-view.h
@@ -142,10 +142,6 @@ void e_web_view_set_magic_smileys (EWebView *web_view,
const gchar * e_web_view_get_selected_uri (EWebView *web_view);
void e_web_view_set_selected_uri (EWebView *web_view,
const gchar *selected_uri);
-GdkPixbufAnimation *
- e_web_view_get_cursor_image (EWebView *web_view);
-void e_web_view_set_cursor_image (EWebView *web_view,
- GdkPixbufAnimation *animation);
const gchar * e_web_view_get_cursor_image_src (EWebView *web_view);
void e_web_view_set_cursor_image_src (EWebView *web_view,
const gchar *src_uri);
@@ -189,6 +185,7 @@ void e_web_view_stop_loading (EWebView *web_view);
void e_web_view_update_actions (EWebView *web_view);
gchar * e_web_view_get_selection_html (EWebView *web_view);
void e_web_view_update_fonts (EWebView *web_view);
+void e_web_view_cursor_image_copy (EWebView *web_view);
void e_web_view_request (EWebView *web_view,
const gchar *uri,
GCancellable *cancellable,