Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch tip-704 Excluding Merge-Ins
This is equivalent to a diff from 055d75f6 to 257f70b5
2024-11-25
| ||
11:41 | Fix [bcbf4c9875]: Tk intialization overwrites thread specific data check-in: 1793f638 user: jan.nijtmans tags: trunk, main | |
2024-11-17
| ||
01:33 | Merge trunk check-in: fdce0508 user: kevin_walzer tags: tka11y | |
2024-11-15
| ||
17:24 | Extend Tk_CanvasTextInfo (TIP still to be written) Leaf check-in: 257f70b5 user: jan.nijtmans tags: tip-704 | |
16:48 | Merge 9.0 check-in: 2de204a8 user: jan.nijtmans tags: revised_text, tip-466 | |
16:39 | Merge 9.0 check-in: bf7f5d6d user: jan.nijtmans tags: tip-626 | |
2024-11-14
| ||
22:36 | Make Tk_CanvasTextInfo and tkScrollbar.h usable for Tk 8.x-compiles too. See [22d2341c9d] check-in: 055d75f6 user: jan.nijtmans tags: trunk, main | |
22:28 | make tkDList.h equal to Tk 9.0 check-in: cfa6913c user: jan.nijtmans tags: core-8-branch | |
2024-11-13
| ||
14:33 | Fix [22d2341c9d]: Building extensions for Tk 8 and Tcl 8 in a Tcl 9 environment. Add a configure "--with-tk8" option check-in: e7540187 user: jan.nijtmans tags: trunk, main | |
Changes to doc/CanvTxtInfo.3.
︙ | |||
43 44 45 46 47 48 49 50 51 52 53 54 | 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | + + + - + + + + | Tcl_Size \fIselectAnchor\fR; Tk_3DBorder \fIinsertBorder\fR; int \fIinsertWidth\fR; int \fIinsertBorderWidth\fR; Tk_Item *\fIfocusItemPtr\fR; int \fIgotFocus\fR; int \fIcursorOn\fR; Tcl_Obj *\fIinsertBorderWidthObj\fR; Tcl_Obj *\fIinsertWidthObj\fR; Tcl_Obj *\fIselBorderWidthObj\fR; } \fBTk_CanvasTextInfo\fR; .CE The \fBselBorder\fR field identifies a Tk_3DBorder that should be used for drawing the background under selected text. \fIselBorderWidth\fR gives the width of the raised border around |
︙ |
Changes to generic/tk.h.
︙ | |||
1151 1152 1153 1154 1155 1156 1157 | 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 | - - - + + + | * NULL if no such item. Read-only to items. */ int gotFocus; /* Non-zero means that the canvas widget has * the input focus. Read-only to items.*/ int cursorOn; /* Non-zero means that an insertion cursor * should be displayed in focusItemPtr. * Read-only to items.*/ #if TK_MAJOR_VERSION > 8 |
︙ |
Changes to generic/tkCanvText.c.
︙ | |||
791 792 793 794 795 796 797 | 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 | - - + + | /* * Last of all, update the bounding box for the item. The item's bounding * box includes the bounding box of all its lines, plus an extra fudge * factor for the cursor border (which could potentially be quite large). */ textInfoPtr = textPtr->textInfoPtr; |
︙ | |||
942 943 944 945 946 947 948 | 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 | - + | * selection background all the way to the end of the line. * However, for the last line we only want to display up to the * last character, not the end of the line. */ x = xFirst; height = hFirst; |
︙ | |||
989 990 991 992 993 994 995 | 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 | - + - + | if ((textInfoPtr->focusItemPtr == itemPtr) && (textInfoPtr->gotFocus)) { if (Tk_CharBbox(textPtr->textLayout, textPtr->insertPos, &x, &y, NULL, &height)) { int dx1, dy1, dx2, dy2; double s = textPtr->sine, c = textPtr->cosine; XPoint points[4]; |
︙ |
Changes to generic/tkCanvas.c.
︙ | |||
117 118 119 120 121 122 123 | 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | - + - + - + - + - + | DEF_CANVAS_HIGHLIGHT, offsetof(TkCanvas, highlightColorPtr), 0, NULL}, {TK_CONFIG_PIXELS, "-highlightthickness", "highlightThickness", "HighlightThickness", DEF_CANVAS_HIGHLIGHT_WIDTH, offsetof(TkCanvas, highlightWidthObj), TK_CONFIG_OBJS, NULL}, {TK_CONFIG_BORDER, "-insertbackground", "insertBackground", "Foreground", DEF_CANVAS_INSERT_BG, offsetof(TkCanvas, textInfo.insertBorder), 0, NULL}, {TK_CONFIG_PIXELS, "-insertborderwidth", "insertBorderWidth", "BorderWidth", |
︙ | |||
687 688 689 690 691 692 693 | 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 | - + - + - + | canvasPtr->inset = 0; canvasPtr->pixmapGC = NULL; canvasPtr->widthObj = NULL; canvasPtr->heightObj = NULL; canvasPtr->confine = 0; canvasPtr->textInfo.selBorder = NULL; canvasPtr->textInfo.selBorderWidth = 0; |
︙ | |||
2283 2284 2285 2286 2287 2288 2289 | 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 | - - - + + + | */ Tk_SetBackgroundFromBorder(canvasPtr->tkwin, canvasPtr->bgBorder); Tk_GetPixelsFromObj(NULL, canvasPtr->tkwin, canvasPtr->borderWidthObj, &borderWidth); Tk_GetPixelsFromObj(NULL, canvasPtr->tkwin, canvasPtr->heightObj, &height); Tk_GetPixelsFromObj(NULL, canvasPtr->tkwin, canvasPtr->highlightWidthObj, &highlightWidth); |
︙ | |||
2328 2329 2330 2331 2332 2333 2334 | 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 | - - - + + + - - - + + + - - - + + + | Tcl_DecrRefCount(canvasPtr->yScrollIncrementObj); canvasPtr->yScrollIncrementObj = Tcl_NewIntObj(0); Tcl_IncrRefCount(canvasPtr->yScrollIncrementObj); } canvasPtr->inset = borderWidth + highlightWidth; if (canvasPtr->textInfo.insertBorderWidth < 0) { canvasPtr->textInfo.insertBorderWidth = 0; |
︙ | |||
2488 2489 2490 2491 2492 2493 2494 | 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 | - - - + + + | static void CanvasWorldChanged( void *instanceData) /* Information about widget. */ { TkCanvas *canvasPtr = (TkCanvas *)instanceData; Tk_Item *itemPtr; |
︙ |