From cafbab8b51cad0c6db95fcc9cd12ea503b497ac0 Mon Sep 17 00:00:00 2001 From: 9 Date: Fri, 9 Jan 2004 22:04:55 +0000 Subject: Check if embed is valid here. 2004-01-09 * src/toolbar.c (update_location_editable): Check if embed is valid here. --- ChangeLog | 5 +++++ src/toolbar.c | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 835b97e86..423e7277d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-01-09 + + * src/toolbar.c (update_location_editable): Check if embed is valid + here. + 2004-01-09 Christopher James Lahey * data/epiphany-lockdown.schemas.in, lib/ephy-prefs.h: Added 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; -- cgit v1.2.3