| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
* generic/tkInt.c: "option" Tcl_ObjType to improve memory troubles
* generic/tkObj.c: detailed in [Bug 2492179]. Also removed
registration of the "option" Tcl_ObjType.
*** POTENTIAL INCOMPATIBILITY *** for callers of
Tcl_GetObjType("option") which must now handle a NULL return.
FossilOrigin-Name: 1b6f84f687e8810cd418910039a414eec932f3c3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
analyzer and redefine Tcl_Panic to
assert after panic in clang PURIFY
builds.
* generic/tkImgPhInstance.c: small fixes to make clang static
* generic/tkTextDisp.c: analyzer happier.
* generic/tkConfig.c: add clang assert for false positives
* generic/tkUndo.c: from static analyzer.
FossilOrigin-Name: 96416799b4809776126b367d1f4f0b409dd37b96
|
|
|
|
|
|
|
| |
- some internal const decorations
- spacing
FossilOrigin-Name: 02ca10b00f1aed5c76ff8149fdbac48018e8bfa0
|
|
|
|
|
|
|
|
|
|
| |
const tables, so those will be
put by the C-compiler in the
TEXT segment in stead of the
DATA segment. This makes those
table sharable in shared libraries.
FossilOrigin-Name: 7702e3f7a3d0133733e965183538a53dffbeba1c
|
|
|
| |
FossilOrigin-Name: a83341a36174d2059bc339dea19260a38eda5a01
|
|
|
| |
FossilOrigin-Name: ddfd8bb6f7ecfa71a218a5dc88075a419e3e1d5c
|
|
|
| |
FossilOrigin-Name: e7868b44c1e7bffc63a053b87a96a4499757f80d
|
|
|
| |
FossilOrigin-Name: 04ffea40ef0b3c0cad59a3e1576275019f29e913
|
|
|
| |
FossilOrigin-Name: 2bbd44fdaaff2f7fcb072d76862b335e7fa9a167
|
|
|
| |
FossilOrigin-Name: bc30be67cbf03ed50deb003e63666db3cc90f250
|
|
|
| |
FossilOrigin-Name: b6c2c77cac3cacef0e58af5c6be63af4359a2949
|
|
|
|
|
|
| |
properly alloc/delete one more option. [Bug 1319720] (melbardis)
FossilOrigin-Name: 032fbec4d450e7793849cf4e4e80aa9174d11697
|
|
|
|
|
|
|
| |
Also start removing _ANSI_ARGS_; the core's required ANSI C for a while now
Also fix [Bug 1252702]; size_t doesn't mix with Tcl_GetStringFromObj
FossilOrigin-Name: 95ed0f915e157968e866e731484ea64d379250ec
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tkBind.c: to 'Tcl_Panic' (the function). The #define
* generic/tkBitmap.c: of panic in tcl.h clearly states it is
* generic/tkCanvArc.c: deprecated in the comments.
* generic/tkCanvBmap.c: [Tcl Patch 865264]
* generic/tkCanvImg.c:
* generic/tkCanvLine.c:
* generic/tkCanvPoly.c:
* generic/tkCanvText.c:
* generic/tkCanvWind.c:
* generic/tkColor.c:
* generic/tkConfig.c:
* generic/tkCursor.c:
* generic/tkError.c:
* generic/tkEvent.c:
* generic/tkFocus.c:
* generic/tkFont.c:
* generic/tkFrame.c:
* generic/tkGC.c:
* generic/tkGrid.c:
* generic/tkImgBmap.c:
* generic/tkImgPhoto.c:
* generic/tkImgUtil.c:
* generic/tkMenu.c:
* generic/tkObj.c:
* generic/tkPack.c:
* generic/tkPlace.c:
* generic/tkRectOval.c:
* generic/tkSelect.c:
* generic/tkText.c:
* generic/tkTextBTree.c:
* generic/tkTextDisp.c:
* generic/tkTextImage.c:
* generic/tkTextIndex.c:
* generic/tkTextMark.c:
* generic/tkTextWind.c:
* generic/tkVisual.c:
* generic/tkWindow.c:
* mac/tkMacAppInit.c:
* mac/tkMacAppearanceStubs.c:
* mac/tkMacButton.c:
* mac/tkMacDraw.c:
* mac/tkMacEmbed.c:
* mac/tkMacFont.c:
* mac/tkMacInit.c:
* mac/tkMacMenus.c:
* mac/tkMacPort.h:
* mac/tkMacSubwindows.c:
* mac/tkMacWm.c:
* mac/tkMacXStubs.c:
* macosx/tkMacOSXEmbed.c:
* macosx/tkMacOSXFont.c:
* macosx/tkMacOSXMenus.c:
* macosx/tkMacOSXNotify.c:
* macosx/tkMacOSXPort.h:
* macosx/tkMacOSXSubwindows.c:
* macosx/tkMacOSXWm.c:
* macosx/tkMacOSXXStubs.c:
* unix/tkUnix3d.c:
* unix/tkUnixColor.c:
* unix/tkUnixEmbed.c:
* unix/tkUnixEvent.c:
* unix/tkUnixFocus.c:
* unix/tkUnixFont.c:
* unix/tkUnixSelect.c:
* unix/tkUnixSend.c:
* unix/tkUnixWm.c:
* win/tkWin3d.c:
* win/tkWinButton.c:
* win/tkWinColor.c:
* win/tkWinDialog.c:
* win/tkWinDraw.c:
* win/tkWinEmbed.c:
* win/tkWinFont.c:
* win/tkWinPixmap.c:
* win/tkWinPointer.c:
* win/tkWinScrlbr.c:
* win/tkWinWm.c:
* win/tkWinX.c:
FossilOrigin-Name: a08e5aacfc9f6c5a344c2d05454773dac90710c2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
updating Tk to use Tcl 8.4's fully CONST-ified
interface, and fully CONSTifying Tk at the
same time.
This patch includes purging Tk of its last
direct access to interp->result. [Bug 589853]
The substantial changes include copying
event sequence strings into Tcl_DStrings
in tkBind.c, and copying [text] indices into
Tcl_DStrings because parsing them involved
overwriting them. If this causes performance
trouble, that can be resolved by further
converting them to Tcl_Obj's.
The #defines USE_NON_CONST and USE_COMPAT_CONST
have the same effect for Tk as they do for Tcl.
(They actually change tcl.h)
FossilOrigin-Name: 5603f01aa35a127f83db9bb68f3b1ff9e5bb64de
|
|
|
|
|
|
| |
Frederic Bonnet to supply docs+tests as soon as possible.
FossilOrigin-Name: 11b699666df157085f2e86bb3f89b9042dc481cf
|
|
|
|
|
|
|
| |
argument of Tcl_GetIndexFromObj(Struct) from (char **) to
(CONST char **). [TIP 27] [Patch 504705]
FossilOrigin-Name: 85e5c7aa1baa3bd2b7bdb971f3cf83f4f5573723
|
|
|
| |
FossilOrigin-Name: 04f99fd0ff4d4a4cd5f360ae3d26fbd1efbd4647
|
|
|
|
|
|
|
|
| |
Tcl_IncrRefCount/Tcl_DecrRefCount calls on valuePtr, to prevent
memory leaks when the value object comes from the option
database. [Bug: 6275].
FossilOrigin-Name: 82cff3a21c654d5dfe8166d744c8475afd2a52a6
|
|
|
|
|
|
|
|
|
|
| |
be NULL.
* generic/tkConfig.c (Tk_RestoreSavedOptions): For custom options,
added test that the restoreProc is not NULL, to allow for custom
options that don't care about supporting Tk_RestoreSavedOptions.
FossilOrigin-Name: 6032025460a72bbd2c54d805646f324f4973acef
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* doc/SetOptions.3:
* generic/tk.h:
* generic/tkConfig.c: Changed interface for Tk_CustomOptionSetProc
and Tk_CustomOptionGetProc; these now take a pointer to the start
of the widget record, and an integer offset to the slot for the
option value, instead of just a pointer to the slot. This allows
more sophisticated options to do interesting things based on other
data in the widget record.
FossilOrigin-Name: ec369c24d18e5de8d10ac7c7932338a0ed1267d0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
used for TK_OPTION_CUSTOM, and typedef's of the functions
Tk_CustomOptionSetProc, Tk_CustomOptionGetProc,
Tk_CustomOptionRestoreProc, and Tk_CustomOptionFreeProc, used for
TK_OPTION_CUSTOM.
* doc/SetOptions.3: Added documentation of TK_OPTION_CUSTOM, and
section "CUSTOM OPTION TYPES" explaining how to create and use
custom options.
* tests/config.test: Added tests for custom option type.
* generic/tkTest.c: Added test support for TK_OPTION_CUSTOM to
TestobjconfigObjCmd. Added CustomOption* functions to implement a
test custom option.
* generic/tkConfig.c: Added new option type TK_OPTION_CUSTOM,
which allows the definition of custom option types by creating
parsing, printing, freeing, and restoring procedures for a custom
option. This is needed by the text and canvas widgets if they are
to be fully objectified.
FossilOrigin-Name: cfd325633d1045b55de2e1b5cfae2dda6e88ea7b
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
TK_OPTION_NULL_OK for TK_OPTION_DOUBLE and TK_OPTION_PIXELS.
* generic/tkConfig.c: Added for TK_OPTION_NULL_OK support for
TK_OPTION_DOUBLE and TK_OPTION_PIXELS.
* doc/place.n: Updated, reformatted manual entry.
* tests/place.test: Added many tests.
* generic/tkPlace.c (Tk_PlaceObjCmd): Updated to use Tk
widget-option management facilities to manage place options (-x,
-y, etc.), which simplifies the placer code. Added support for
[place configure pathName] and [place configure pathName -option],
similar to the behavior of the configure subcommand supported by
widgets.
FossilOrigin-Name: 375354145259dc80ebd6b9e71d049edc3000944e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
TK_OPTION_RELIEF.
* win/tkWinButton.c: Removed bits about TK_RELIEF_LINK.
* tests/button.test: Added tests for -overrelief; removed tests
for -relief link.
* mac/tkMacButton.c: Removed bits about TK_RELIEF_LINK.
* generic/tkOldConfig.c: Removed bits about TK_RELIEF_LINK.
* generic/tkConfig.c: Removed bits about TK_RELIEF_LINK; added
support for TK_OPTION_NULL_OK for TK_OPTION_RELIEF.
* library/button.tcl: Added binding support for -overrelief.
* generic/tk3d.c (Tk_GetRelief): Added branch for TK_RELIEF_NULL.
* generic/tkButton.c: Added -overrelief option; removed
Enter/Leave EventProc masks and handlers.
* generic/tk.h: Added TK_RELIEF_NULL definition, removed
TK_RELIEF_LINK.
* mac/tkMacDefault.h (DEF_BUTTON_OVER_RELIEF):
* win/tkWinDefault.h (DEF_BUTTON_OVER_RELIEF):
* unix/tkUnixDefault.h (DEF_BUTTON_OVER_RELIEF): Added default
value for the -overrelief option.
FossilOrigin-Name: 107c0be19713ca6aedb57383ae53c62d430c9280
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* tests/button.test: Added tests for link relief for buttons.
* generic/tk.h (TK_CONFIG_LINK_OK): Added definition of
TK_RELIEF_LINK, TK_OPTION_LINK_OK and TK_CONFIG_LINK_OK. [RFE: 4348]
* generic/tk3d.c: Added support for link relief. [RFE: 4348]
* mac/tkMacButton.c (TkpDisplayButton):
* unix/tkUnixButton.c (TkpDisplayButton): Added support for link
relief. [RFE: 4348]
* generic/tkOldConfig.c (Tk_ConfigureWidget):
* generic/tkConfig.c (DoObjConfig): Added understanding of link
relief, which is allowed only for widgets that have
TK_OPTION_LINK_OK or TK_CONFIG_LINK_OK set for the "-relief"
option. [RFE: 4348]
* generic/tkButton.c: Added TK_OPTION_LINK_OK to "-relief" option
for buttons. [RFE: 4348]
* win/tkWinWm.c (EX_TRANSIENT_STYLE): Removed WS_EX_TOOLWINDOW
style bit, so that transient windows have full-size titlebars
(like the tk_getOpenFile dialog).
* win/tkWinMenu.c (GetMenuSeparatorGeometry): Tweaked height
requested for separator bars to be (linespace - (2*descent))
instead of just (linespace); this makes the separator occupy a
more correct amount of vertical space. [Bug: 5303].
FossilOrigin-Name: 4194a8ac77bf8dfeaa5e9522117ac35c829e9897
|
|
|
|
|
|
| |
interp->result.
FossilOrigin-Name: 16ebd2716c25dc2d2a5ec36fd55a75c881802cb1
|
|
|
|
|
|
|
|
|
| |
* generic/tkConfig.c: added support for TK_OPTION_DONT_SET_DEFAULT
as equiv for TK_CONFIG_DONT_SET_DEFAULT
* generic/tkListbox.c: added TK_OPTION_DONT_SET_DEFAULT to the
item specs
FossilOrigin-Name: 017386d45f83dce3583efada3dfbc9519df1322e
|
|
|
| |
FossilOrigin-Name: 0447cf267ea555fcba90be565b63fc310b3d0afb
|
|
|
| |
FossilOrigin-Name: 1eb99ab13b42e37ca5c220def4ad02e7f05e5718
|
|
|
| |
FossilOrigin-Name: 1120dc4257448ed1955333e682de48e2940cc741
|
|
|
| |
FossilOrigin-Name: fb58b663f313796e8ed3115f92d657f0cae1d575
|
|
FossilOrigin-Name: 2bf55ca9aa942b581137b9f474da5ad9c1480de4
|