diff options
author | fvogel <fvogelnew1@free.fr> | 2016-02-09 21:23:23 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2016-02-09 21:23:23 (GMT) |
commit | b258e6b408ef99ed31fdde484f21548851eca156 (patch) | |
tree | 11d3f289c1d49dc3eb2042f5243f7eb241923eaa /generic/tkText.c | |
parent | 8f151700b10bf8811876305e284738707d4ad237 (diff) | |
download | tk-b258e6b408ef99ed31fdde484f21548851eca156.zip tk-b258e6b408ef99ed31fdde484f21548851eca156.tar.gz tk-b258e6b408ef99ed31fdde484f21548851eca156.tar.bz2 |
-selectbackground tag configuration option: implementation
Diffstat (limited to 'generic/tkText.c')
-rw-r--r-- | generic/tkText.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/tkText.c b/generic/tkText.c index 3079417..1b420d6 100644 --- a/generic/tkText.c +++ b/generic/tkText.c @@ -2253,7 +2253,11 @@ ConfigureText( * replaced in the widget record. */ - textPtr->selTagPtr->border = textPtr->selBorder; + if (textPtr->selTagPtr->selBorder == NULL) { + textPtr->selTagPtr->border = textPtr->selBorder; + } else { + textPtr->selTagPtr->selBorder = textPtr->selBorder; + } if (textPtr->selTagPtr->borderWidthPtr != textPtr->selBorderWidthPtr) { textPtr->selTagPtr->borderWidthPtr = textPtr->selBorderWidthPtr; textPtr->selTagPtr->borderWidth = textPtr->selBorderWidth; @@ -2277,6 +2281,7 @@ ConfigureText( textPtr->selTagPtr->affectsDisplayGeometry = 1; } if ((textPtr->selTagPtr->border != NULL) + || (textPtr->selTagPtr->selBorder != NULL) || (textPtr->selTagPtr->reliefString != NULL) || (textPtr->selTagPtr->bgStipple != None) || (textPtr->selTagPtr->fgColor != NULL) |