Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add dummy user_data field to XVirtualEvent, for improved upwards compatibility with Tk 8.5 |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | core-8-4-branch |
Files: | files | file ages | folders |
SHA1: |
74fb989be1c8cd36f40ec3031db0ea3a |
User & Date: | jan.nijtmans 2011-10-11 11:33:00 |
Context
2011-11-17
| ||
20:57 | [Bug 3437816]: Missing TCL_ERROR return in [canvas lower] check-in: 1995a580 user: jan.nijtmans tags: core-8-4-branch | |
2011-10-11
| ||
11:34 | merge-mark check-in: 2ed2df82 user: jan.nijtmans tags: core-8-5-branch | |
11:33 | Add dummy user_data field to XVirtualEvent, for improved upwards compatibility with Tk 8.5 check-in: 74fb989b user: jan.nijtmans tags: core-8-4-branch | |
2011-09-26
| ||
11:56 | Support Visual Studio 11 check-in: 19ec9437 user: jan.nijtmans tags: core-8-4-branch | |
Changes
Changes to ChangeLog.
1 2 3 4 5 6 7 | 2011-09-26 Jan Nijtmans <[email protected]> * win/rules.vc: Supporrt Visual Studio 11 2011-09-06 Jan Nijtmans <[email protected]> * unix/tcl.m4: Add --disable-rpath option to configure | > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 | 2011-10-11 Jan Nijtmans <[email protected]> * generic/tk.h: Add dummy user_data field to XVirtualEvent, for improved upwards compatibility with Tk 8.5. 2011-09-26 Jan Nijtmans <[email protected]> * win/rules.vc: Supporrt Visual Studio 11 2011-09-06 Jan Nijtmans <[email protected]> * unix/tcl.m4: Add --disable-rpath option to configure |
︙ | ︙ |
Changes to generic/tk.h.
︙ | ︙ | |||
649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 | /* * A virtual event shares most of its fields with the XKeyEvent and * XButtonEvent structures. 99% of the time a virtual event will be * an abstraction of a key or button event, so this structure provides * the most information to the user. The only difference is the changing * of the detail field for a virtual event so that it holds the name of the * virtual event being triggered. */ typedef struct { int type; unsigned long serial; /* # of last request processed by server */ Bool send_event; /* True if this came from a SendEvent request */ Display *display; /* Display the event was read from */ Window event; /* Window on which event was requested. */ Window root; /* root window that the event occured on */ Window subwindow; /* child window */ Time time; /* milliseconds */ int x, y; /* pointer x, y coordinates in event window */ int x_root, y_root; /* coordinates relative to root */ unsigned int state; /* key or button mask */ Tk_Uid name; /* Name of virtual event. */ Bool same_screen; /* same screen flag */ } XVirtualEvent; typedef struct { int type; unsigned long serial; /* # of last request processed by server */ Bool send_event; /* True if this came from a SendEvent request */ Display *display; /* Display the event was read from */ | > > > > > | 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 | /* * A virtual event shares most of its fields with the XKeyEvent and * XButtonEvent structures. 99% of the time a virtual event will be * an abstraction of a key or button event, so this structure provides * the most information to the user. The only difference is the changing * of the detail field for a virtual event so that it holds the name of the * virtual event being triggered. * * When using this structure, if you want your code to work correctly * in Tk 8.5 as well, you should ensure that you zero out all the * fields first using memset() or bzero(). */ typedef struct { int type; unsigned long serial; /* # of last request processed by server */ Bool send_event; /* True if this came from a SendEvent request */ Display *display; /* Display the event was read from */ Window event; /* Window on which event was requested. */ Window root; /* root window that the event occured on */ Window subwindow; /* child window */ Time time; /* milliseconds */ int x, y; /* pointer x, y coordinates in event window */ int x_root, y_root; /* coordinates relative to root */ unsigned int state; /* key or button mask */ Tk_Uid name; /* Name of virtual event. */ Bool same_screen; /* same screen flag */ Tcl_Obj *user_data; /* not used in Tk 8.4 */ } XVirtualEvent; typedef struct { int type; unsigned long serial; /* # of last request processed by server */ Bool send_event; /* True if this came from a SendEvent request */ Display *display; /* Display the event was read from */ |
︙ | ︙ |