Skip to content

Commit

Permalink
Make Tk_CanvasTextInfo and tkScrollbar.h usable for Tk 8.x-compiles t…
Browse files Browse the repository at this point in the history
…oo. See [22d2341c9d]
  • Loading branch information
jan.nijtmans committed Nov 14, 2024
2 parents f01cc2b + 37b89a8 commit 12311eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generic/tk.h
Original file line number Diff line number Diff line change
Expand Up @@ -1154,9 +1154,11 @@ typedef struct Tk_CanvasTextInfo {
int cursorOn; /* Non-zero means that an insertion cursor
* should be displayed in focusItemPtr.
* Read-only to items.*/
#if TK_MAJOR_VERSION > 8
void *reserved1; /* reserved for future use */
void *reserved2;
void *reserved3;
#endif
} Tk_CanvasTextInfo;

/*
Expand Down
3 changes: 3 additions & 0 deletions generic/tkScrollbar.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ typedef struct TkScrollbar {
* is provided by the application by invoking the "set" widget command.
*/

#if TK_MAJOR_VERSION < 9
int dummy1, dummy2, dummy3, dummy4; /* deprecated, for "old" form. */
#endif
double firstFraction; /* Position of first visible thing in window,
* specified as a fraction between 0 and 1.0. */
double lastFraction; /* Position of last visible thing in window,
Expand Down

0 comments on commit 12311eb

Please sign in to comment.