diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2025-03-31 20:27:58 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2025-03-31 20:27:58 (GMT) |
| commit | 822a7a11ce042bc2035894295333a5255b84a29c (patch) | |
| tree | 845216c6b1e9c4b5559920a50af2215672f97504 /generic/tkText.c | |
| parent | e2c6aa1de60b6c195a39f4dd06ceee1a287f36ea (diff) | |
| download | tk-core-getrid_setgrid.zip tk-core-getrid_setgrid.tar.gz tk-core-getrid_setgrid.tar.bz2 | |
Make Tk_SetSizeHints() usable without tkPlatDecls.h. Clean up much morecore-getrid_setgrid
Diffstat (limited to 'generic/tkText.c')
| -rw-r--r-- | generic/tkText.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/generic/tkText.c b/generic/tkText.c index 32827a1..648796f 100644 --- a/generic/tkText.c +++ b/generic/tkText.c @@ -2498,12 +2498,6 @@ TextWorldChanged( Tk_SetInternalBorderEx(textPtr->tkwin, border + padX, border + padX, border + padY, border + padY); - if (textPtr->setGrid) { - Tk_SetGrid(textPtr->tkwin, textPtr->width, height, - textPtr->charWidth, textPtr->charHeight); - } else { - Tk_UnsetGrid(textPtr->tkwin); - } TkTextRelayoutWindow(textPtr, mask); } @@ -2564,10 +2558,6 @@ TextEventProc( textPtr->selBorder = NULL; textPtr->selBorderWidthObj = NULL; textPtr->selFgColorPtr = NULL; - if (textPtr->setGrid) { - Tk_UnsetGrid(textPtr->tkwin); - textPtr->setGrid = 0; - } if (!(textPtr->flags & OPTIONS_FREED)) { Tk_FreeConfigOptions(textPtr, textPtr->optionTable, textPtr->tkwin); @@ -2652,10 +2642,6 @@ TextCmdDeletedProc( */ if (!(textPtr->flags & DESTROYED)) { - if (textPtr->setGrid) { - Tk_UnsetGrid(textPtr->tkwin); - textPtr->setGrid = 0; - } textPtr->flags |= DESTROYED; Tk_DestroyWindow(tkwin); } |
