diff options
author | Diego Escalante Urrelo <diegoe@gnome.org> | 2007-08-01 20:31:43 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <diegoe@src.gnome.org> | 2007-08-01 20:31:43 +0800 |
commit | 2e2245bdc10e8ef53112f395d2b8047314fe7b10 (patch) | |
tree | 1a242bef17e7b5c3a08c478d06e65ea55dad9609 /embed/ephy-history.c | |
parent | ed4e14dc5fd743ae81abf66424eb0fbe04d5be75 (diff) | |
download | gsoc2013-epiphany-2e2245bdc10e8ef53112f395d2b8047314fe7b10.tar gsoc2013-epiphany-2e2245bdc10e8ef53112f395d2b8047314fe7b10.tar.gz gsoc2013-epiphany-2e2245bdc10e8ef53112f395d2b8047314fe7b10.tar.bz2 gsoc2013-epiphany-2e2245bdc10e8ef53112f395d2b8047314fe7b10.tar.lz gsoc2013-epiphany-2e2245bdc10e8ef53112f395d2b8047314fe7b10.tar.xz gsoc2013-epiphany-2e2245bdc10e8ef53112f395d2b8047314fe7b10.tar.zst gsoc2013-epiphany-2e2245bdc10e8ef53112f395d2b8047314fe7b10.zip |
Fix completion model to show icons for history items too,
2007-08-01 Diego Escalante Urrelo <diegoe@gnome.org>
* 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
Diffstat (limited to 'embed/ephy-history.c')
-rw-r--r-- | embed/ephy-history.c | 11 |
1 files changed, 8 insertions, 3 deletions
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, |