Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Difference From cf3bb95034ff1cdb To 1ad1323e10e0c6a0
2025-03-01
| ||
09:55 | merge trunk check-in: fa3abf01 user: fvogel tags: revised_text, tip-466 | |
2025-02-23
| ||
00:53 | Previous commit was almost right, just the wrong file ... check-in: 1ad1323e user: jan.nijtmans tags: revised_text, tip-466 | |
2025-02-22
| ||
17:38 | Move TkObjIsEmpty() implemention from tkConfig.c to tkText.c, so it can be re-used by rtext. Add support for TIP#698 (again, so it can be used by revised_text as well) check-in: 68fa9a67 user: jan.nijtmans tags: revised_text, tip-466 | |
2025-02-21
| ||
16:45 | Merge 9.0 check-in: 91066fc0 user: jan.nijtmans tags: revised_text, tip-466 | |
2025-02-20
| ||
11:17 | Merge 9.0 check-in: cf3bb950 user: jan.nijtmans tags: revised_text, tip-466 | |
09:58 | No longer build Tk 9.0 against Tcl 8.7 check-in: dc60bb76 user: jan.nijtmans tags: trunk, main | |
2025-02-19
| ||
11:08 | Merge 9.0 check-in: 5a15fb28 user: jan.nijtmans tags: revised_text, tip-466 | |
Changes to .github/workflows/mac-build.yml.
9 10 11 12 13 14 15 | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | - + | - "core-**" permissions: contents: read env: ERROR_ON_FAILURES: 1 jobs: xcode: |
53 54 55 56 57 58 59 | 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | - + | if [ $nmatches -lt 4 ] then echo "::error::Failure during Test" exit 1 fi timeout-minutes: 30 clang: |
Changes to README.md.
1 2 3 4 5 6 7 8 9 10 11 12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | - - - - + + + + | # README: Tk This is the **Tk 9.0.2** source distribution. You can get any source release of Tk from [our distribution site](https://sourceforge.net/projects/tcl/files/Tcl/). 9.0 (production release, daily build) [](https://github.com/tcltk/tk/actions/workflows/linux-build.yml?query=branch%3Amain) [](https://github.com/tcltk/tk/actions/workflows/win-build.yml?query=branch%3Amain) [](https://github.com/tcltk/tk/actions/workflows/mac-build.yml?query=branch%3Amain) <br> |
Changes to generic/tkConfig.c.
137 138 139 140 141 142 143 | 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | - | static Tcl_Obj * GetConfigList(void *recordPtr, Option *optionPtr, Tk_Window tkwin); static Tcl_Obj * GetObjectForOption(void *recordPtr, Option *optionPtr, Tk_Window tkwin); static Option * GetOption(const char *name, OptionTable *tablePtr); static Option * GetOptionFromObj(Tcl_Interp *interp, Tcl_Obj *objPtr, OptionTable *tablePtr); |
626 627 628 629 630 631 632 | 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 | - + | oldInternalPtr = (char *)&internal.internalForm; } nullOK = (optionPtr->specPtr->flags & (TK_OPTION_NULL_OK|TCL_NULL_OK|1)); switch (optionPtr->specPtr->type) { case TK_OPTION_BOOLEAN: { int newBool; |
658 659 660 661 662 663 664 | 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 | - + - + | } break; } case TK_OPTION_INT: { int newInt; if ((optionPtr->specPtr->flags & TYPE_MASK) == 0) { |
720 721 722 723 724 725 726 | 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 | - + | *((int *)internalPtr) = (int)newIndex; } break; } case TK_OPTION_DOUBLE: { double newDbl; |
752 753 754 755 756 757 758 | 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 | - + - + | break; } case TK_OPTION_STRING: { char *newStr; const char *value; Tcl_Size length; |
806 807 808 809 810 811 812 | 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 | - + - + - + - + - + - + | } } break; } case TK_OPTION_COLOR: { XColor *newPtr; |
928 929 930 931 932 933 934 | 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 | - + - + | Tcl_InvalidateStringRep(valuePtr); } break; } case TK_OPTION_CURSOR: { Tk_Cursor newCursor; |
979 980 981 982 983 984 985 | 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 | - + | Tcl_InvalidateStringRep(valuePtr); } break; } case TK_OPTION_ANCHOR: { int newAnchor; |
1011 1012 1013 1014 1015 1016 1017 | 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 | - + - + | Tcl_InvalidateStringRep(valuePtr); } break; } case TK_OPTION_PIXELS: { int newPixels; |
1085 1086 1087 1088 1089 1090 1091 | 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | *slotPtrPtr = valuePtr; if (valuePtr != NULL) { Tcl_IncrRefCount(valuePtr); } } return TCL_OK; } |
Changes to generic/tkInt.h.
1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 | 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 | + | Tcl_Size objc, Tcl_Obj *const *objv, int flags); MODULE_SCOPE void TkDrawDottedRect(Display *disp, Drawable d, GC gc, int x, int y, int width, int height); MODULE_SCOPE Tcl_Command TkMakeEnsemble(Tcl_Interp *interp, const char *nsname, const char *name, void *clientData, const TkEnsemble *map); MODULE_SCOPE double TkScalingLevel(Tk_Window tkwin); MODULE_SCOPE int TkObjIsEmpty(Tcl_Obj *objPtr); MODULE_SCOPE int TkInitTkCmd(Tcl_Interp *interp, void *clientData); MODULE_SCOPE int TkInitFontchooser(Tcl_Interp *interp, void *clientData); MODULE_SCOPE void TkInitEmbeddedConfigurationInformation( Tcl_Interp *interp); MODULE_SCOPE void TkDoWarpWrtWin(TkDisplay *dispPtr); |
Changes to generic/tkPanedWindow.c.
223 224 225 226 227 228 229 | 223 224 225 226 227 228 229 230 231 232 233 234 235 236 | - | char *recordPtr, Tcl_Size internalOffset); static void RestoreSticky(void *clientData, Tk_Window tkwin, char *internalPtr, char *oldInternalPtr); static void AdjustForSticky(int sticky, int cavityWidth, int cavityHeight, int *xPtr, int *yPtr, int *paneWidthPtr, int *paneHeightPtr); static void MoveSash(PanedWindow *pwPtr, int sash, int diff); |
2498 2499 2500 2501 2502 2503 2504 | 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 | - + | int sticky = 0; char c; void *internalPtr; const char *string; internalPtr = ComputeSlotAddress(recordPtr, internalOffset); |
3022 3023 3024 3025 3026 3027 3028 | 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | Tk_MaintainGeometry(pwPtr->proxywin, pwPtr->tkwin, x, y, sashWidth, sashHeight); break; } return TCL_OK; } |
Changes to generic/tkText.c.
16 17 18 19 20 21 22 | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | - - | */ #include "tkInt.h" #include "tkText.h" #include "tkTextUndo.h" #include "tkTextTagSet.h" #include "tkBitField.h" |
8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 | 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | && TkBTreeEpoch(textPtr->sharedTextPtr->tree) == oldStateEpoch; } } /* *---------------------------------------------------------------------- * * TkObjIsEmpty -- * * This function tests whether the string value of an object is empty. * * Results: * The return value is 1 if the string value of objPtr has length zero, * and 0 otherwise. * * Side effects: * None. * *---------------------------------------------------------------------- */ #if defined(USE_TCL_STUBS) # undef Tcl_IsEmpty # define Tcl_IsEmpty \ ((int (*)(Tcl_Obj *))(void *)((&(tclStubsPtr->tcl_PkgProvideEx))[690])) #endif int TkObjIsEmpty( Tcl_Obj *objPtr) /* Object to test. May be NULL. */ { if (objPtr == NULL) { return 1; } if (objPtr->bytes == NULL) { #if defined(USE_TCL_STUBS) if (Tcl_IsEmpty) { return Tcl_IsEmpty(objPtr); } #endif Tcl_GetString(objPtr); } return (objPtr->length == 0); } /* *---------------------------------------------------------------------- * * TkTextInspectOptions -- * * Build information from option table for "inspect". * * Results: * None. * |
8147 8148 8149 8150 8151 8152 8153 | 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 | - + | if (argc >= 5) { /* only if this option has a non-default value */ Tcl_Obj *valObj = argv[4]; Tcl_Obj *myValObj; Tcl_Obj *nameObj; int myFlags = flags; |
11320 11321 11322 11323 11324 11325 11326 | 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 | - - - - - - - | * May store the TkTextSegment* value into the internal representation * pointer. May change the pointer to the Tcl_Obj to NULL to indicate * that the specified string was empty and that is acceptable. * *---------------------------------------------------------------------- */ |
11348 11349 11350 11351 11352 11353 11354 | 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 | - + | Tcl_Obj **objPtr = (Tcl_Obj **) (recordPtr + internalOffset); Tcl_Obj **oldObjPtr = (Tcl_Obj **) oldInternalPtr; const TkText *textPtr = (const TkText *) recordPtr; assert(!*objPtr); *oldObjPtr = NULL; |
11499 11500 11501 11502 11503 11504 11505 | 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 | - + | if (internalOffset != TCL_INDEX_NONE) { internalPtr = (char *)recordPtr + internalOffset; } else { internalPtr = NULL; } |
Changes to generic/tkText.h.
1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 | 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 | + | #define INSPECT_INCLUDE_SYSTEM_COLORS (1 << 5) /* * Declarations for procedures that are used by the text-related files but * shouldn't be used anywhere else in Tk (or by Tk clients): */ MODULE_SCOPE int TkObjIsEmpty(Tcl_Obj *objPtr); inline TkSharedText * TkBTreeGetShared(TkTextBTree tree); inline int TkBTreeGetNumberOfDisplayLines(const TkTextPixelInfo *pixelInfo); MODULE_SCOPE void TkBTreeAdjustPixelHeight(const TkText *textPtr, TkTextLine *linePtr, int newPixelHeight, unsigned mergedLogicalLines, unsigned oldNumDispLines); MODULE_SCOPE void TkBTreeUpdatePixelHeights(const TkText *textPtr, TkTextLine *linePtr, int numLines, unsigned epoch); |
Changes to generic/tkTextTag.c.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | + + + | * the Text widget. These values are used as indices into the string table below. */ static const char *const justifyStrings[] = { "left", "right", "center", "full", NULL }; #ifndef TK_OPTION_NEG_OK # define TK_OPTION_NEG_OK (1 << 6) #endif /* TK_OPTION_NEG_OK */ static const Tk_OptionSpec tagOptionSpecs[] = { {TK_OPTION_BORDER, "-background", NULL, NULL, NULL, TCL_INDEX_NONE, offsetof(TkTextTag, attrs.border), TK_OPTION_NULL_OK, 0, 0}, {TK_OPTION_BITMAP, "-bgstipple", NULL, NULL, NULL, TCL_INDEX_NONE, offsetof(TkTextTag, bgStipple), TK_OPTION_NULL_OK, 0, 0}, {TK_OPTION_PIXELS, "-borderwidth", NULL, NULL, |
82 83 84 85 86 87 88 | 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | - + | {TK_OPTION_PIXELS, "-lmargin1", NULL, NULL, NULL, offsetof(TkTextTag, lMargin1Obj), offsetof(TkTextTag, lMargin1), TK_OPTION_NULL_OK, 0, 0}, {TK_OPTION_PIXELS, "-lmargin2", NULL, NULL, NULL, offsetof(TkTextTag, lMargin2Obj), offsetof(TkTextTag, lMargin2), TK_OPTION_NULL_OK, 0, 0}, {TK_OPTION_BORDER, "-lmargincolor", NULL, NULL, NULL, TCL_INDEX_NONE, offsetof(TkTextTag, lMarginColor), TK_OPTION_NULL_OK, 0, 0}, {TK_OPTION_PIXELS, "-offset", NULL, NULL, |
Changes to generic/tkTextWind.c.
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 | 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | + + + + + - + - + | typedef enum { ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_TOP } alignMode; /* * Information used for parsing window configuration options: */ #ifndef TK_OPTION_NEG_OK # define TK_OPTION_NEG_OK (1 << 6) #endif /* TK_OPTION_NEG_OK */ static const Tk_OptionSpec optionSpecs[] = { {TK_OPTION_STRING_TABLE, "-align", NULL, NULL, "center", TCL_INDEX_NONE, offsetof(TkTextEmbWindow, align), 0, alignStrings, 0}, {TK_OPTION_STRING, "-create", NULL, NULL, NULL, offsetof(TkTextEmbWindow, createObj), TCL_INDEX_NONE, TK_OPTION_NULL_OK, 0, 0}, {TK_OPTION_BOOLEAN, "-owner", NULL, NULL, "1", TCL_INDEX_NONE, offsetof(TkTextEmbWindow, isOwner), 0, 0, 0}, {TK_OPTION_PIXELS, "-padx", NULL, NULL, |
Changes to tests/config.test.
1113 1114 1115 1116 1117 1118 1119 | 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 | - + - + - + | testobjconfig internal .foo -custom "this is a test" .foo cget -custom } -cleanup { killTables } -result {THIS IS A TEST} |
Changes to tests/focus.test.
42 43 44 45 46 47 48 | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | - + - + | # is needed to wait long enough for pending actions to get through # the X server and possibly also the window manager. proc focusClear {} { dobg {after 200; focus -force .; update} after 400 if {[tk windowingsystem] eq "aqua"} { |