[longomatch] Ungrab the pointer after clicking the player's event box



commit 3baa62d53d6a0af0b8df9122f841555a7296dab6
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sat Mar 27 09:21:24 2010 +0100

    Ungrab the pointer after clicking the player's event box

 CesarPlayer/Gui/PlayerBin.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/CesarPlayer/Gui/PlayerBin.cs b/CesarPlayer/Gui/PlayerBin.cs
index 65ac177..903eeb2 100644
--- a/CesarPlayer/Gui/PlayerBin.cs
+++ b/CesarPlayer/Gui/PlayerBin.cs
@@ -550,6 +550,10 @@ namespace LongoMatch.Gui
 		{
 			if(filename == null)
 				return;
+			/* FIXME: The pointer is grabbed when the event box is clicked.
+			 * Make sure to ungrab it in order to avoid clicks outisde the window
+			 * triggering this callback. This should be fixed properly.*/ 
+			Pointer.Ungrab(Gtk.Global.CurrentEventTime);
 			if (!player.Playing)
 				Play();
 			else 



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