aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorGustavo Noronha Silva <gns@src.gnome.org>2009-02-03 08:47:36 +0800
committerGustavo Noronha Silva <gns@src.gnome.org>2009-02-03 08:47:36 +0800
commit94954eccafcbcf86bf99bb3f10bb45720c77048d (patch)
tree0b1acc7ebbec1bcf704f210094e7d1fe62c05e75 /embed
parent40c4d719de524128ca4c3bc7cd39cc0fe751f7f8 (diff)
downloadgsoc2013-epiphany-94954eccafcbcf86bf99bb3f10bb45720c77048d.tar.gz
gsoc2013-epiphany-94954eccafcbcf86bf99bb3f10bb45720c77048d.tar.zst
gsoc2013-epiphany-94954eccafcbcf86bf99bb3f10bb45720c77048d.zip
Set page title for history on title-changed
svn path=/trunk/; revision=8747
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);
}