[glide] Default slide animation is now fade



commit dd130f0044b9caca856faf6c90a15fa75e848c44
Author: Robert Carr <racarr Valentine localdomain>
Date:   Fri May 7 11:26:04 2010 -0400

    Default slide animation is now fade

 libglide/glide-slide.c |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/libglide/glide-slide.c b/libglide/glide-slide.c
index d957347..839bac6 100644
--- a/libglide/glide-slide.c
+++ b/libglide/glide-slide.c
@@ -29,6 +29,8 @@
 
 #include "glide-cairo-util.h"
 
+static GlideAnimationInfo default_slide_animation;
+
 static void clutter_container_iface_init (ClutterContainerIface *iface);
 
 G_DEFINE_TYPE_WITH_CODE (GlideSlide, glide_slide, GLIDE_TYPE_ACTOR,
@@ -560,6 +562,14 @@ glide_slide_print (GlideActor *a,
 }
 
 static void
+glide_slide_class_make_default_slide_animation ()
+{
+  default_slide_animation.animation = glide_animation_manager_get_animation ("Fade");
+  default_slide_animation.option = NULL;
+  default_slide_animation.duration = 1000;
+}
+
+static void
 glide_slide_class_init (GlideSlideClass *klass)
 {
   GObjectClass *object_class = G_OBJECT_CLASS (klass);
@@ -584,6 +594,8 @@ glide_slide_class_init (GlideSlideClass *klass)
   actor_class->show_all = glide_slide_show_all;
   actor_class->hide_all = glide_slide_hide_all;
   
+  glide_slide_class_make_default_slide_animation ();
+  
   g_object_class_install_property (object_class,
 				   PROP_DOCUMENT,
 				   g_param_spec_object ("document",
@@ -605,7 +617,7 @@ glide_slide_class_init (GlideSlideClass *klass)
 				   PROP_ANIMATION,
 				   glide_param_spec_animation_info ("animation",
 								    "Animation", "The animation to use during slide transitions",
-								    NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
+								    &default_slide_animation, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT));
 								    
 								    
   



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