From c890cd0c5430f702d07bc3112ac5350af601a952 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 6 May 2005 18:21:07 +0000 Subject: Use the document's URL as tab address, not the info from the location 2005-05-06 Christian Persch * embed/mozilla/EphyBrowser.cpp: * src/ephy-tab.c: (ephy_tab_address_cb): Use the document's URL as tab address, not the info from the location changed signal. --- src/ephy-tab.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ephy-tab.c b/src/ephy-tab.c index 075fd744f..263a8f5f9 100644 --- a/src/ephy-tab.c +++ b/src/ephy-tab.c @@ -1109,9 +1109,12 @@ ephy_tab_link_message_cb (EphyEmbed *embed, } static void -ephy_tab_address_cb (EphyEmbed *embed, const char *address, EphyTab *tab) +ephy_tab_address_cb (EphyEmbed *embed, + const char *address, + EphyTab *tab) { const char *uv_address; + char *freeme = NULL; LOG ("ephy_tab_address_cb tab %p address %s", tab, address); @@ -1123,7 +1126,7 @@ ephy_tab_address_cb (EphyEmbed *embed, const char *address, EphyTab *tab) } else { - uv_address = address; + uv_address = freeme = ephy_embed_get_location (embed, TRUE); } if (tab->priv->address_expire == EPHY_TAB_ADDRESS_EXPIRE_NOW) @@ -1134,6 +1137,8 @@ ephy_tab_address_cb (EphyEmbed *embed, const char *address, EphyTab *tab) ephy_tab_set_link_message (tab, NULL); ephy_tab_set_icon_address (tab, NULL); ephy_tab_update_navigation_flags (tab, embed); + + g_free (freeme); } static void -- cgit v1.2.3