[ease] Moved some Inspector code around.



commit 233e7f6d6415bb890afc8d52b1c3d52535d42e65
Author: Nate Stedman <natesm gmail com>
Date:   Tue Jun 1 17:54:57 2010 -0400

    Moved some Inspector code around.

 src/Inspector.vala      |    6 ++++++
 src/InspectorPane.vala  |    3 ++-
 src/SlidePane.vala      |    7 ++-----
 src/TransitionPane.vala |    7 ++-----
 4 files changed, 12 insertions(+), 11 deletions(-)
---
diff --git a/src/Inspector.vala b/src/Inspector.vala
index a267f51..2a43815 100644
--- a/src/Inspector.vala
+++ b/src/Inspector.vala
@@ -23,6 +23,10 @@ public class Ease.Inspector : Gtk.Notebook
 	private TransitionPane transition_pane;
 	private SlidePane slide_pane;
 	
+	// constants
+	private const int REQUEST_WIDTH = 200;
+	private const int REQUEST_HEIGHT = 0;
+	
 	private Slide slide_priv;
 	
 	/**
@@ -40,6 +44,8 @@ public class Ease.Inspector : Gtk.Notebook
 	
 	public Inspector()
 	{
+		set_size_request(REQUEST_WIDTH, REQUEST_HEIGHT);
+	
 		transition_pane = new TransitionPane();
 		slide_pane = new SlidePane();
 		
diff --git a/src/InspectorPane.vala b/src/InspectorPane.vala
index 0496992..a80c71a 100644
--- a/src/InspectorPane.vala
+++ b/src/InspectorPane.vala
@@ -33,7 +33,8 @@ public abstract class Ease.InspectorPane : Gtk.VBox
 
 	public InspectorPane()
 	{
-		
+		homogeneous = false;
+		spacing = 0;
 	}
 	
 	/**
diff --git a/src/SlidePane.vala b/src/SlidePane.vala
index 3586725..a47d8d8 100644
--- a/src/SlidePane.vala
+++ b/src/SlidePane.vala
@@ -28,11 +28,8 @@ public class Ease.SlidePane : InspectorPane
 	public Gtk.SpinButton delay;
 
 	public SlidePane()
-	{
-		homogeneous = false;
-		spacing = 0;
-		
-		set_size_request(200, 0);
+	{	
+		base();
 		
 		// effect selection
 		var vbox = new Gtk.VBox(false, 0);
diff --git a/src/TransitionPane.vala b/src/TransitionPane.vala
index ad2e9b4..9729879 100644
--- a/src/TransitionPane.vala
+++ b/src/TransitionPane.vala
@@ -31,17 +31,14 @@ public class Ease.TransitionPane : InspectorPane
 	// transition preview
 	private Gtk.AspectFrame aspect;
 	private GtkClutter.Embed preview;
+	private Gtk.Alignment preview_align;
 	private SlideActor current_slide;
 	private SlideActor new_slide;
 	private const int PREVIEW_HEIGHT = 150;
 	
-
 	public TransitionPane()
 	{
-		homogeneous = false;
-		spacing = 0;
-		
-		set_size_request(200, 0);
+		base();
 		
 		// preview
 		preview = new GtkClutter.Embed();



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