[banshee] [Nereid] add a global GDK/X event filter



commit 2da32f3203e99b172904d38963714d53634cbbd4
Author: Aaron Bockover <abockover novell com>
Date:   Sun Mar 21 19:32:58 2010 -0400

    [Nereid] add a global GDK/X event filter
    
    Unused code for now, but will be used to know when to show
    or hide the popup overlay status bar ala chrome.

 src/Clients/Nereid/Nereid/PlayerInterface.cs |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)
---
diff --git a/src/Clients/Nereid/Nereid/PlayerInterface.cs b/src/Clients/Nereid/Nereid/PlayerInterface.cs
index 09fa988..1c4d007 100644
--- a/src/Clients/Nereid/Nereid/PlayerInterface.cs
+++ b/src/Clients/Nereid/Nereid/PlayerInterface.cs
@@ -5,7 +5,7 @@
 //   Aaron Bockover <abockover novell com>
 //   Gabriel Burt <gburt novell com>
 //
-// Copyright (C) 2007-2008 Novell, Inc.
+// Copyright 2007-2010 Novell, Inc.
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -93,6 +93,9 @@ namespace Nereid
 
         public PlayerInterface () : base (Catalog.GetString ("Banshee Media Player"), "player_window", 1024, 700)
         {
+            // if (PlatformDetection.IsMeeGo) {
+            //     Gdk.Window.AddFilterForAll (OnGdkEventFilter);
+            // }
         }
 
         protected override void Initialize ()
@@ -631,6 +634,24 @@ namespace Nereid
 
 #endregion
 
+#region Popup Status Bar
+#if false
+
+        private Gdk.FilterReturn OnGdkEventFilter (IntPtr xevent, Gdk.Event gdkevent)
+        {
+            if (!IsRealized || !IsMapped) {
+                return Gdk.FilterReturn.Continue;
+            }
+
+            Gdk.ModifierType mask;
+            int x, y;
+            GdkWindow.GetPointer (out x, out y, out mask);
+            return Gdk.FilterReturn.Continue;
+        }
+
+#endif
+#endregion
+
 #region Helper Functions
 
         private void HandleTrackModelReloaded (object sender, EventArgs args)



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