diff options
author | Xan Lopez <xan@src.gnome.org> | 2009-01-31 04:25:45 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2009-01-31 04:25:45 +0800 |
commit | 40c4d719de524128ca4c3bc7cd39cc0fe751f7f8 (patch) | |
tree | 1634d07d4f63071dbf38ef7098f7e779396a002b | |
parent | c2d3fd5f09e9283fb44f4db543db0ac816bb354d (diff) | |
download | gsoc2013-epiphany-40c4d719de524128ca4c3bc7cd39cc0fe751f7f8.tar.gz gsoc2013-epiphany-40c4d719de524128ca4c3bc7cd39cc0fe751f7f8.tar.zst gsoc2013-epiphany-40c4d719de524128ca4c3bc7cd39cc0fe751f7f8.zip |
webkit-embed: add titles for history items when we know them.
svn path=/trunk/; revision=8746
-rw-r--r-- | embed/webkit/webkit-embed.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/embed/webkit/webkit-embed.c b/embed/webkit/webkit-embed.c index e3d407338..747f11062 100644 --- a/embed/webkit/webkit-embed.c +++ b/embed/webkit/webkit-embed.c @@ -195,7 +195,9 @@ load_committed_cb (WebKitWebView *web_view, WebKitWebFrame *web_frame, EphyEmbed *embed) { - const gchar* uri = webkit_web_frame_get_uri(web_frame); + const gchar* uri; + + uri = webkit_web_frame_get_uri (web_frame); ephy_base_embed_location_changed (EPHY_BASE_EMBED (embed), uri); @@ -235,9 +237,18 @@ load_finished_cb (WebKitWebView *web_view, WebKitWebFrame *web_frame, EphyEmbed *embed) { + const gchar* title; + const gchar* uri; + WebKitEmbed *wembed = WEBKIT_EMBED (embed); - wembed->priv->load_state = WEBKIT_EMBED_LOAD_STOPPED; + 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); } |