diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-07-23 02:27:14 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-07-27 14:16:52 +0800 |
commit | b997e37bfca13887bbf1fe1d8ab07d953420b94a (patch) | |
tree | 498181df721dce5845d5ea0203d2cd43eb5d88f2 /e-util | |
parent | 7ed095eefd7016c66e27296ada3807d380d974e4 (diff) | |
download | gsoc2013-evolution-b997e37bfca13887bbf1fe1d8ab07d953420b94a.tar.gz gsoc2013-evolution-b997e37bfca13887bbf1fe1d8ab07d953420b94a.tar.zst gsoc2013-evolution-b997e37bfca13887bbf1fe1d8ab07d953420b94a.zip |
Remove unused e_web_view_frame_load_uri().
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-web-view.c | 38 | ||||
-rw-r--r-- | e-util/e-web-view.h | 6 |
2 files changed, 0 insertions, 44 deletions
diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c index a0462c3bda..d09e1df1d9 100644 --- a/e-util/e-web-view.c +++ b/e-util/e-web-view.c @@ -1080,27 +1080,6 @@ web_view_load_uri (EWebView *web_view, webkit_web_view_load_uri (WEBKIT_WEB_VIEW (web_view), uri); } -static void -web_view_frame_load_uri (EWebView *web_view, - const gchar *frame_name, - const gchar *uri) -{ - WebKitWebFrame *main_frame; - - if (uri == NULL) - uri = "about:blank"; - - main_frame = webkit_web_view_get_main_frame (WEBKIT_WEB_VIEW (web_view)); - if (main_frame != NULL) { - WebKitWebFrame *frame; - - frame = webkit_web_frame_find_frame (main_frame, frame_name); - - if (frame != NULL) - webkit_web_frame_load_uri (frame, uri); - } -} - static gboolean web_view_popup_event (EWebView *web_view, const gchar *uri) @@ -1388,7 +1367,6 @@ e_web_view_class_init (EWebViewClass *class) class->link_clicked = web_view_link_clicked; class->load_string = web_view_load_string; class->load_uri = web_view_load_uri; - class->frame_load_uri = web_view_frame_load_uri; class->popup_event = web_view_popup_event; class->stop_loading = web_view_stop_loading; class->update_actions = web_view_update_actions; @@ -1849,22 +1827,6 @@ e_web_view_get_uri (EWebView *web_view) return webkit_web_view_get_uri (WEBKIT_WEB_VIEW (web_view)); } -void -e_web_view_frame_load_uri (EWebView *web_view, - const gchar *frame_name, - const gchar *uri) -{ - EWebViewClass *class; - - g_return_if_fail (E_IS_WEB_VIEW (web_view)); - g_return_if_fail (frame_name != NULL); - - class = E_WEB_VIEW_GET_CLASS (web_view); - g_return_if_fail (class->frame_load_uri != NULL); - - class->frame_load_uri (web_view, frame_name, uri); -} - const gchar * e_web_view_frame_get_uri (EWebView *web_view, const gchar *frame_name) diff --git a/e-util/e-web-view.h b/e-util/e-web-view.h index 17b865b811..26544f60b7 100644 --- a/e-util/e-web-view.h +++ b/e-util/e-web-view.h @@ -80,9 +80,6 @@ struct _EWebViewClass { const gchar *load_string); void (*load_uri) (EWebView *web_view, const gchar *load_uri); - void (*frame_load_uri) (EWebView *web_view, - const gchar *frame_name, - const gchar *uri); void (*set_fonts) (EWebView *web_view, PangoFontDescription **monospace, PangoFontDescription **variable_width); @@ -107,9 +104,6 @@ void e_web_view_load_uri (EWebView *web_view, const gchar *uri); const gchar * e_web_view_get_uri (EWebView *web_view); void e_web_view_reload (EWebView *web_view); -void e_web_view_frame_load_uri (EWebView *web_view, - const gchar *frame_name, - const gchar *uri); const gchar * e_web_view_frame_get_uri (EWebView *web_view, const gchar *frame_name); gchar * e_web_view_get_html (EWebView *web_view); |