diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-07-23 01:54:54 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-27 14:16:52 +0800 |
commit | c5c6c39c0600bab0ecb1d7933119ede37bd257df (patch) | |
tree | 9e9d7e7566f0d71cb92d59606e29f9deb6af46e0 /e-util/e-web-view.c | |
parent | 810242e4c9cdb41c00e1ad24106fbb0e4ab0d5af (diff) | |
download | gsoc2013-evolution-c5c6c39c0600bab0ecb1d7933119ede37bd257df.tar gsoc2013-evolution-c5c6c39c0600bab0ecb1d7933119ede37bd257df.tar.gz gsoc2013-evolution-c5c6c39c0600bab0ecb1d7933119ede37bd257df.tar.bz2 gsoc2013-evolution-c5c6c39c0600bab0ecb1d7933119ede37bd257df.tar.lz gsoc2013-evolution-c5c6c39c0600bab0ecb1d7933119ede37bd257df.tar.xz gsoc2013-evolution-c5c6c39c0600bab0ecb1d7933119ede37bd257df.tar.zst gsoc2013-evolution-c5c6c39c0600bab0ecb1d7933119ede37bd257df.zip |
Remove unused e_web_view_extract_uri().
Diffstat (limited to 'e-util/e-web-view.c')
-rw-r--r-- | e-util/e-web-view.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c index 77d9887ffb..5e2519a729 100644 --- a/e-util/e-web-view.c +++ b/e-util/e-web-view.c @@ -984,28 +984,6 @@ web_view_create_plugin_widget (EWebView *web_view, return widget; } -static gchar * -web_view_extract_uri (EWebView *web_view, - GdkEventButton *event) -{ - WebKitHitTestResult *result; - WebKitHitTestResultContext context; - gchar *uri = NULL; - - result = webkit_web_view_get_hit_test_result ( - WEBKIT_WEB_VIEW (web_view), event); - - g_object_get (result, "context", &context, "link-uri", &uri, NULL); - g_object_unref (result); - - if (context & WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK) - return uri; - - g_free (uri); - - return NULL; -} - static void web_view_hovering_over_link (EWebView *web_view, const gchar *title, @@ -1429,7 +1407,6 @@ e_web_view_class_init (EWebViewClass *class) widget_class->drag_motion = web_view_drag_motion; class->create_plugin_widget = web_view_create_plugin_widget; - class->extract_uri = web_view_extract_uri; class->hovering_over_link = web_view_hovering_over_link; class->link_clicked = web_view_link_clicked; class->load_string = web_view_load_string; @@ -2424,20 +2401,6 @@ e_web_view_get_action_group (EWebView *web_view, return e_lookup_action_group (ui_manager, group_name); } -gchar * -e_web_view_extract_uri (EWebView *web_view, - GdkEventButton *event) -{ - EWebViewClass *class; - - g_return_val_if_fail (E_IS_WEB_VIEW (web_view), NULL); - - class = E_WEB_VIEW_GET_CLASS (web_view); - g_return_val_if_fail (class->extract_uri != NULL, NULL); - - return class->extract_uri (web_view, event); -} - void e_web_view_copy_clipboard (EWebView *web_view) { |