banshee r4553 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Gui
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4553 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Gui
- Date: Tue, 16 Sep 2008 01:18:01 +0000 (UTC)
Author: gburt
Date: Tue Sep 16 01:18:01 2008
New Revision: 4553
URL: http://svn.gnome.org/viewvc/banshee?rev=4553&view=rev
Log:
2008-09-15 Gabriel Burt <gabriel burt gmail com>
* src/Core/Banshee.ThickClient/Banshee.Gui/BaseClientWindow.cs: Change the
ToggleVisibility method to Present the window if the window is minimized,
hidden in the tray, or simply not the focused window. Iff it is the
active window, hide it (BGO #551916).
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/BaseClientWindow.cs
Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/BaseClientWindow.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/BaseClientWindow.cs (original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/BaseClientWindow.cs Tue Sep 16 01:18:01 2008
@@ -74,11 +74,13 @@
public void ToggleVisibility ()
{
- if (Visible) {
+ if (Visible && IsActive) {
window_controller.Save ();
Visible = false;
} else {
- window_controller.Restore ();
+ if (!Visible) {
+ window_controller.Restore ();
+ }
Present ();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]