aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-01-20 19:45:31 +0800
committerXan Lopez <xan@igalia.com>2012-01-20 19:45:31 +0800
commit16271c95a5cbf5d797f1f5bf2b1016398b9fa0c9 (patch)
tree92980acfd62b0fcdf01ca6b8a8658f93f859b3d2 /src
parent408de86398e94e17f163d7844599840157cc0a10 (diff)
downloadgsoc2013-epiphany-16271c95a5cbf5d797f1f5bf2b1016398b9fa0c9.tar
gsoc2013-epiphany-16271c95a5cbf5d797f1f5bf2b1016398b9fa0c9.tar.gz
gsoc2013-epiphany-16271c95a5cbf5d797f1f5bf2b1016398b9fa0c9.tar.bz2
gsoc2013-epiphany-16271c95a5cbf5d797f1f5bf2b1016398b9fa0c9.tar.lz
gsoc2013-epiphany-16271c95a5cbf5d797f1f5bf2b1016398b9fa0c9.tar.xz
gsoc2013-epiphany-16271c95a5cbf5d797f1f5bf2b1016398b9fa0c9.tar.zst
gsoc2013-epiphany-16271c95a5cbf5d797f1f5bf2b1016398b9fa0c9.zip
ephy-window: remove duplicated method
ephy_window_set_location and _ephy_window_set_location were identical. Remove the latter.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-window.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 94f3d2a70..ec9916383 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1512,19 +1512,6 @@ setup_ui_manager (EphyWindow *window)
}
static void
-_ephy_window_set_location (EphyWindow *window,
- const char *address)
-{
- EphyWindowPrivate *priv = window->priv;
-
- if (priv->updating_address) return;
-
- priv->updating_address = TRUE;
- ephy_location_controller_set_address (priv->location_controller, address);
- priv->updating_address = FALSE;
-}
-
-static void
sync_tab_address (EphyWebView *view,
GParamSpec *pspec,
EphyWindow *window)
@@ -1538,7 +1525,7 @@ sync_tab_address (EphyWebView *view,
address = ephy_web_view_get_address (view);
typed_address = ephy_web_view_get_typed_address (view);
- _ephy_window_set_location (window, typed_address ? typed_address : address);
+ ephy_window_set_location (window, typed_address ? typed_address : address);
ephy_find_toolbar_request_close (priv->find_toolbar);
}
@@ -2796,7 +2783,7 @@ embed_modal_alert_cb (EphyEmbed *embed,
/* make sure the location entry shows the real URL of the tab's page */
address = ephy_web_view_get_address (ephy_embed_get_web_view (embed));
- _ephy_window_set_location (window, address);
+ ephy_window_set_location (window, address);
/* don't suppress alert */
return FALSE;