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 | |
parent | 810242e4c9cdb41c00e1ad24106fbb0e4ab0d5af (diff) | |
download | gsoc2013-evolution-c5c6c39c0600bab0ecb1d7933119ede37bd257df.tar.gz gsoc2013-evolution-c5c6c39c0600bab0ecb1d7933119ede37bd257df.tar.zst gsoc2013-evolution-c5c6c39c0600bab0ecb1d7933119ede37bd257df.zip |
Remove unused e_web_view_extract_uri().
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-web-view.c | 37 | ||||
-rw-r--r-- | e-util/e-web-view.h | 4 |
2 files changed, 0 insertions, 41 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) { diff --git a/e-util/e-web-view.h b/e-util/e-web-view.h index 62ef1fab6a..ea7676a307 100644 --- a/e-util/e-web-view.h +++ b/e-util/e-web-view.h @@ -71,8 +71,6 @@ struct _EWebViewClass { const gchar *mime_type, const gchar *uri, GHashTable *param); - gchar * (*extract_uri) (EWebView *web_view, - GdkEventButton *event); void (*hovering_over_link) (EWebView *web_view, const gchar *title, const gchar *uri); @@ -179,8 +177,6 @@ GtkAction * e_web_view_get_action (EWebView *web_view, const gchar *action_name); GtkActionGroup *e_web_view_get_action_group (EWebView *web_view, const gchar *group_name); -gchar * e_web_view_extract_uri (EWebView *web_view, - GdkEventButton *event); void e_web_view_copy_clipboard (EWebView *web_view); void e_web_view_cut_clipboard (EWebView *web_view); gboolean e_web_view_is_selection_active (EWebView *web_view); |