[banshee/gtk3] [widget] Fix VolumeButton widget for gtk3
- From: Olivier Dufour <dufoli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/gtk3] [widget] Fix VolumeButton widget for gtk3
- Date: Sun, 3 Jul 2011 16:00:44 +0000 (UTC)
commit 616f02ceeb420fbf1518f29d0729b0233e9adfc3
Author: Olivier Dufour <olivier duff gmail com>
Date: Sun Jul 3 17:48:20 2011 +0200
[widget] Fix VolumeButton widget for gtk3
.../Banshee.Widgets/VolumeButton.cs | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/Core/Banshee.Widgets/Banshee.Widgets/VolumeButton.cs b/src/Core/Banshee.Widgets/Banshee.Widgets/VolumeButton.cs
index afeeae8..213a9c5 100644
--- a/src/Core/Banshee.Widgets/Banshee.Widgets/VolumeButton.cs
+++ b/src/Core/Banshee.Widgets/Banshee.Widgets/VolumeButton.cs
@@ -207,7 +207,7 @@ namespace Bacon
dock.Screen = Screen;
- GdkWindow.GetOrigin(out x, out y);
+ Window.GetOrigin(out x, out y);
x += Allocation.X;
v = Volume / (adj.Upper - adj.Lower);
@@ -223,10 +223,10 @@ namespace Bacon
dock.Move(x, y - (SCALE_SIZE / 2));
dock.ShowAll();
- dock.GdkWindow.GetOrigin(out dx, out dy);
+ dock.Window.GetOrigin(out dx, out dy);
dy += dock.Allocation.Y;
- slider.GdkWindow.GetOrigin(out sx, out sy);
+ slider.Window.GetOrigin(out sx, out sy);
sy += slider.Allocation.Y;
ystartoff = sy - dy;
@@ -245,7 +245,7 @@ namespace Bacon
}
dock.Move(x, y);
- slider.GdkWindow.GetOrigin(out sx, out sy);
+ slider.Window.GetOrigin(out sx, out sy);
}
bool base_result = !classic && evnt is Gdk.EventButton
@@ -254,7 +254,7 @@ namespace Bacon
Gtk.Grab.Add(dock);
- if(Gdk.Pointer.Grab(dock.GdkWindow, true,
+ if(Gdk.Pointer.Grab(dock.Window, true,
Gdk.EventMask.ButtonPressMask |
Gdk.EventMask.ButtonReleaseMask |
Gdk.EventMask.PointerMotionMask, null, null, event_time) != Gdk.GrabStatus.Success) {
@@ -263,7 +263,7 @@ namespace Bacon
return false;
}
- if(Gdk.Keyboard.Grab(dock.GdkWindow, true, event_time) != Gdk.GrabStatus.Success) {
+ if(Gdk.Keyboard.Grab(dock.Window, true, event_time) != Gdk.GrabStatus.Success) {
Display.PointerUngrab(event_time);
Gtk.Grab.Remove(dock);
dock.Hide();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]