From fb19ae5fd13379de93f8575c6013262109f821f4 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 3 Aug 2003 23:01:35 +0000 Subject: Compare the scheme to "file", not the entire url. 2003-08-04 Christian Persch * embed/ephy-history.c: (ephy_history_add_host): Compare the scheme to "file", not the entire url. --- ChangeLog | 8 +++++++- embed/ephy-history.c | 8 +++++--- 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 +2003-08-04 Christian Persch + + * embed/ephy-history.c: (ephy_history_add_host): + + Compare the scheme to "file", not the entire url. + +2003-08-04 Christian Persch * 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)); -- cgit v1.2.3