From 2e2245bdc10e8ef53112f395d2b8047314fe7b10 Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Wed, 1 Aug 2007 12:31:43 +0000 Subject: Fix completion model to show icons for history items too, 2007-08-01 Diego Escalante Urrelo * src/ephy-completion-model.c: * embed/ephy-history.c: Fix completion model to show icons for history items too, istory/bookmarks/favicon_cache service objects are now stored in the completion priv. Patch by Imran Patel. Fixes bug #459811. svn path=/trunk/; revision=7233 --- embed/ephy-history.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'embed') diff --git a/embed/ephy-history.c b/embed/ephy-history.c index 401c661a1..bc84c4bca 100644 --- a/embed/ephy-history.c +++ b/embed/ephy-history.c @@ -966,11 +966,16 @@ ephy_history_set_icon (EphyHistory *gh, const char *url, const char *icon) { - EphyNode *host; + EphyNode *node, *host; + int host_id; - LOG ("Set host icon"); + node = ephy_history_get_page (gh, url); + if (node == NULL) return; + + host_id = ephy_node_get_property_int (node, EPHY_NODE_PAGE_PROP_HOST_ID); + g_return_if_fail (host_id >= 0); - host = g_hash_table_lookup (gh->priv->hosts_hash, url); + host = ephy_node_db_get_node_from_id (gh->priv->db, host_id); if (host) { ephy_node_set_property_string (host, EPHY_NODE_PAGE_PROP_ICON, -- cgit