From c886bd11a10380625860f9457fbc7964c9f30079 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Mon, 14 Feb 2011 18:44:40 +0100 Subject: ephy-web-view: do not update statusbar text for webviews without embed object Fixes a crash when trying to open the WebInspector https://bugzilla.gnome.org/show_bug.cgi?id=642306 --- embed/ephy-web-view.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index 5c5113545..f99e3423f 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -3688,7 +3688,9 @@ ephy_web_view_statusbar_update (EphyWebView *view, const char *text) g_return_if_fail (EPHY_IS_WEB_VIEW (view)); embed = EPHY_GET_EMBED_FROM_EPHY_WEB_VIEW (view); - _ephy_embed_set_statusbar_label (embed, text); + /* Inspector window does not have an embed for example */ + if (embed) + _ephy_embed_set_statusbar_label (embed, text); } /* Portions of the following code based on GTK+. -- cgit v1.2.3