[banshee/gtk3] Replace all remaining references to obsolete GdkWindow with Window



commit b4d291d965d6a36845e587107eb5d0f9d932662a
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Thu Jul 21 22:55:47 2011 +0200

    Replace all remaining references to obsolete GdkWindow with Window

 .../GtkWindowThumbnailToolbarManager.cs            |    2 +-
 .../Banshee.Gui.Widgets/ClassicTrackInfoDisplay.cs |    2 +-
 .../Banshee.Gui.Widgets/TrackInfoDisplay.cs        |    2 +-
 .../Banshee.Gui/GtkElementsService.cs              |    4 ++--
 .../Banshee.Gui/PersistentWindowController.cs      |    4 ++--
 .../Banshee.ThickClient/Banshee.Gui/ViewActions.cs |    2 +-
 .../Banshee.Sources.Gui/SourceSwitcherEntry.cs     |    2 +-
 7 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/Backends/Banshee.Windows/Banshee.Windows/GtkWindowThumbnailToolbarManager.cs b/src/Backends/Banshee.Windows/Banshee.Windows/GtkWindowThumbnailToolbarManager.cs
index 72c7971..4293d0b 100644
--- a/src/Backends/Banshee.Windows/Banshee.Windows/GtkWindowThumbnailToolbarManager.cs
+++ b/src/Backends/Banshee.Windows/Banshee.Windows/GtkWindowThumbnailToolbarManager.cs
@@ -66,7 +66,7 @@ namespace Banshee.Windows
                 return;
             }
 
-            ThumbnailToolbarManager.Register (gdk_win32_drawable_get_handle (window.GdkWindow.Handle), cb);
+            ThumbnailToolbarManager.Register (gdk_win32_drawable_get_handle (window.Window.Handle), cb);
         }
 
         [DllImport ("libgdk-win32-2.0-0.dll")]
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/ClassicTrackInfoDisplay.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/ClassicTrackInfoDisplay.cs
index 439c5bc..6fa989d 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/ClassicTrackInfoDisplay.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/ClassicTrackInfoDisplay.cs
@@ -99,7 +99,7 @@ namespace Banshee.Gui.Widgets
             WindowAttributesType attributes_mask =
                 WindowAttributesType.X | WindowAttributesType.Y | WindowAttributesType.Wmclass;
 
-            event_window = new Gdk.Window (GdkWindow, attributes, attributes_mask);
+            event_window = new Gdk.Window (Window, attributes, attributes_mask);
             event_window.UserData = Handle;
         }
 
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs
index cc61f87..14f2275 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/TrackInfoDisplay.cs
@@ -175,7 +175,7 @@ namespace Banshee.Gui.Widgets
 
         protected override void OnRealized ()
         {
-            GdkWindow = Parent.GdkWindow;
+            Window = Parent.Window;
             base.OnRealized ();
         }
 
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/GtkElementsService.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/GtkElementsService.cs
index 5234dd2..4c076a4 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/GtkElementsService.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/GtkElementsService.cs
@@ -66,8 +66,8 @@ namespace Banshee.Gui
 
         private void OnPrimaryWindowRealized (object o, EventArgs args)
         {
-            if (primary_window != null && primary_window.GdkWindow != null) {
-                property_store.Set<IntPtr> ("PrimaryWindow.RawHandle", primary_window.GdkWindow.Handle);
+            if (primary_window != null && primary_window.Window != null) {
+                property_store.Set<IntPtr> ("PrimaryWindow.RawHandle", primary_window.Window.Handle);
             } else {
                 property_store.Remove ("PrimaryWindow.RawHandle");
             }
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/PersistentWindowController.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/PersistentWindowController.cs
index e5adf2b..9018672 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/PersistentWindowController.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/PersistentWindowController.cs
@@ -141,11 +141,11 @@ namespace Banshee.Gui
 
         public void Save ()
         {
-            if (window == null || !window.Visible || !window.IsMapped || window.GdkWindow == null) {
+            if (window == null || !window.Visible || !window.IsMapped || window.Window == null) {
                 return;
             }
 
-            maximized = (window.GdkWindow.State & Gdk.WindowState.Maximized) != 0;
+            maximized = (window.Window.State & Gdk.WindowState.Maximized) != 0;
             window.GetPosition (out x, out y);
             window.GetSize (out width, out height);
 
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui/ViewActions.cs b/src/Core/Banshee.ThickClient/Banshee.Gui/ViewActions.cs
index b30d4e0..aceaca4 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui/ViewActions.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui/ViewActions.cs
@@ -50,7 +50,7 @@ namespace Banshee.Gui
                 GtkElementsService service = ServiceManager.Get<GtkElementsService> ();
                 Gtk.ToggleAction action = this["FullScreenAction"] as Gtk.ToggleAction;
                 if (service != null && action != null && value == null) {
-                    action.Active = (service.PrimaryWindow.GdkWindow.State & Gdk.WindowState.Fullscreen) != 0;
+                    action.Active = (service.PrimaryWindow.Window.State & Gdk.WindowState.Fullscreen) != 0;
                 }
             }
         }
diff --git a/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceSwitcherEntry.cs b/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceSwitcherEntry.cs
index 2376d3d..6d0840a 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceSwitcherEntry.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Sources.Gui/SourceSwitcherEntry.cs
@@ -118,7 +118,7 @@ namespace Banshee.Sources.Gui
                 } catch {}
             };
 
-            Position (view.GdkWindow);
+            Position (view.Window);
             HasFocus = true;
             Show ();
         }



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