From bf90364eb7e18c50416631c1dc5f6401871886df Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Tue, 11 Oct 2011 11:33:00 +0000 Subject: Add dummy user_data field to XVirtualEvent, for improved upwards compatibility with Tk 8.5 --- ChangeLog | 6 ++++++ generic/tk.h | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index fb75794..8cf7f10 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-10-11 Jan Nijtmans + + * generic/tk.h: Add dummy user_data field to + XVirtualEvent, for improved upwards compatibility + with Tk 8.5. + 2011-09-26 Jan Nijtmans * win/rules.vc: Supporrt Visual Studio 11 diff --git a/generic/tk.h b/generic/tk.h index f03992f..e777947 100644 --- a/generic/tk.h +++ b/generic/tk.h @@ -653,6 +653,10 @@ typedef struct Tk_GeomMgr { * 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 { @@ -669,6 +673,7 @@ typedef struct { 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 { -- cgit v0.12