From ce0119a469c4abb7df49c162e4e38cd040801ca6 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Tue, 9 Aug 2005 13:50:41 +0000 Subject: Typo fixes. 2005-08-09 Christian Persch * NEWS: Typo fixes. * src/ephy-tab.c: (ephy_tab_net_state_cb): Removed favicon fallback code. --- src/ephy-tab.c | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'src') diff --git a/src/ephy-tab.c b/src/ephy-tab.c index b843dd2cd..051a77f88 100644 --- a/src/ephy-tab.c +++ b/src/ephy-tab.c @@ -1238,36 +1238,6 @@ ephy_tab_set_icon_address (EphyTab *tab, g_object_notify (object, "icon-address"); } -static void -ephy_tab_set_fallback_icon_address (EphyTab *tab) -{ - EphyTabPrivate *priv = tab->priv; - GnomeVFSURI *uri; - char *icon_address; - - /* If the site didn't specify a site icon, we fall back to - * favicon.ico, see bug #116678. - */ - - if (priv->icon_address != NULL || - priv->address == NULL || - !(g_str_has_prefix (priv->address, "http://") || - g_str_has_prefix (priv->address, "https://"))) return; - - uri = gnome_vfs_uri_new (priv->address); - if (uri == NULL) return; - - /* FIXME: support host:port ? */ - icon_address = g_strconcat (gnome_vfs_uri_get_scheme (uri), "://", - gnome_vfs_uri_get_host_name (uri), - "/favicon.ico", NULL); - - ephy_tab_set_icon_address (tab, icon_address); - - g_free (icon_address); - gnome_vfs_uri_unref (uri); -} - static void ephy_tab_file_monitor_cancel (EphyTab *tab) { @@ -1770,7 +1740,6 @@ ephy_tab_net_state_cb (EphyEmbed *embed, ephy_tab_set_load_percent (tab, 100); ephy_tab_set_load_status (tab, FALSE); ephy_tab_update_navigation_flags (tab, embed); - ephy_tab_set_fallback_icon_address (tab); g_free (priv->loading_title); priv->loading_title = NULL; -- cgit v1.2.3