[banshee] PlayQueue: Additional padding for the fill controls (bgo#640455)
- From: Alexander Kojevnikov <alexk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] PlayQueue: Additional padding for the fill controls (bgo#640455)
- Date: Wed, 2 Feb 2011 01:23:31 +0000 (UTC)
commit 3e571f41768812f0b007fec55e7a2fba989a1750
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date: Wed Feb 2 09:22:36 2011 +0800
PlayQueue: Additional padding for the fill controls (bgo#640455)
.../Banshee.PlayQueue/HeaderWidget.cs | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/HeaderWidget.cs b/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/HeaderWidget.cs
index ca8109a..bbb36b7 100644
--- a/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/HeaderWidget.cs
+++ b/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/HeaderWidget.cs
@@ -40,7 +40,7 @@ using Banshee.Widgets;
namespace Banshee.PlayQueue
{
- public class HeaderWidget : HBox
+ public class HeaderWidget : Alignment
{
public event EventHandler<EventArgs<RandomBy>> ModeChanged;
public event EventHandler<EventArgs<DatabaseSource>> SourceChanged;
@@ -51,10 +51,12 @@ namespace Banshee.PlayQueue
public string ShuffleModeId { get { return mode_combo.ActiveValue.Id; } }
- public HeaderWidget (Shuffler shuffler, string shuffle_mode_id, string source_name) : base ()
+ public HeaderWidget (Shuffler shuffler, string shuffle_mode_id, string source_name) : base (0, 0, 0, 0)
{
ThreadAssist.AssertInMainThread ();
- this.Spacing = 6;
+
+ var box = new HBox ();
+ box.Spacing = 6;
var fill_label = new Label (Catalog.GetString ("_Fill"));
mode_combo = new DictionaryComboBox<RandomBy> ();
@@ -82,10 +84,12 @@ namespace Banshee.PlayQueue
}
};
- PackStart (fill_label, false, false, 0);
- PackStart (mode_combo, false, false, 0);
- PackStart (from_label, false, false, 0);
- PackStart (source_combo_box, false, false, 0);
+ box.PackStart (fill_label, false, false, 0);
+ box.PackStart (mode_combo, false, false, 0);
+ box.PackStart (from_label, false, false, 0);
+ box.PackStart (source_combo_box, false, false, 0);
+ this.SetPadding (0, 0, 6, 6);
+ this.Add (box);
// Select the saved population mode.
var default_randomby = shuffler.RandomModes.FirstOrDefault (r => r.Id == shuffle_mode_id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]