diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-04-16 03:53:43 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-04-16 03:53:43 +0800 |
commit | 4bc1338f7943928d6abaac5b955c2a86f5ddc8e6 (patch) | |
tree | a72333b1dca2d7e073298cf43eb8adcaedb4d913 | |
parent | 5c498e67e980c040e5c83e2b0b8ebed0ae38cb65 (diff) | |
download | gsoc2013-epiphany-4bc1338f7943928d6abaac5b955c2a86f5ddc8e6.tar gsoc2013-epiphany-4bc1338f7943928d6abaac5b955c2a86f5ddc8e6.tar.gz gsoc2013-epiphany-4bc1338f7943928d6abaac5b955c2a86f5ddc8e6.tar.bz2 gsoc2013-epiphany-4bc1338f7943928d6abaac5b955c2a86f5ddc8e6.tar.lz gsoc2013-epiphany-4bc1338f7943928d6abaac5b955c2a86f5ddc8e6.tar.xz gsoc2013-epiphany-4bc1338f7943928d6abaac5b955c2a86f5ddc8e6.tar.zst gsoc2013-epiphany-4bc1338f7943928d6abaac5b955c2a86f5ddc8e6.zip |
Dont set icon on bookmarks when the url is NULL ! Fix a bad crasher.
2003-04-15 Marco Pesenti Gritti <marco@it.gnome.org>
* src/ephy-tab.c: (ephy_tab_set_favicon):
Dont set icon on bookmarks when the url is NULL !
Fix a bad crasher.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/ephy-tab.c | 15 |
2 files changed, 15 insertions, 7 deletions
@@ -1,3 +1,10 @@ +2003-04-15 Marco Pesenti Gritti <marco@it.gnome.org> + + * src/ephy-tab.c: (ephy_tab_set_favicon): + + Dont set icon on bookmarks when the url is NULL ! + Fix a bad crasher. + 2003-04-15 Xan Lopez <xan@masilla.org> * src/bookmarks/ephy-node-view.c: (ephy_node_view_remove): diff --git a/src/ephy-tab.c b/src/ephy-tab.c index dea7707d5..52f668f7b 100644 --- a/src/ephy-tab.c +++ b/src/ephy-tab.c @@ -455,13 +455,14 @@ ephy_tab_set_favicon (EphyTab *tab, GTK_WIDGET (tab->priv->embed), favicon); - if (!tab->priv->is_active) return; - - eb = ephy_shell_get_bookmarks (ephy_shell); - ephy_bookmarks_set_icon (eb, tab->priv->location, - tab->priv->favicon_url); - ephy_window_update_control (tab->priv->window, - FaviconControl); + if (tab->priv->favicon_url[0] != '\0') + { + eb = ephy_shell_get_bookmarks (ephy_shell); + ephy_bookmarks_set_icon (eb, tab->priv->location, + tab->priv->favicon_url); + ephy_window_update_control (tab->priv->window, + FaviconControl); + } } /* Private callbacks for embed signals */ |