aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-07-23 01:54:54 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-07-27 14:16:52 +0800
commitc5c6c39c0600bab0ecb1d7933119ede37bd257df (patch)
tree9e9d7e7566f0d71cb92d59606e29f9deb6af46e0
parent810242e4c9cdb41c00e1ad24106fbb0e4ab0d5af (diff)
downloadgsoc2013-evolution-c5c6c39c0600bab0ecb1d7933119ede37bd257df.tar.gz
gsoc2013-evolution-c5c6c39c0600bab0ecb1d7933119ede37bd257df.tar.zst
gsoc2013-evolution-c5c6c39c0600bab0ecb1d7933119ede37bd257df.zip
Remove unused e_web_view_extract_uri().
-rw-r--r--doc/reference/evolution-util/evolution-util-sections.txt1
-rw-r--r--e-util/e-web-view.c37
-rw-r--r--e-util/e-web-view.h4
3 files changed, 0 insertions, 42 deletions
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt b/doc/reference/evolution-util/evolution-util-sections.txt
index ff3fb5e3d1..b48452a2fb 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -4396,7 +4396,6 @@ e_web_view_clear_highlights
e_web_view_update_highlights
e_web_view_get_action
e_web_view_get_action_group
-e_web_view_extract_uri
e_web_view_copy_clipboard
e_web_view_cut_clipboard
e_web_view_is_selection_active
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);