diff options
author | Christian Persch <chpe@src.gnome.org> | 2007-10-28 21:59:20 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2007-10-28 21:59:20 +0800 |
commit | 7ac279fb909e69b040aeba85188b095f4f831176 (patch) | |
tree | 2fcca4691d57da8d68369b310d924307a904407d | |
parent | 037763011566438d8a54bebca23c783b5b625b49 (diff) | |
download | gsoc2013-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
-rw-r--r-- | src/ephy-lockdown.c | 10 |
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); } |