[epiphany] ephy-web-view: and more type checks



commit d4dfee4e39e3b4d7cebb6072b5eb478191eedc93
Author: Xan Lopez <xan igalia com>
Date:   Thu Jun 28 12:02:15 2012 +0200

    ephy-web-view: and more type checks

 embed/ephy-web-view.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 3d5e038..1c85e4e 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -3487,6 +3487,8 @@ ephy_web_view_set_visibility (EphyWebView *view,
 const char *
 ephy_web_view_get_typed_address (EphyWebView *view)
 {
+  g_return_val_if_fail (EPHY_IS_WEB_VIEW (view), NULL);
+
   return view->priv->typed_address;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]