From d37c1046ed955f2405065083e02b6a28fad9f925 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Fri, 30 Dec 2011 21:56:40 +0100 Subject: ephy-combined-stop-reload-action: add type checks This is a public function after all. --- src/ephy-combined-stop-reload-action.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ephy-combined-stop-reload-action.c b/src/ephy-combined-stop-reload-action.c index 2ba95d42c..0b43d8f63 100644 --- a/src/ephy-combined-stop-reload-action.c +++ b/src/ephy-combined-stop-reload-action.c @@ -64,7 +64,11 @@ ephy_combined_stop_reload_action_set_loading (EphyCombinedStopReloadAction *acti gboolean loading) { EphyCombinedStopReloadActionEnum action_enum; - EphyCombinedStopReloadActionPrivate *priv = action->priv; + EphyCombinedStopReloadActionPrivate *priv; + + g_return_if_fail (EPHY_IS_COMBINED_STOP_RELOAD_ACTION (action)); + + priv = action->priv; if (priv->loading == loading && priv->action_handler_id) return; -- cgit v1.2.3