goocanvas r22 - in trunk: . demo
- From: damon svn gnome org
- To: svn-commits-list gnome org
- Subject: goocanvas r22 - in trunk: . demo
- Date: Fri, 31 Oct 2008 19:04:24 +0000 (UTC)
Author: damon
Date: Fri Oct 31 19:04:24 2008
New Revision: 22
URL: http://svn.gnome.org/viewvc/goocanvas?rev=22&view=rev
Log:
2008-10-31 Damon Chaplin <damon gnome org>
* demo/mv-demo-arrowhead.c (on_button_press):
* demo/demo-arrowhead.c (on_button_press):
* demo/mv-demo.c (on_button_press):
* demo/demo.c (on_button_press): use GDK_POINTER_MOTION_HINT_MASK for
the pointer grab, so we don't get too many events.
Modified:
trunk/ChangeLog
trunk/demo/demo-arrowhead.c
trunk/demo/demo.c
trunk/demo/mv-demo-arrowhead.c
trunk/demo/mv-demo.c
Modified: trunk/demo/demo-arrowhead.c
==============================================================================
--- trunk/demo/demo-arrowhead.c (original)
+++ trunk/demo/demo-arrowhead.c Fri Oct 31 19:04:24 2008
@@ -285,7 +285,7 @@
fleur = gdk_cursor_new (GDK_FLEUR);
canvas = goo_canvas_item_get_canvas (item);
goo_canvas_pointer_grab (canvas, item,
- GDK_POINTER_MOTION_MASK | GDK_BUTTON_RELEASE_MASK,
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_RELEASE_MASK,
fleur,
event->time);
gdk_cursor_unref (fleur);
Modified: trunk/demo/demo.c
==============================================================================
--- trunk/demo/demo.c (original)
+++ trunk/demo/demo.c Fri Oct 31 19:04:24 2008
@@ -361,7 +361,7 @@
fleur = gdk_cursor_new (GDK_FLEUR);
goo_canvas_pointer_grab (canvas, item,
- GDK_POINTER_MOTION_MASK | GDK_BUTTON_RELEASE_MASK,
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_RELEASE_MASK,
fleur,
event->time);
gdk_cursor_unref (fleur);
Modified: trunk/demo/mv-demo-arrowhead.c
==============================================================================
--- trunk/demo/mv-demo-arrowhead.c (original)
+++ trunk/demo/mv-demo-arrowhead.c Fri Oct 31 19:04:24 2008
@@ -304,7 +304,7 @@
fleur = gdk_cursor_new (GDK_FLEUR);
canvas = goo_canvas_item_get_canvas (item);
goo_canvas_pointer_grab (canvas, item,
- GDK_POINTER_MOTION_MASK | GDK_BUTTON_RELEASE_MASK,
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_RELEASE_MASK,
fleur,
event->time);
gdk_cursor_unref (fleur);
Modified: trunk/demo/mv-demo.c
==============================================================================
--- trunk/demo/mv-demo.c (original)
+++ trunk/demo/mv-demo.c Fri Oct 31 19:04:24 2008
@@ -303,7 +303,7 @@
fleur = gdk_cursor_new (GDK_FLEUR);
canvas = goo_canvas_item_get_canvas (item);
goo_canvas_pointer_grab (canvas, item,
- GDK_POINTER_MOTION_MASK | GDK_BUTTON_RELEASE_MASK,
+ GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_RELEASE_MASK,
fleur,
event->time);
gdk_cursor_unref (fleur);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]