aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
author9 <clahey@ximian.com>2004-01-10 06:04:55 +0800
committerChris Lahey <clahey@src.gnome.org>2004-01-10 06:04:55 +0800
commitcafbab8b51cad0c6db95fcc9cd12ea503b497ac0 (patch)
tree2686748a86f62a7b8f61e09dde59dc6e04e885c7 /src
parent1743162eef31aab9bb28a2c8201240e7dc4bd1cd (diff)
downloadgsoc2013-epiphany-cafbab8b51cad0c6db95fcc9cd12ea503b497ac0.tar
gsoc2013-epiphany-cafbab8b51cad0c6db95fcc9cd12ea503b497ac0.tar.gz
gsoc2013-epiphany-cafbab8b51cad0c6db95fcc9cd12ea503b497ac0.tar.bz2
gsoc2013-epiphany-cafbab8b51cad0c6db95fcc9cd12ea503b497ac0.tar.lz
gsoc2013-epiphany-cafbab8b51cad0c6db95fcc9cd12ea503b497ac0.tar.xz
gsoc2013-epiphany-cafbab8b51cad0c6db95fcc9cd12ea503b497ac0.tar.zst
gsoc2013-epiphany-cafbab8b51cad0c6db95fcc9cd12ea503b497ac0.zip
Check if embed is valid here.
2004-01-09 <clahey@ximian.com> * src/toolbar.c (update_location_editable): Check if embed is valid here.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/toolbar.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/toolbar.c b/src/toolbar.c
index bf5596c24..0d52339ee 100755
--- a/src/toolbar.c
+++ b/src/toolbar.c
@@ -141,9 +141,12 @@ update_location_editable (Toolbar *t)
char *address;
embed = ephy_window_get_active_embed (t->priv->window);
- address = ephy_embed_get_location (embed, TRUE);
- toolbar_set_location (t, address);
- g_free (address);
+ if (EPHY_IS_EMBED (embed))
+ {
+ address = ephy_embed_get_location (embed, TRUE);
+ toolbar_set_location (t, address);
+ g_free (address);
+ }
}
action_group = t->priv->action_group;