]> code.delx.au - gnu-emacs/commitdiff
Fixups, following up to the user-interface timestamp change.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 14 May 2011 09:03:53 +0000 (02:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 14 May 2011 09:03:53 +0000 (02:03 -0700)
* nsterm.m (last_mouse_movement_time, ns_mouse_position): Use Time
for UI timestamps, instead of unsigned long.
* w32gui.h (Time): Define by including "systime.h" rather than by
declaring it ourselves.  (Bug#8664)

src/ChangeLog
src/nsterm.m
src/w32gui.h

index 9bdbb9a7d18389f1e0f7dbe1cbd750a6acadd84b..dca9a174c34446a5b2494243e4c8f86c0c440fd4 100644 (file)
@@ -1,3 +1,11 @@
+2011-05-14  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Fixups, following up to the user-interface timestamp change.
+       * nsterm.m (last_mouse_movement_time, ns_mouse_position): Use Time
+       for UI timestamps, instead of unsigned long.
+       * w32gui.h (Time): Define by including "systime.h" rather than by
+       declaring it ourselves.  (Bug#8664)
+
 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
 
        * editfns.c (Fformat): Fix several integer overflow problems.
index c4756dc83cdc6ca3ebc1e69ce375c63d09837316..ac9c44a57a95b49996b3f62315b34ce07e533b04 100644 (file)
@@ -158,7 +158,7 @@ long context_menu_value = 0;
 /* display update */
 NSPoint last_mouse_motion_position;
 static NSRect last_mouse_glyph;
-static unsigned long last_mouse_movement_time = 0;
+static Time last_mouse_movement_time = 0;
 static Lisp_Object last_mouse_motion_frame;
 static EmacsScroller *last_mouse_scroll_bar = nil;
 static struct frame *ns_updating_frame;
@@ -1789,7 +1789,7 @@ note_mouse_movement (struct frame *frame, float x, float y)
 static void
 ns_mouse_position (struct frame **fp, int insist, Lisp_Object *bar_window,
                    enum scroll_bar_part *part, Lisp_Object *x, Lisp_Object *y,
-                   unsigned long *time)
+                   Time *time)
 /* --------------------------------------------------------------------------
     External (hook): inform emacs about mouse position and hit parts.
     If a scrollbar is being dragged, set bar_window, part, x, y, time.
@@ -6531,5 +6531,3 @@ baseline level.  The default value is nil.  */);
   /* Tell emacs about this window system. */
   Fprovide (intern ("ns"), Qnil);
 }
-
-
index 936709af1815a1f502b805da5dc024451fb34ffe..2ba9cb53e22a48aa1352e1b6259374cfe0aaee36 100644 (file)
@@ -20,6 +20,8 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #define EMACS_W32GUI_H
 #include <windows.h>
 
+#include "systime.h" /* for Time */
+
 /* Local memory management for menus.  */
 #define local_heap (GetProcessHeap ())
 #define local_alloc(n) (HeapAlloc (local_heap, HEAP_ZERO_MEMORY, (n)))
@@ -47,7 +49,6 @@ typedef char * XrmDatabase;
 
 typedef XGCValues * GC;
 typedef COLORREF Color;
-typedef DWORD Time;
 typedef HWND Window;
 typedef HDC Display;  /* HDC so it doesn't conflict with xpm lib.  */
 typedef HCURSOR Cursor;
@@ -147,4 +148,3 @@ typedef struct {
 
 
 #endif /* EMACS_W32GUI_H */
-