Make it compile.

svn path=/trunk/gtk-sharp/; revision=8851
This commit is contained in:
Duncan Mak 2002-11-06 05:44:49 +00:00
parent 480cb88bf7
commit ef43b59a1f
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2002-11-06 Duncan Mak <duncan@ximian.com>
* sample/Scribble.cs: Make it compile.
2002-11-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* autogen.sh:

View File

@ -112,9 +112,11 @@ namespace GtkSamples {
Gdk.EventMotion ev = args.Event;
Gdk.Window window = ev.window;
if (ev.is_hint != 0)
window.GetPointer (out x, out y, out state);
else {
if (ev.is_hint != 0) {
int s;
window.GetPointer (out x, out y, out s);
state = (Gdk.ModifierType) s;
} else {
x = (int) ev.x;
y = (int) ev.y;
state = (Gdk.ModifierType) ev.state;