[banshee/gtk3] Replace the last occurrences of SizeRequest with GetPreferred* calls
- From: Bertrand Lorentz <blorentz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/gtk3] Replace the last occurrences of SizeRequest with GetPreferred* calls
- Date: Mon, 1 Aug 2011 19:46:54 +0000 (UTC)
commit 41c1bc66b59996e921091850c25d0b4303706995
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date: Mon Aug 1 21:05:40 2011 +0200
Replace the last occurrences of SizeRequest with GetPreferred* calls
.../Banshee.LastfmStreaming/StationEditor.cs | 4 +++-
.../Banshee.MiniMode/MiniModeWindow.cs | 5 ++++-
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/Extensions/Banshee.LastfmStreaming/Banshee.LastfmStreaming/StationEditor.cs b/src/Extensions/Banshee.LastfmStreaming/Banshee.LastfmStreaming/StationEditor.cs
index d0b535a..71bef0b 100644
--- a/src/Extensions/Banshee.LastfmStreaming/Banshee.LastfmStreaming/StationEditor.cs
+++ b/src/Extensions/Banshee.LastfmStreaming/Banshee.LastfmStreaming/StationEditor.cs
@@ -74,8 +74,10 @@ namespace Banshee.LastfmStreaming.Radio
AddStockButton (Stock.Cancel, ResponseType.Cancel);
AddStockButton (Stock.Ok, ResponseType.Ok, true);
+ int minimum_width, natural_width;
+ GetPreferredWidth (out minimum_width, out natural_width);
SetGeometryHints (this, new Gdk.Geometry () {
- MinWidth = SizeRequest ().Width,
+ MinWidth = minimum_width,
MaxWidth = Gdk.Screen.Default.Width,
MinHeight = -1,
MaxHeight = -1
diff --git a/src/Extensions/Banshee.MiniMode/Banshee.MiniMode/MiniModeWindow.cs b/src/Extensions/Banshee.MiniMode/Banshee.MiniMode/MiniModeWindow.cs
index e91fb38..5a78be4 100644
--- a/src/Extensions/Banshee.MiniMode/Banshee.MiniMode/MiniModeWindow.cs
+++ b/src/Extensions/Banshee.MiniMode/Banshee.MiniMode/MiniModeWindow.cs
@@ -139,7 +139,10 @@ namespace Banshee.MiniMode
limits.MinHeight = -1;
limits.MaxHeight = -1;
- limits.MinWidth = SizeRequest ().Width;
+
+ int minimum_width, natural_width;
+ GetPreferredWidth (out minimum_width, out natural_width);
+ limits.MinWidth = minimum_width;
limits.MaxWidth = Gdk.Screen.Default.Width;
SetGeometryHints (this, limits, Gdk.WindowHints.MaxSize | Gdk.WindowHints.MinSize);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]