[banshee] windows: Fix notification icon menu positioning (bgo#641608)



commit e07849cd82ad44751ea6e2bc6c6f7ca872ed4164
Author: Ján Sokoly <cruster gmail com>
Date:   Tue Mar 8 11:37:11 2011 -0600

    windows: Fix notification icon menu positioning (bgo#641608)
    
    Signed-off-by: Gabriel Burt <gabriel burt gmail com>

 .../Banshee.NotificationArea.csproj                |    2 +-
 .../NotificationAreaService.cs                     |    5 +++++
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea.csproj b/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea.csproj
index 8eb1240..c1c62fb 100644
--- a/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea.csproj
+++ b/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea.csproj
@@ -32,7 +32,7 @@
     <WarningLevel>4</WarningLevel>
     <Optimize>false</Optimize>
     <OutputPath>..\..\..\bin\bin</OutputPath>
-    <DefineConstants>INTERNAL_NOTIFY_SHARP, HAVE_GTK_2_10</DefineConstants>
+    <DefineConstants>WIN32, INTERNAL_NOTIFY_SHARP, HAVE_GTK_2_10</DefineConstants>
   </PropertyGroup>
   <ItemGroup>
     <ProjectReference Include="..\..\Core\Banshee.Core\Banshee.Core.csproj">
diff --git a/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs b/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
index a08a3b8..66d6fe2 100644
--- a/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
+++ b/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
@@ -328,7 +328,12 @@ namespace Banshee.NotificationArea
                 }
             }
 
+// Work around/fix bgo#641608 on Windows with this if/else/endif
+#if WIN32
+            menu.Popup (null, null, null, 3, Gtk.Global.CurrentEventTime);
+#else
             menu.Popup (null, null, notif_area.PositionMenu, 3, Gtk.Global.CurrentEventTime);
+#endif
         }
 
         private void CloseWindow (object o, EventArgs args)



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