Re: catching motion signals on a gtk text widget



hi,

Please accept this humble sacrifice. :)

ta,
ws
Index: examples/scribble-simple/scribble-simple.c
===================================================================
RCS file: /cvs/gnome/gtk+/examples/scribble-simple/scribble-simple.c,v
retrieving revision 1.7
diff -u -r1.7 scribble-simple.c
--- examples/scribble-simple/scribble-simple.c  19 Feb 2002 19:46:22 -0000      1.7
+++ examples/scribble-simple/scribble-simple.c  14 Apr 2002 11:56:24 -0000
@@ -94,6 +94,11 @@
   int x, y;
   GdkModifierType state;
 
+  /* Gtk compresses the signal traffic for pointer motion by using
+   * motion 'hints'.
+   * If you want to track the full motion, then you need to call
+   * gdk_window_get_pointer to get the full data, as in the following code.
+   */
   if (event->is_hint)
     gdk_window_get_pointer (event->window, &x, &y, &state);
   else


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