aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2007-10-28 21:59:20 +0800
committerChristian Persch <chpe@src.gnome.org>2007-10-28 21:59:20 +0800
commit7ac279fb909e69b040aeba85188b095f4f831176 (patch)
tree2fcca4691d57da8d68369b310d924307a904407d /src
parent037763011566438d8a54bebca23c783b5b625b49 (diff)
downloadgsoc2013-epiphany-7ac279fb909e69b040aeba85188b095f4f831176.tar
gsoc2013-epiphany-7ac279fb909e69b040aeba85188b095f4f831176.tar.gz
gsoc2013-epiphany-7ac279fb909e69b040aeba85188b095f4f831176.tar.bz2
gsoc2013-epiphany-7ac279fb909e69b040aeba85188b095f4f831176.tar.lz
gsoc2013-epiphany-7ac279fb909e69b040aeba85188b095f4f831176.tar.xz
gsoc2013-epiphany-7ac279fb909e69b040aeba85188b095f4f831176.tar.zst
gsoc2013-epiphany-7ac279fb909e69b040aeba85188b095f4f831176.zip
Remove EphyTab.
svn path=/trunk/; revision=7597
Diffstat (limited to 'src')
-rw-r--r--src/ephy-lockdown.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/ephy-lockdown.c b/src/ephy-lockdown.c
index 47369cabc..5e447f770 100644
--- a/src/ephy-lockdown.c
+++ b/src/ephy-lockdown.c
@@ -88,7 +88,6 @@ update_location_editable (EphyWindow *window,
GtkAction *action,
gboolean editable)
{
- EphyTab *tab;
EphyEmbed *embed;
GtkWidget *toolbar;
char *address;
@@ -99,16 +98,13 @@ update_location_editable (EphyWindow *window,
if (editable == FALSE)
{
toolbar = ephy_window_get_toolbar (window);
- tab = ephy_window_get_active_tab (window);
+ embed = ephy_window_get_active_tab (window);
/* embed is NULL on startup */
- if (tab != NULL)
+ if (embed != NULL)
{
- embed = ephy_tab_get_embed (tab);
- g_return_if_fail (embed != NULL);
-
address = ephy_embed_get_location (embed, TRUE);
ephy_toolbar_set_location (EPHY_TOOLBAR (toolbar), address, NULL);
- ephy_embed_set_typed_address (ephy_tab_get_embed (tab), NULL,
+ ephy_embed_set_typed_address (embed, NULL,
EPHY_EMBED_ADDRESS_EXPIRE_CURRENT);
g_free (address);
}