[f-spot] Mouse pointer handling when panning in FS mode.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Mouse pointer handling when panning in FS mode.
- Date: Tue, 25 May 2010 13:01:05 +0000 (UTC)
commit 148f01f9430bb2120f7f943112cef504555a7ef9
Author: Wojciech Dzierżanowski <wojciech dzierzanowski gmail com>
Date: Thu Sep 17 20:16:32 2009 +0200
Mouse pointer handling when panning in FS mode.
The mouse pointer is hidden in certain situations when in fullscreen
mode. We want the pointer to never disappear while the user's panning.
src/FullScreenView.cs | 4 ++++
src/Widgets/ImageView.cs | 8 +++++++-
2 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/src/FullScreenView.cs b/src/FullScreenView.cs
index 83b405e..4768e3d 100644
--- a/src/FullScreenView.cs
+++ b/src/FullScreenView.cs
@@ -185,6 +185,10 @@ namespace FSpot {
private Gdk.Cursor empty_cursor;
private bool HideCursor ()
{
+ if (view.Panning) {
+ return false;
+ }
+
if (empty_cursor == null)
empty_cursor = GdkUtils.CreateEmptyCursor (GdkWindow.Display);
diff --git a/src/Widgets/ImageView.cs b/src/Widgets/ImageView.cs
index 6b2a3ca..ceac326 100644
--- a/src/Widgets/ImageView.cs
+++ b/src/Widgets/ImageView.cs
@@ -207,6 +207,13 @@ namespace FSpot.Widgets
GLib.Idle.Add (delegate {scrolled.SetPolicy (Gtk.PolicyType.Automatic, Gtk.PolicyType.Automatic); return false;});
}
+ bool panning = false;
+ public bool Panning {
+ get {
+ return panning;
+ }
+ }
+
public Point WindowCoordsToImage (Point win)
{
if (Pixbuf == null)
@@ -1103,7 +1110,6 @@ namespace FSpot.Widgets
#endregion
#region panning
- bool panning = false;
Point pan_anchor = new Point (0, 0);
bool OnPanButtonPressEvent (EventButton evnt)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]