aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed.c
diff options
context:
space:
mode:
authorGustavo Noronha Silva <gns@gnome.org>2009-12-10 03:35:59 +0800
committerGustavo Noronha Silva <gns@gnome.org>2009-12-10 23:02:39 +0800
commit5e0f51772f48a473d3e1fce9757320a15c6d82d5 (patch)
treea16572a80e71a9ea06633c5df3eeb0aff5b5276c /embed/ephy-embed.c
parenta32fe7def38497fc58c2b9645f79311093245f7f (diff)
downloadgsoc2013-epiphany-5e0f51772f48a473d3e1fce9757320a15c6d82d5.tar
gsoc2013-epiphany-5e0f51772f48a473d3e1fce9757320a15c6d82d5.tar.gz
gsoc2013-epiphany-5e0f51772f48a473d3e1fce9757320a15c6d82d5.tar.bz2
gsoc2013-epiphany-5e0f51772f48a473d3e1fce9757320a15c6d82d5.tar.lz
gsoc2013-epiphany-5e0f51772f48a473d3e1fce9757320a15c6d82d5.tar.xz
gsoc2013-epiphany-5e0f51772f48a473d3e1fce9757320a15c6d82d5.tar.zst
gsoc2013-epiphany-5e0f51772f48a473d3e1fce9757320a15c6d82d5.zip
Make the favicon cache work on top of new WebKit API, and WebKitDownload
This restores basic favicon functionality. In the future we will want to replace our favicon cache with the IconDatabase that is available in WebKit. Bug #601859
Diffstat (limited to 'embed/ephy-embed.c')
-rw-r--r--embed/ephy-embed.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index b839c6baf..fd981ceaf 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -772,6 +772,14 @@ load_error_cb (WebKitWebView *web_view,
}
static void
+icon_loaded_cb (WebKitWebView *web_view, const char* icon_uri, gpointer *data)
+{
+ g_signal_emit_by_name (EPHY_WEB_VIEW (web_view),
+ "favicon",
+ icon_uri);
+}
+
+static void
ephy_embed_constructed (GObject *object)
{
EphyEmbed *embed = (EphyEmbed*)object;
@@ -794,6 +802,7 @@ ephy_embed_constructed (GObject *object)
"signal::notify::title", G_CALLBACK (title_changed_cb), embed,
"signal::notify::uri", G_CALLBACK (uri_changed_cb), embed,
"signal::load-error", G_CALLBACK (load_error_cb), embed,
+ "signal::icon-loaded", G_CALLBACK (icon_loaded_cb), embed,
NULL);
embed->priv->inspector_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);