aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-nautilus-view.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-06-30 01:53:46 +0800
committerChristian Persch <chpe@src.gnome.org>2003-06-30 01:53:46 +0800
commitd8d0e6b3e3d001aea01cb90472fae751c75f00b4 (patch)
treec6ecc13cf953012fc76e9ad87602c71526aad045 /src/ephy-nautilus-view.c
parent71c44e8dc078e48bfb6bc6c2517041f75e9ab45e (diff)
downloadgsoc2013-epiphany-d8d0e6b3e3d001aea01cb90472fae751c75f00b4.tar
gsoc2013-epiphany-d8d0e6b3e3d001aea01cb90472fae751c75f00b4.tar.gz
gsoc2013-epiphany-d8d0e6b3e3d001aea01cb90472fae751c75f00b4.tar.bz2
gsoc2013-epiphany-d8d0e6b3e3d001aea01cb90472fae751c75f00b4.tar.lz
gsoc2013-epiphany-d8d0e6b3e3d001aea01cb90472fae751c75f00b4.tar.xz
gsoc2013-epiphany-d8d0e6b3e3d001aea01cb90472fae751c75f00b4.tar.zst
gsoc2013-epiphany-d8d0e6b3e3d001aea01cb90472fae751c75f00b4.zip
Fix callbacks for new signature of ge_location embed signal.
2003-06-29 Christian Persch <chpe@cvs.gnome.org> * src/ephy-nautilus-view.c: (gnv_embed_location_cb): * src/ephy-tab.c: (ephy_tab_address_cb): * embed/find-dialog.c: (sync_page_change): Fix callbacks for new signature of ge_location embed signal. * src/ephy-tab.c: (ephy_tab_icon_cache_changed_cb): Fix logic to update the site icon.
Diffstat (limited to 'src/ephy-nautilus-view.c')
-rw-r--r--src/ephy-nautilus-view.c23
1 files changed, 8 insertions, 15 deletions
diff --git a/src/ephy-nautilus-view.c b/src/ephy-nautilus-view.c
index ee0e78cfe..b6dfa9d86 100644
--- a/src/ephy-nautilus-view.c
+++ b/src/ephy-nautilus-view.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2001, 2002 Ricardo Fernández Pascual
+ * Copyright (C) 2001, 2002 Ricardo Fernández Pascual
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -32,7 +32,8 @@
#include "ephy-zoom.h"
#include "ephy-debug.h"
-static void gnv_embed_location_cb (EphyEmbed *embed,
+static void gnv_embed_location_cb (EphyEmbed *embed,
+ const char *new_uri,
EphyNautilusView *view);
static void gnv_embed_title_cb (EphyEmbed *embed,
EphyNautilusView *view);
@@ -334,33 +335,25 @@ gnv_embed_link_message_cb (EphyEmbed *embed, const char *message, EphyNautilusVi
}
static void
-gnv_embed_location_cb (EphyEmbed *embed, EphyNautilusView *view)
+gnv_embed_location_cb (EphyEmbed *embed, const char *new_uri, EphyNautilusView *view)
{
- EphyNautilusViewPrivate *p;
- const gchar *prefixes_to_ignore[] =
+ const char *prefixes_to_ignore[] =
{
"about:",
"javascript:",
NULL
};
int i = 0;
- gchar *new_uri;
g_return_if_fail (EPHY_IS_NAUTILUS_VIEW (view));
- p = view->priv;
g_return_if_fail (view->priv->embed == embed);
-
- ephy_embed_get_location (embed, TRUE, &new_uri);
-
g_return_if_fail (new_uri != NULL);
-
/* don't inform nautilus about uris that it can't understand */
while (prefixes_to_ignore[i] != NULL)
{
- if (!strncmp (prefixes_to_ignore[i], new_uri, strlen (prefixes_to_ignore[i])))
+ if (strncmp (prefixes_to_ignore[i], new_uri, strlen (prefixes_to_ignore[i])) == 0)
{
- g_free (new_uri);
return;
}
++i;
@@ -368,8 +361,8 @@ gnv_embed_location_cb (EphyEmbed *embed, EphyNautilusView *view)
nautilus_view_report_location_change (NAUTILUS_VIEW (view), new_uri, NULL, new_uri);
- g_free (p->location);
- p->location = new_uri;
+ g_free (view->priv->location);
+ view->priv->location = g_strdup (new_uri);
}
static void