diff options
author | Sergio Villar Senin <svillar@igalia.com> | 2011-02-15 01:44:40 +0800 |
---|---|---|
committer | Sergio Villar Senin <svillar@igalia.com> | 2011-02-16 20:18:36 +0800 |
commit | c886bd11a10380625860f9457fbc7964c9f30079 (patch) | |
tree | 935a2ca10fff3b52d532a2c181385b2e35b6ae7c /embed/ephy-web-view.c | |
parent | 6087d7632df9c47377731b851022661bddcbf9e4 (diff) | |
download | gsoc2013-epiphany-c886bd11a10380625860f9457fbc7964c9f30079.tar.gz gsoc2013-epiphany-c886bd11a10380625860f9457fbc7964c9f30079.tar.zst gsoc2013-epiphany-c886bd11a10380625860f9457fbc7964c9f30079.zip |
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
Diffstat (limited to 'embed/ephy-web-view.c')
-rw-r--r-- | embed/ephy-web-view.c | 4 |
1 files changed, 3 insertions, 1 deletions
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+. |