[gnome-builder] animation: set default frame clock



commit 38803aabddfe6fbefc81051f721cb94f67911cec
Author: Christian Hergert <christian hergert me>
Date:   Mon Sep 8 17:00:48 2014 -0700

    animation: set default frame clock

 src/animation/gb-animation.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/animation/gb-animation.c b/src/animation/gb-animation.c
index 1e6658c..5598cae 100644
--- a/src/animation/gb-animation.c
+++ b/src/animation/gb-animation.c
@@ -999,6 +999,11 @@ gb_object_animatev (gpointer        object,
   g_return_val_if_fail (first_property != NULL, NULL);
   g_return_val_if_fail (mode < GB_ANIMATION_LAST, NULL);
 
+  if (!frame_clock && GTK_IS_WIDGET (object))
+    {
+      frame_clock = gtk_widget_get_frame_clock (GTK_WIDGET (object));
+    }
+
   name = first_property;
   type = G_TYPE_FROM_INSTANCE (object);
   klass = G_OBJECT_GET_CLASS (object);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]