[banshee] [ThickClient] Fix TrackEditor spacing/padding



commit 742bfd45bbcf29e1172bb5e56d7b55066b24d9e0
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Thu May 13 14:03:46 2010 -0700

    [ThickClient] Fix TrackEditor spacing/padding

 .../Banshee.Gui.TrackEditor/TrackEditorDialog.cs   |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/TrackEditorDialog.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/TrackEditorDialog.cs
index aeb2c07..9c371db 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/TrackEditorDialog.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.TrackEditor/TrackEditorDialog.cs
@@ -88,8 +88,6 @@ namespace Banshee.Gui.TrackEditor
 
             LoadTrackModel (model);
 
-            BorderWidth = 6;
-
             if (mode == EditorMode.Edit) {
                 WidthRequest = 525;
                 AddStockButton (Stock.Cancel, ResponseType.Cancel);
@@ -104,8 +102,8 @@ namespace Banshee.Gui.TrackEditor
             AddNavigationButtons ();
 
             main_vbox = new VBox ();
-            main_vbox.Spacing = 10;
-            main_vbox.BorderWidth = 6;
+            main_vbox.Spacing = 12;
+            main_vbox.BorderWidth = 0;
             main_vbox.Show ();
             VBox.PackStart (main_vbox, true, true, 0);
 
@@ -229,7 +227,7 @@ namespace Banshee.Gui.TrackEditor
 
         private void BuildFooter ()
         {
-            if (mode == EditorMode.View) {
+            if (mode == EditorMode.View || TrackCount < 2) {
                 return;
             }
 
@@ -676,7 +674,8 @@ namespace Banshee.Gui.TrackEditor
                 track_editor.Destroy ();
             };
 
-            track_editor.Run ();
+            //track_editor.Run ();
+            track_editor.Show ();
         }
 
         private static bool UpdateCancelMessage (TrackEditorDialog trackEditor, HigMessageDialog messageDialog)



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