summaryrefslogtreecommitdiffstats
path: root/generic/tkText.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-01-12 11:45:02 (GMT)
committerhobbs <hobbs>2000-01-12 11:45:02 (GMT)
commit417d8566462493d0782bf312cdbbd4e301e30546 (patch)
tree5d3d64633cf82653fb8cf69a698e374ca1bf6146 /generic/tkText.c
parent32fad90058330cb7c74edd226bc96a8e95fe73be (diff)
downloadtk-417d8566462493d0782bf312cdbbd4e301e30546.zip
tk-417d8566462493d0782bf312cdbbd4e301e30546.tar.gz
tk-417d8566462493d0782bf312cdbbd4e301e30546.tar.bz2
* generic/tkCanvas.c: fixed mem leak with TagSearchExprInit
[Bug: 3977] * generic/tkStubInit.c: * generic/tkDecls.h: remove non-existent Tk_(Get|Create)CanvasVisitor prototypes * generic/tkText.c: * generic/tkEntry.c: fixed cursor to not blink when widget was disabled [Bug: 1807] * generic/tkRectOval.c: added note about change to bloat for RectOval bounds calculation for WIN32 only
Diffstat (limited to 'generic/tkText.c')
-rw-r--r--generic/tkText.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/generic/tkText.c b/generic/tkText.c
index ace48be..393a0a9 100644
--- a/generic/tkText.c
+++ b/generic/tkText.c
@@ -14,7 +14,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkText.c,v 1.10 2000/01/06 02:18:58 hobbs Exp $
+ * RCS: @(#) $Id: tkText.c,v 1.11 2000/01/12 11:45:03 hobbs Exp $
*/
#include "default.h"
@@ -1617,7 +1617,8 @@ TextBlinkProc(clientData)
TkTextIndex index;
int x, y, w, h;
- if (!(textPtr->flags & GOT_FOCUS) || (textPtr->insertOffTime == 0)) {
+ if ((textPtr->state == TK_STATE_DISABLED) ||
+ !(textPtr->flags & GOT_FOCUS) || (textPtr->insertOffTime == 0)) {
return;
}
if (textPtr->flags & INSERT_ON) {