Skip to content

Commit

Permalink
Move placeholder-related entry options to the end of the "Entry" stru…
Browse files Browse the repository at this point in the history
…cture, for maximum compatibility with 8.6
  • Loading branch information
jan.nijtmans committed Sep 9, 2024
1 parent 55f807a commit 2e29a48
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions generic/tkEntry.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,19 +128,6 @@ typedef struct {
* characters in entry. Malloc'ed. This is
* only used by the Entry widget. */

/*
* Fields used in displaying help text if entry value is empty
*/

Tk_TextLayout placeholderLayout;/* Cached placeholder text layout information. */
char *placeholderString; /* String value of placeholder. */
Tcl_Size placeholderChars; /* Number of chars in placeholder. */
XColor *placeholderColorPtr;/* Color value of placeholder foreground. */
GC placeholderGC; /* For drawing placeholder text. */
int placeholderX; /* Origin for layout. */
int placeholderLeftIndex; /* Character index of left-most character
* visible in window. */

/*
* Fields whose values are derived from the current values of the
* configuration settings above.
Expand Down Expand Up @@ -186,6 +173,19 @@ typedef struct {
* commands. Malloc'ed. */
char *invalidCmd; /* Command called when a validation returns 0
* (successfully fails), defaults to {}. */
/*
* Fields used in displaying help text if entry value is empty
*/

Tk_TextLayout placeholderLayout;/* Cached placeholder text layout information. */
char *placeholderString; /* String value of placeholder. */
Tcl_Size placeholderChars; /* Number of chars in placeholder. */
XColor *placeholderColorPtr;/* Color value of placeholder foreground. */
GC placeholderGC; /* For drawing placeholder text. */
int placeholderX; /* Origin for layout. */
int placeholderLeftIndex; /* Character index of left-most character
* visible in window. */

Tcl_Obj *borderWidthObj;
Tcl_Obj *highlightWidthObj;
Tcl_Obj *insertWidthObj;
Expand Down

0 comments on commit 2e29a48

Please sign in to comment.