diff options
author | Gustavo Noronha Silva <gns@src.gnome.org> | 2009-02-03 08:47:36 +0800 |
---|---|---|
committer | Gustavo Noronha Silva <gns@src.gnome.org> | 2009-02-03 08:47:36 +0800 |
commit | 94954eccafcbcf86bf99bb3f10bb45720c77048d (patch) | |
tree | 0b1acc7ebbec1bcf704f210094e7d1fe62c05e75 /embed | |
parent | 40c4d719de524128ca4c3bc7cd39cc0fe751f7f8 (diff) | |
download | gsoc2013-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.c | 17 |
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); } |