summaryrefslogtreecommitdiffstats
path: root/generic/tkText.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-02-09 21:23:23 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-02-09 21:23:23 (GMT)
commitb258e6b408ef99ed31fdde484f21548851eca156 (patch)
tree11d3f289c1d49dc3eb2042f5243f7eb241923eaa /generic/tkText.c
parent8f151700b10bf8811876305e284738707d4ad237 (diff)
downloadtk-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.c7
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)