[banshee] [ThickClient] Fix ImportDialog padding



commit e45d23c66a6d1fb22379a0889ddef64d17b89ee6
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Thu May 13 13:36:36 2010 -0700

    [ThickClient] Fix ImportDialog padding

 .../Banshee.Library.Gui/ImportDialog.cs            |   21 ++++++++++++-------
 1 files changed, 13 insertions(+), 8 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Library.Gui/ImportDialog.cs b/src/Core/Banshee.ThickClient/Banshee.Library.Gui/ImportDialog.cs
index 7f6844c..93c6bd3 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Library.Gui/ImportDialog.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Library.Gui/ImportDialog.cs
@@ -63,9 +63,10 @@ namespace Banshee.Library.Gui
 
             uint row = 0;
 
-            var table = new Table (4, 2, false) {
+            var table = new Table (doNotShowAgainVisible ? (uint)4 : (uint)3, 2, false) {
                 RowSpacing = 12,
-                ColumnSpacing = 16
+                ColumnSpacing = 16,
+                Homogeneous = false
             };
 
             table.Attach (new Label () {
@@ -93,9 +94,11 @@ namespace Banshee.Library.Gui
             vbox.PackStart (source_combo_box, false, false, 0);
             table.Attach (vbox, 1, 2, row, ++row);
 
-            table.Attach (do_not_show_check_button = new CheckButton (
-                Catalog.GetString ("Do not show this dialog again")),
-                1, 2, row, ++row);
+            if (doNotShowAgainVisible) {
+                table.Attach (do_not_show_check_button = new CheckButton (
+                    Catalog.GetString ("Do not show this dialog again")),
+                    1, 2, row, ++row);
+            }
 
             table.Attach (new Image () {
                     IconName = "drive-harddisk",
@@ -106,7 +109,9 @@ namespace Banshee.Library.Gui
             VBox.PackStart (table, true, true, 0);
             VBox.ShowAll ();
 
-            DoNotShowAgainVisible = doNotShowAgainVisible;
+            if (doNotShowAgainVisible) {
+                DoNotShowAgainVisible = doNotShowAgainVisible;
+            }
 
             ServiceManager.SourceManager.SourceAdded += OnSourceAdded;
             ServiceManager.SourceManager.SourceRemoved += OnSourceRemoved;
@@ -264,12 +269,12 @@ namespace Banshee.Library.Gui
             return false;
         }
 
-        public bool DoNotShowAgainVisible {
+        private bool DoNotShowAgainVisible {
             get { return do_not_show_check_button.Visible; }
             set { do_not_show_check_button.Visible = value; }
         }
 
-        public bool DoNotShowAgain {
+        private bool DoNotShowAgain {
             get { return do_not_show_check_button.Active; }
         }
 



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