aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-08-04 07:01:35 +0800
committerChristian Persch <chpe@src.gnome.org>2003-08-04 07:01:35 +0800
commitfb19ae5fd13379de93f8575c6013262109f821f4 (patch)
treeba04ea3cad0bb516f85fc8563f85d22ff71f3e15 /embed
parent10494b97f75c9b20d373854d1f419b312331cba9 (diff)
downloadgsoc2013-epiphany-fb19ae5fd13379de93f8575c6013262109f821f4.tar
gsoc2013-epiphany-fb19ae5fd13379de93f8575c6013262109f821f4.tar.gz
gsoc2013-epiphany-fb19ae5fd13379de93f8575c6013262109f821f4.tar.bz2
gsoc2013-epiphany-fb19ae5fd13379de93f8575c6013262109f821f4.tar.lz
gsoc2013-epiphany-fb19ae5fd13379de93f8575c6013262109f821f4.tar.xz
gsoc2013-epiphany-fb19ae5fd13379de93f8575c6013262109f821f4.tar.zst
gsoc2013-epiphany-fb19ae5fd13379de93f8575c6013262109f821f4.zip
Compare the scheme to "file", not the entire url.
2003-08-04 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-history.c: (ephy_history_add_host): Compare the scheme to "file", not the entire url.
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-history.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/embed/ephy-history.c b/embed/ephy-history.c
index 8ead4fe01..18092876f 100644
--- a/embed/ephy-history.c
+++ b/embed/ephy-history.c
@@ -14,6 +14,9 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * $Id$
+ *
*/
#ifdef HAVE_CONFIG_H
@@ -588,7 +591,7 @@ ephy_history_add_host (EphyHistory *eh, EphyNode *page)
host_locations = g_list_append (host_locations,
g_strdup ("about:blank"));
}
- else if (strcmp (url, "file") == 0)
+ else if (strcmp (scheme, "file") == 0)
{
host_name = _("Local files");
host_locations = g_list_append (host_locations,
@@ -599,11 +602,10 @@ ephy_history_add_host (EphyHistory *eh, EphyNode *page)
char *location;
char *tmp;
- location = g_strconcat (gnome_vfs_uri_get_scheme (vfs_uri),
+ location = g_strconcat (scheme,
"://", host_name, "/", NULL);
host_locations = g_list_append (host_locations, location);
-
if (g_str_has_prefix (host_name, "www."))
{
tmp = g_strdup (g_utf8_offset_to_pointer (host_name, 4));