[glide] Sensitivity for duration thingy



commit b922b26e232057be418b61456966c3e169a2906a
Author: Robert Carr <racarr Valentine localdomain>
Date:   Sat May 1 21:40:50 2010 -0400

    Sensitivity for duration thingy

 src/glide-inspector-animation.c |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/src/glide-inspector-animation.c b/src/glide-inspector-animation.c
index deca489..68c47c3 100644
--- a/src/glide-inspector-animation.c
+++ b/src/glide-inspector-animation.c
@@ -166,6 +166,15 @@ glide_inspector_animation_effect_box_changed (GtkWidget *cbox,
       return;
     }
   
+  if (!strcmp(animation, "None"))
+    {
+      gtk_widget_set_sensitive (ins->priv->duration_spin, FALSE);
+    }
+  else
+    {
+      gtk_widget_set_sensitive (ins->priv->duration_spin, TRUE);
+    }
+  
   old_info = glide_slide_get_animation (GLIDE_SLIDE (ins->priv->actor));
   ga = glide_animation_manager_get_animation (animation);
 
@@ -194,9 +203,13 @@ glide_inspector_effect_box_set_animation (GlideInspectorAnimation *ins)
   const gchar *animation;
   
   if (!info || !info->animation)
-    animation = "None";
+    {
+      animation = "None";
+    }
   else
-    animation = info->animation->name;
+    {
+      animation = info->animation->name;
+    }
   
   gtk_tree_model_get_iter_first (m, &iter);
   do {



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