[glide] Add an option field to GlideAnimationInfo



commit df2b5f0d5861754aca24c8d75cf0bc5e031134b5
Author: Robert Carr <racarr Valentine localdomain>
Date:   Tue Apr 27 03:47:23 2010 -0400

    Add an option field to GlideAnimationInfo

 src/glide-animation-manager.c |    5 ++++-
 src/glide-animation-manager.h |    2 ++
 src/glide-window.c            |    1 +
 src/glide.vapi                |    2 ++
 4 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/glide-animation-manager.c b/src/glide-animation-manager.c
index 52028a6..c36ff97 100644
--- a/src/glide-animation-manager.c
+++ b/src/glide-animation-manager.c
@@ -100,7 +100,10 @@ void
 glide_animation_info_free (GlideAnimationInfo *info)
 {
   if (G_LIKELY (info != NULL))
-    g_slice_free (GlideAnimationInfo, info);
+    {
+      g_free (info->option);
+      g_slice_free (GlideAnimationInfo, info);
+    }
 }
 
 GlideAnimationInfo *
diff --git a/src/glide-animation-manager.h b/src/glide-animation-manager.h
index ffe95bb..5b6b378 100644
--- a/src/glide-animation-manager.h
+++ b/src/glide-animation-manager.h
@@ -43,6 +43,8 @@ struct _GlideAnimation {
 struct _GlideAnimationInfo {
   const GlideAnimation *animation;
   guint duration;
+  
+  gchar *option;
 };
 
 void glide_animation_manager_register_animation (GlideAnimationCallback callback, GlideAnimationListOptionsCallback list_options, const gchar *name);
diff --git a/src/glide-window.c b/src/glide-window.c
index e19e8f2..7086e47 100644
--- a/src/glide-window.c
+++ b/src/glide-window.c
@@ -720,6 +720,7 @@ glide_window_animations_box_changed_cb (GtkWidget *cbox,
   
   info.duration = 1000;
   info.animation = glide_animation_manager_get_animation (animation);
+  info.option = NULL;
   
   glide_slide_set_animation (s, &info);
   g_free (animation);
diff --git a/src/glide.vapi b/src/glide.vapi
index 6f7fca2..5a6f14b 100644
--- a/src/glide.vapi
+++ b/src/glide.vapi
@@ -9,6 +9,8 @@ namespace Glide {
 		public struct AnimationInfo {
 			Animation animation;
 			uint duration;
+			
+			string option;
 		}	  
 		[CCode (cheader_filename = "glide-animation-manager.h")]
 		public struct Animation {



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