[hyena/gtk3] AnimatedVBox: Add a new test module for a few animations
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hyena/gtk3] AnimatedVBox: Add a new test module for a few animations
- Date: Mon, 6 Jun 2011 19:46:28 +0000 (UTC)
commit df74aa523fbe26d73377acade828513676fcf044
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date: Fri Jun 3 16:17:55 2011 +0200
AnimatedVBox: Add a new test module for a few animations
Hyena.Gui/Hyena.Widgets/AnimatedVBox.cs | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/Hyena.Gui/Hyena.Widgets/AnimatedVBox.cs b/Hyena.Gui/Hyena.Widgets/AnimatedVBox.cs
index 0d59221..4d27c00 100644
--- a/Hyena.Gui/Hyena.Widgets/AnimatedVBox.cs
+++ b/Hyena.Gui/Hyena.Widgets/AnimatedVBox.cs
@@ -42,4 +42,32 @@ namespace Hyena.Widgets
{
}
}
+
+ [Hyena.Gui.TestModule ("Animated VBox")]
+ internal class AnimatedVBoxTestModule : Gtk.Window
+ {
+ Label label1, label2, label3;
+
+ public AnimatedVBoxTestModule () : base ("Animated VBox")
+ {
+ AnimatedVBox vbox = new AnimatedVBox ();
+ Add (vbox);
+ ShowAll ();
+
+ label1 = new Label ("First Label");
+ label2 = new Label ("Second Label");
+ label3 = new Label ("Third Label with a longer text");
+
+ vbox.PackEnd (label1, Hyena.Gui.Theatrics.Easing.Linear, Blocking.Downstage);
+ vbox.PackEnd (label2, 2000, Hyena.Gui.Theatrics.Easing.ExponentialIn, Blocking.Upstage);
+ vbox.PackEnd (label3, 5000, Hyena.Gui.Theatrics.Easing.QuadraticInOut);
+
+ GLib.Timeout.AddSeconds (10, delegate {
+ vbox.Remove (label2);
+ vbox.Remove (label1);
+ vbox.Remove (label3);
+ return false;
+ });
+ }
+ }
}
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]