aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
Diffstat (limited to 'embed')
-rw-r--r--embed/webkit/webkit-embed.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c
index 747f11062..aa512f24f 100644
--- a/embed/webkit/webkit-embed.c
+++ b/embed/webkit/webkit-embed.c
@@ -116,8 +116,16 @@ title_changed_cb (WebKitWebView *web_view,
const gchar *title,
EphyEmbed *embed)
{
+ const gchar* uri;
+
ephy_base_embed_set_title (EPHY_BASE_EMBED (embed),
title);
+
+ uri = webkit_web_frame_get_uri (web_frame);
+ ephy_history_set_page_title (WEBKIT_EMBED (embed)->priv->history,
+ uri,
+ title);
+
}
static void
@@ -237,17 +245,8 @@ load_finished_cb (WebKitWebView *web_view,
WebKitWebFrame *web_frame,
EphyEmbed *embed)
{
- const gchar* title;
- const gchar* uri;
-
WebKitEmbed *wembed = WEBKIT_EMBED (embed);
- uri = webkit_web_frame_get_uri (web_frame);
- title = webkit_web_frame_get_title (web_frame);
- ephy_history_set_page_title (wembed->priv->history,
- uri,
- title);
-
wembed->priv->load_state = WEBKIT_EMBED_LOAD_STOPPED;
update_load_state (wembed, web_view);
}