[epiphany] ephy-combined-stop-reload-action: add type checks
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-combined-stop-reload-action: add type checks
- Date: Fri, 30 Dec 2011 20:57:13 +0000 (UTC)
commit d37c1046ed955f2405065083e02b6a28fad9f925
Author: Xan Lopez <xan igalia com>
Date: Fri Dec 30 21:56:40 2011 +0100
ephy-combined-stop-reload-action: add type checks
This is a public function after all.
src/ephy-combined-stop-reload-action.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-combined-stop-reload-action.c b/src/ephy-combined-stop-reload-action.c
index 2ba95d4..0b43d8f 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]