[gnome-builder] animation: fix set_frame_clock() logic
- From: Fabiano Fidêncio <ffidencio src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] animation: fix set_frame_clock() logic
- Date: Sat, 27 Dec 2014 03:13:54 +0000 (UTC)
commit 31d5f08e8ce451a56b332872256a3365ed2823cf
Author: Fabiano Fidêncio <fidencio redhat com>
Date: Sat Dec 27 03:58:45 2014 +0100
animation: fix set_frame_clock() logic
Check if frame_clock has a different value than the current one and
only then set it.
src/animation/gb-animation.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/animation/gb-animation.c b/src/animation/gb-animation.c
index f1104d2..442cfab 100644
--- a/src/animation/gb-animation.c
+++ b/src/animation/gb-animation.c
@@ -426,7 +426,7 @@ gb_animation_set_frame_clock (GbAnimation *animation,
{
GbAnimationPrivate *priv = animation->priv;
- if (frame_clock)
+ if (priv->frame_clock != frame_clock)
{
g_clear_object (&priv->frame_clock);
priv->frame_clock = frame_clock ? g_object_ref (frame_clock) : NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]