diff options
Diffstat (limited to 'src/ephy-location-action.c')
-rw-r--r-- | src/ephy-location-action.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ephy-location-action.c b/src/ephy-location-action.c index 773743bea..4cce221cf 100644 --- a/src/ephy-location-action.c +++ b/src/ephy-location-action.c @@ -282,11 +282,13 @@ static char * get_location_cb (EphyLocationEntry *entry, EphyLocationAction *action) { - EphyEmbed *embed; - - embed = ephy_window_get_active_embed (action->priv->window); + EphyLocationActionPrivate *priv = action->priv; + EphyTab *tab; - return ephy_embed_get_location (embed, TRUE); + tab = ephy_window_get_active_tab (priv->window); + g_return_val_if_fail (tab != NULL, NULL); + + return g_strdup (ephy_tab_get_address (tab)); } static char * |