[clutter] transition: Check if we're setting the same interval
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] transition: Check if we're setting the same interval
- Date: Tue, 19 Jun 2012 08:39:02 +0000 (UTC)
commit 7b07d4a7c52d93b4b931a189c572f07b7ef9f04f
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Mon Jun 18 23:00:08 2012 +0100
transition: Check if we're setting the same interval
If we do, then don't bother.
clutter/clutter-transition.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter-transition.c b/clutter/clutter-transition.c
index 5407aa0..ec6055b 100644
--- a/clutter/clutter-transition.c
+++ b/clutter/clutter-transition.c
@@ -318,6 +318,9 @@ clutter_transition_set_interval (ClutterTransition *transition,
priv = transition->priv;
+ if (priv->interval == interval)
+ return;
+
g_clear_object (&priv->interval);
if (interval != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]