From 27f385fb91d3a0a974c129ef22b744a849c15c62 Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 9 Feb 2016 15:40:35 +0300 Subject: totem-screensaver: fix assertions on entry to TotemScrsaver methods from https://git.gnome.org/browse/totem/commit/?id=3b33d7bd88e9e69c7d45238f7f7e1027aa59ee88 --- cut-n-paste/totem-screensaver/totem-scrsaver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cut-n-paste/totem-screensaver/totem-scrsaver.c b/cut-n-paste/totem-screensaver/totem-scrsaver.c index 969b426..25cdece 100644 --- a/cut-n-paste/totem-screensaver/totem-scrsaver.c +++ b/cut-n-paste/totem-screensaver/totem-scrsaver.c @@ -495,7 +495,7 @@ totem_scrsaver_init (TotemScrsaver *scr) void totem_scrsaver_disable (TotemScrsaver *scr) { - g_return_if_fail (TOTEM_SCRSAVER (scr)); + g_return_if_fail (TOTEM_IS_SCRSAVER (scr)); if (scr->priv->disabled != FALSE) return; @@ -516,7 +516,7 @@ totem_scrsaver_disable (TotemScrsaver *scr) void totem_scrsaver_enable (TotemScrsaver *scr) { - g_return_if_fail (TOTEM_SCRSAVER (scr)); + g_return_if_fail (TOTEM_IS_SCRSAVER (scr)); if (scr->priv->disabled == FALSE) return; @@ -537,7 +537,7 @@ totem_scrsaver_enable (TotemScrsaver *scr) void totem_scrsaver_set_state (TotemScrsaver *scr, gboolean enable) { - g_return_if_fail (TOTEM_SCRSAVER (scr)); + g_return_if_fail (TOTEM_IS_SCRSAVER (scr)); if (scr->priv->disabled == !enable) return; -- cgit v1.2.1