banshee r4097 - in trunk/banshee: . src/Extensions/Banshee.NowPlaying/Banshee.NowPlaying



Author: abock
Date: Tue Jun  3 22:50:19 2008
New Revision: 4097
URL: http://svn.gnome.org/viewvc/banshee?rev=4097&view=rev

Log:
2008-06-03  Aaron Bockover  <abock gnome org>

    * src/Extensions/Banshee.NowPlaying/Banshee.NowPlaying/FullscreenWindow.cs:
    Reconfigure the window when we're shown so we'll fullscreen to the
    proper monitor (whatever monitor the parent is on) (BGO #535982)



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Extensions/Banshee.NowPlaying/Banshee.NowPlaying/FullscreenWindow.cs

Modified: trunk/banshee/src/Extensions/Banshee.NowPlaying/Banshee.NowPlaying/FullscreenWindow.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.NowPlaying/Banshee.NowPlaying/FullscreenWindow.cs	(original)
+++ trunk/banshee/src/Extensions/Banshee.NowPlaying/Banshee.NowPlaying/FullscreenWindow.cs	Tue Jun  3 22:50:19 2008
@@ -111,6 +111,11 @@
             // doing strange things with the window
             TypeHint = Gdk.WindowTypeHint.Notification;
             
+            ConfigureWindow ();
+        }
+        
+        private void ConfigureWindow ()
+        {
             Gdk.Screen screen = Screen;
             int monitor = screen.GetMonitorAtWindow (parent.GdkWindow);
             Gdk.Rectangle bounds = screen.GetMonitorGeometry (monitor);
@@ -143,6 +148,7 @@
         {
             base.OnShown ();
             OnHideCursorTimeout ();
+            ConfigureWindow ();
             parent.AddNotification ("is-active", ParentActiveNotification);
         }
         
@@ -155,6 +161,7 @@
         
         private void OnScreenSizeChanged (object o, EventArgs args)
         {
+            ConfigureWindow ();
         }
         
         private void ParentActiveNotification (object o, GLib.NotifyArgs args)



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