[gtkglext] [GB#603849] Add GDK_POINTER_MOTION_MASK to get motion notify events



commit a912adadbac2a1cd0b00379d7ecec457f9505c05
Author: Mukund Sivaraman <muks banu com>
Date:   Thu Dec 10 01:30:05 2009 +0530

    [GB#603849] Add GDK_POINTER_MOTION_MASK to get motion notify events

 examples/coolwave.c        |    1 +
 examples/coolwave2.c       |    1 +
 examples/logo.c            |    1 +
 examples/rotating-square.c |    1 +
 examples/scribble-gl.c     |    1 +
 examples/shapes.c          |    1 +
 examples/template.c        |    1 +
 7 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/examples/coolwave.c b/examples/coolwave.c
index c550974..74a74a3 100644
--- a/examples/coolwave.c
+++ b/examples/coolwave.c
@@ -713,6 +713,7 @@ create_window (GdkGLConfig *glconfig)
 			 GDK_BUTTON1_MOTION_MASK    |
 			 GDK_BUTTON2_MOTION_MASK    |
 			 GDK_BUTTON_PRESS_MASK      |
+                         GDK_POINTER_MOTION_MASK    |
 			 GDK_VISIBILITY_NOTIFY_MASK);
 
   /* Connect signal handlers to the drawing area */
diff --git a/examples/coolwave2.c b/examples/coolwave2.c
index 5b3d433..92f796c 100644
--- a/examples/coolwave2.c
+++ b/examples/coolwave2.c
@@ -767,6 +767,7 @@ create_window (GdkGLConfig *glconfig)
 			 GDK_BUTTON1_MOTION_MASK    |
 			 GDK_BUTTON2_MOTION_MASK    |
 			 GDK_BUTTON_PRESS_MASK      |
+                         GDK_POINTER_MOTION_MASK    |
 			 GDK_VISIBILITY_NOTIFY_MASK);
 
   /* Connect signal handlers to the drawing area */
diff --git a/examples/logo.c b/examples/logo.c
index a7fa396..4e5bd69 100644
--- a/examples/logo.c
+++ b/examples/logo.c
@@ -770,6 +770,7 @@ main(int   argc,
 			 GDK_BUTTON1_MOTION_MASK    |
 			 GDK_BUTTON2_MOTION_MASK    |
 			 GDK_BUTTON_PRESS_MASK      |
+                         GDK_POINTER_MOTION_MASK    |
 			 GDK_VISIBILITY_NOTIFY_MASK);
 
   g_signal_connect_after (G_OBJECT (drawing_area), "realize",
diff --git a/examples/rotating-square.c b/examples/rotating-square.c
index bc551a7..67e71e4 100644
--- a/examples/rotating-square.c
+++ b/examples/rotating-square.c
@@ -497,6 +497,7 @@ create_window (GdkGLConfig *glconfig)
 			 GDK_BUTTON1_MOTION_MASK    |
 			 GDK_BUTTON2_MOTION_MASK    |
 			 GDK_BUTTON_PRESS_MASK      |
+                         GDK_POINTER_MOTION_MASK    |
 			 GDK_VISIBILITY_NOTIFY_MASK);
 
   /* Connect signal handlers to the drawing area */
diff --git a/examples/scribble-gl.c b/examples/scribble-gl.c
index 8dff46f..26a8cdf 100644
--- a/examples/scribble-gl.c
+++ b/examples/scribble-gl.c
@@ -318,6 +318,7 @@ create_window (GdkGLConfig *glconfig)
 
   gtk_widget_add_events (drawing_area,
 			 GDK_BUTTON1_MOTION_MASK    |
+                         GDK_POINTER_MOTION_MASK    |
 			 GDK_BUTTON_PRESS_MASK);
 
   /* Connect signal handlers to the drawing area */
diff --git a/examples/shapes.c b/examples/shapes.c
index c31db2e..41cb29b 100644
--- a/examples/shapes.c
+++ b/examples/shapes.c
@@ -935,6 +935,7 @@ main (int   argc,
 			 GDK_BUTTON2_MOTION_MASK    |
 			 GDK_BUTTON_PRESS_MASK      |
                          GDK_BUTTON_RELEASE_MASK    |
+                         GDK_POINTER_MOTION_MASK    |
 			 GDK_VISIBILITY_NOTIFY_MASK);
 
   g_signal_connect_after (G_OBJECT (drawing_area), "realize",
diff --git a/examples/template.c b/examples/template.c
index 6827fa0..058aed8 100644
--- a/examples/template.c
+++ b/examples/template.c
@@ -540,6 +540,7 @@ create_window (GdkGLConfig *glconfig)
 			 GDK_BUTTON1_MOTION_MASK    |
 			 GDK_BUTTON2_MOTION_MASK    |
 			 GDK_BUTTON_PRESS_MASK      |
+                         GDK_POINTER_MOTION_MASK    |
 			 GDK_VISIBILITY_NOTIFY_MASK);
 
   /* Connect signal handlers to the drawing area */



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