aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--embed/ephy-history.c8
2 files changed, 12 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 3012bbbe5..1a1d0e8ab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,10 @@
-2003-08-03 Christian Persch <chpe@cvs.gnome.org>
+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.
+
+2003-08-04 Christian Persch <chpe@cvs.gnome.org>
* lib/ephy-autocompletion.c: (ephy_autocompletion_finalize_impl):
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));