[longomatch] Allow customized cursor on video window.
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Allow customized cursor on video window.
- Date: Mon, 27 Apr 2015 22:21:57 +0000 (UTC)
commit e7e89c58d0bfeb555943ed0f0a7fb430882e62f1
Author: Julien Moutte <julien fluendo com>
Date: Fri Apr 24 15:21:04 2015 +0200
Allow customized cursor on video window.
LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs b/LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs
index 5b66dbb..3afc5d0 100644
--- a/LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs
+++ b/LongoMatch.GUI.Multimedia/Gui/VideoWindow.cs
@@ -16,8 +16,10 @@
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
//
using System;
-using System.Runtime.InteropServices;
+
using Gtk;
+using Gdk;
+
using LongoMatch.Core.Interfaces.GUI;
using LongoMatch.Multimedia.Utils;
@@ -37,7 +39,7 @@ namespace LongoMatch.Gui
public new event ScrollEventHandler ScrollEvent;
public event ButtonPressEventHandler VideoDragStarted;
public event ButtonReleaseEventHandler VideoDragStopped;
- public new event MotionNotifyEventHandler VideoDragged;
+ public event MotionNotifyEventHandler VideoDragged;
public VideoWindow ()
{
@@ -126,6 +128,12 @@ namespace LongoMatch.Gui
set;
}
+ public Cursor Cursor {
+ set {
+ drawingWindow.GdkWindow.Cursor = value;
+ }
+ }
+
void HandleMotionNotifyEvent (object o, MotionNotifyEventArgs args)
{
if (dragStarted == true) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]