diff options
author | fvogel <fvogelnew1@free.fr> | 2015-11-12 22:50:12 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2015-11-12 22:50:12 (GMT) |
commit | de27a7c6e4d71115b1757e59735cbece10a62ae5 (patch) | |
tree | a1254ad1ba76777e8cf71287cff81a3f705f9f2e /generic/tkText.c | |
parent | b9c5c010586da8c59bec01cd2e2d21835ef7916b (diff) | |
download | tk-de27a7c6e4d71115b1757e59735cbece10a62ae5.zip tk-de27a7c6e4d71115b1757e59735cbece10a62ae5.tar.gz tk-de27a7c6e4d71115b1757e59735cbece10a62ae5.tar.bz2 |
Moved comment to follow the moved code in previous commit
Diffstat (limited to 'generic/tkText.c')
-rw-r--r-- | generic/tkText.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/generic/tkText.c b/generic/tkText.c index ac56c85..6e982b0 100644 --- a/generic/tkText.c +++ b/generic/tkText.c @@ -566,12 +566,6 @@ CreateWidget( textPtr->end = NULL; } - /* - * Register with the B-tree. In some sense it would be best if we could do - * this later (after configuration options), so that any changes to - * start,end do not require a total recalculation. - */ - textPtr->state = TK_TEXT_STATE_NORMAL; textPtr->relief = TK_RELIEF_FLAT; textPtr->cursor = None; @@ -581,6 +575,12 @@ CreateWidget( textPtr->prevWidth = Tk_Width(newWin); textPtr->prevHeight = Tk_Height(newWin); + /* + * Register with the B-tree. In some sense it would be best if we could do + * this later (after configuration options), so that any changes to + * start,end do not require a total recalculation. + */ + TkBTreeAddClient(sharedPtr->tree, textPtr, textPtr->charHeight); /* |