banshee r4159 - in trunk/banshee: . src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea



Author: sharm
Date: Tue Jun 17 21:38:46 2008
New Revision: 4159
URL: http://svn.gnome.org/viewvc/banshee?rev=4159&view=rev

Log:
* src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/X11NotificationAreaBox.cs:
  Get top_level_window from notification area box's event_box, so
  that panel orientation can be determined correctly.  Fixes bug
  #537679.

Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/X11NotificationAreaBox.cs

Modified: trunk/banshee/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/X11NotificationAreaBox.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/X11NotificationAreaBox.cs	(original)
+++ trunk/banshee/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/X11NotificationAreaBox.cs	Tue Jun 17 21:38:46 2008
@@ -149,11 +149,11 @@
             // Determine whether the tray is inside a horizontal or vertical
             // panel so the size of the icon can adjust correctly.
         
-            if (ParentWindow == null) {
+            if (event_box.ParentWindow == null) {
                 return PanelOrientation.Horizontal;
             }
 
-            Gdk.Window top_level_window = ParentWindow.Toplevel;
+            Gdk.Window top_level_window = event_box.ParentWindow.Toplevel;
 
             Gdk.Rectangle rect = top_level_window.FrameExtents;
             if (rect.Width < rect.Height) {



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