diff options
author | fvogel <fvogelnew1@free.fr> | 2016-02-09 21:32:10 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2016-02-09 21:32:10 (GMT) |
commit | 5d588d31457d24ca04b54f6f1c92647e6a3d2b50 (patch) | |
tree | 35557583448d2eabe59ebaab71a2f678ee789828 /generic/tkTextDisp.c | |
parent | 91073e4b5a77eb86aadddb05d9666a89f9b81907 (diff) | |
download | tk-5d588d31457d24ca04b54f6f1c92647e6a3d2b50.zip tk-5d588d31457d24ca04b54f6f1c92647e6a3d2b50.tar.gz tk-5d588d31457d24ca04b54f6f1c92647e6a3d2b50.tar.bz2 |
-selectbgstipple tag configuration option: implementation
Diffstat (limited to 'generic/tkTextDisp.c')
-rw-r--r-- | generic/tkTextDisp.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c index e8f8d79..0ccd3c2 100644 --- a/generic/tkTextDisp.c +++ b/generic/tkTextDisp.c @@ -798,10 +798,12 @@ GetStyle( for (i = 0 ; i < numTags; i++) { Tk_3DBorder border; + Pixmap bgStipple; XColor *fgColor; tagPtr = tagPtrs[i]; border = tagPtr->border; + bgStipple = tagPtr->bgStipple; fgColor = tagPtr->fgColor; /* @@ -826,6 +828,10 @@ GetStyle( border = tagPtr->selBorder; } + if ((tagPtr->selBgStipple != None) && (isSelected)) { + bgStipple = tagPtr->selBgStipple; + } + if ((tagPtr->selFgColor != None) && (isSelected)) { fgColor = tagPtr->selFgColor; } @@ -848,9 +854,9 @@ GetStyle( styleValues.relief = tagPtr->relief; reliefPrio = tagPtr->priority; } - if ((tagPtr->bgStipple != None) + if ((bgStipple != None) && (tagPtr->priority > bgStipplePrio)) { - styleValues.bgStipple = tagPtr->bgStipple; + styleValues.bgStipple = bgStipple; bgStipplePrio = tagPtr->priority; } if ((fgColor != None) && (tagPtr->priority > fgPrio)) { |