[banshee/gtk3] EqualizerWindow: Add a Close button at the bottom of the window



commit 6cb92c22ae098d29f01ee4fa90974b5519ef62ae
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Sat Dec 17 15:18:57 2011 +0100

    EqualizerWindow: Add a Close button at the bottom of the window
    
    Windows with a Dialog type hint may not have a close button in the
    window title bar, so we need to provide a regular close button.

 .../Banshee.Equalizer.Gui/EqualizerWindow.cs       |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui/EqualizerWindow.cs b/src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui/EqualizerWindow.cs
index dd675d3..c634d7c 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui/EqualizerWindow.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Equalizer.Gui/EqualizerWindow.cs
@@ -62,7 +62,7 @@ namespace Banshee.Equalizer.Gui
             SkipPagerHint = true;
             SkipTaskbarHint = true;
 
-            SetDefaultSize (-1, 180);
+            SetDefaultSize (-1, 230);
 
             VBox box = new VBox ();
             header_box = new HBox ();
@@ -102,6 +102,14 @@ namespace Banshee.Equalizer.Gui
 
             box.PackStart (eq_view, true, true, 0);
 
+            var button_box = new ButtonBox (Orientation.Horizontal);
+            button_box.Layout = ButtonBoxStyle.End;
+            button_box.BorderWidth = 12;
+            var button = new Button (Stock.Close) { UseStock = true };
+            button.Clicked += delegate { Destroy (); };
+            button_box.Add (button);
+            box.PackEnd (button_box, false, true, 0);
+
             eq_enabled_checkbox.Active = EqualizerManager.Instance.IsActive;
             eq_enabled_checkbox.Clicked += OnEnableDisable;
             eq_preset_combo.ActiveEqualizer = EqualizerManager.Instance.SelectedEqualizer;



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