summaryrefslogtreecommitdiffstats
path: root/generic/tkText.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-11-12 22:50:12 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-11-12 22:50:12 (GMT)
commit86af47daae7cd20e06cea85843660caeb9a63a2f (patch)
treea1254ad1ba76777e8cf71287cff81a3f705f9f2e /generic/tkText.c
parente2cfeef3d094ca6695592ae442e009f7273efc62 (diff)
downloadtk-86af47daae7cd20e06cea85843660caeb9a63a2f.zip
tk-86af47daae7cd20e06cea85843660caeb9a63a2f.tar.gz
tk-86af47daae7cd20e06cea85843660caeb9a63a2f.tar.bz2
Moved comment to follow the moved code in previous commit
Diffstat (limited to 'generic/tkText.c')
-rw-r--r--generic/tkText.c12
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);
/*