[banshee/stable-1.6] [BansheeDialog] center on screen if parent hidden
- From: Aaron Bockover <abock src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/stable-1.6] [BansheeDialog] center on screen if parent hidden
- Date: Wed, 14 Apr 2010 02:28:59 +0000 (UTC)
commit 171cbf5b9737fd39bda835bf2a5fc13d31f4001c
Author: Aaron Bockover <abockover novell com>
Date: Mon Apr 5 11:52:35 2010 -0400
[BansheeDialog] center on screen if parent hidden
If the transient dialog is null or is not visible, center
the dialog on the screen, otherwise it will end up in an
unspecified location.
.../Banshee.Gui.Dialogs/BansheeDialog.cs | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs/BansheeDialog.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs/BansheeDialog.cs
index 97e055c..d7912c2 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs/BansheeDialog.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.Dialogs/BansheeDialog.cs
@@ -65,7 +65,9 @@ namespace Banshee.Gui.Dialogs
TransientFor = parent;
}
- WindowPosition = WindowPosition.CenterOnParent;
+ WindowPosition = TransientFor == null || !TransientFor.Visible
+ ? WindowPosition.Center
+ : WindowPosition.CenterOnParent;
DestroyWithParent = true;
accel_group = new AccelGroup ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]