summaryrefslogtreecommitdiffstats
path: root/generic/ttk
Commit message (Collapse)AuthorAgeFilesLines
* Remove leftover commented-out code, mistakenly included in last commitjenglish2008-12-111-2/+1
| | | FossilOrigin-Name: 4b6a01df0e9e2a179c9795f0f0a73f5558417e51
* Add native aqua elements for ttk::spinbox [Bug 2219588].jenglish2008-12-071-291/+126
| | | | | | | Moved most spinbox "business logic" out of ttkEntry.c into Tcl bindings. Minor spinbox appearance improvements in clam theme. FossilOrigin-Name: 087952762daa693971237477949d1d0c60efd418
* Fix potential null dereference flagged by clang static analyzerdas2008-12-071-2/+2
| | | FossilOrigin-Name: 6f14ab519e5281a1bed964e019f616fbf1839e27
* Add new "hover" statejenglish2008-12-033-4/+21
| | | | | | (patch from Pat Thoyts; needed to support proper visual feedback on Vista). FossilOrigin-Name: 8a64537bbfada17c4ac361b82ffc09430c80e9cf
* Widget self-destruction is not necessarily an error [Bug 2298720].jenglish2008-11-162-8/+7
| | | FossilOrigin-Name: 91b971187f0ea7ba680aa17877dfb9827602140a
* ttkWidget.c: Reworked widget construction and destruction sequence;jenglish2008-11-132-109/+129
| | | | | | | | | fixes [#2207435] and several other problems discovered during investigation of same. ttkButton.c(CheckbuttonInitialize): Account for initializeProc being called earlier in the construction sequence now. FossilOrigin-Name: 8ed212b76591acb906a6bbf27646e89912303772
* Don't crash when application uses nondefault visual [#2264732].jenglish2008-11-111-3/+2
| | | FossilOrigin-Name: ff066d009f8f5806b8edee60fea81e4c21a0dd0a
* Ttk widget initializeProc()s now return void instead ofjenglish2008-11-0911-49/+30
| | | | | | | a status code, and are no longer allowed to fail. (Fix for #2207435 in progress). FossilOrigin-Name: 203f93bebf31822993263c38ab38bf207c4d6503
* Remove unnecessary casts from ttkWidget.c.jenglish2008-11-091-15/+14
| | | | | | (More remain in other files; will get to those later). FossilOrigin-Name: a42da4391326f0fa641bd65b1c2f360f4f7068c2
* ttkEntry.c: fix warning: unused variable 'currentValue'nijtmans2008-11-031-14/+13
| | | | | | tkOldTest.c: fix warning: assignment discards qualifiers from pointer target type FossilOrigin-Name: 58673d61d7f8ab2bb54a1c86f0154e54b3a16a61
* more internal -Wwrite-strings warning fixesnijtmans2008-11-023-18/+18
| | | FossilOrigin-Name: bef0648aed98539441a1a154af2ac554af8a941c
* Implemented the themed spinbox widget ttk::spinbox.patthoyts2008-11-011-68/+350
| | | FossilOrigin-Name: 1fc44d63b7e4ec4da75db0a00822b66c26c1620e
* Temporary workaround for [Bug 2207435]jenglish2008-10-311-1/+2
| | | FossilOrigin-Name: 14002bf54ebe2b157b8ac3c3ab30819293a967fe
* Disable test ttk-6.3, it's not applicable [Bug 2175411].jenglish2008-10-241-10/+5
| | | | | | | | Use different Tcl_AssocData key for Ttk so the tile extension can be loaded into an 8.6 interp, in the off-chance that anyone wants to do this. FossilOrigin-Name: a501aa15217c3ebbb941256413c04522d7e1141e
* Letting CONST die a slow and graceful death, since NO_CONST wasnijtmans2008-10-223-43/+43
| | | | | | broken since 8.4 and no-one complained about it. FossilOrigin-Name: ff239323ed950a51605485392c5927efe2080abe
* generic/ttk/ttkScroll.c: Don't use sprintf "%g" to format floatingjenglish2008-08-191-11/+11
| | | | | | | point numbers in -[xy]scrollcommand callbacks or [xy]view methods. Minor incompatibility: 0 and 1 now formatted as "0.0" resp "1.0". FossilOrigin-Name: 2d900ad05b898419dfe40b8d70fe67169d8e2105
* fix [2021443] inconsistant "wrong # args" messages (for Tk)nijtmans2008-07-235-32/+32
| | | FossilOrigin-Name: def570d7bdd7211b4c17c706781050222d16890f
* Audit: ensure that output arguments to Tk_Get*FromObj() are initialized,jenglish2008-07-044-17/+15
| | | | | | in case of erroneous style specifications [#2009213]. FossilOrigin-Name: 9939c08234968e99caa92e47b49ad96563ae6b4d
* * generic/ttk/ttkTreeview.c: fix warning.das2008-06-121-3/+4
| | | FossilOrigin-Name: 83d9a97ee3c6c2d72e6199322a1269fc2594a857
* NSCjenglish2008-06-011-3/+3
| | | FossilOrigin-Name: 2f8ba9f30a2830237f5e8bdd37544dc7beb234ae
* [ttk::style theme use] without an argument now returns the current themepatthoyts2008-05-271-3/+40
| | | FossilOrigin-Name: e83b7dd29ddae998f96538584afb518849ac1e2c
* fix warningdas2008-05-231-2/+3
| | | FossilOrigin-Name: 19bdbffe1991dcde05744004cd2ad06718c4b763
* Batch of ttk::treeview enhancements:jenglish2008-05-237-334/+567
| | | | | | | | | | | | | + Added [$tv identify region], [$tv identify element], and [$tv identify item] subcommands. + Simplified bindings. + Added [$tv tag has] subcommand. + Tag-related display improvements: setting a tag -background or -foreground no longer overrides selection feedback. + Don't need separate 'Item', 'Cell', and 'Row' style settings anymore, only the base "Treeview" style is used. FossilOrigin-Name: cc4b1b46f9e6397de8e45764099a80f0f640e20b
* Avoid passing width or height <= 0 to Tk_RedrawImage,jenglish2008-05-231-1/+7
| | | | | | as this leads to a panic on Windows [Bug 1967576] FossilOrigin-Name: 431a0e9f67f8f6816d3ff900be62c3e8d5307dc8
* Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-2712-69/+69
| | | FossilOrigin-Name: ddfd8bb6f7ecfa71a218a5dc88075a419e3e1d5c
* * generic/tkStubLib.c: make symbols in libtkstub.a MODULE_SCOPE todas2008-04-021-4/+2
| | | | | | | | | | | avoid exporting them from libraries that link with -ltkstub; constify tk*StubsPtr and stub table hook pointers. [Bug 1819422] * generic/tkStubLib.c: undef USE_TCL_STUBS before defining it * generic/ttk/ttkStubLib.c: unconditionally; remove needless #ifdef FossilOrigin-Name: 7419adaea545b7086cb08e7a4b048d7381d9931e
* * generic/ttk/ttkStubLib.c: ensure tcl stubs are used in libtkstubdas2008-03-272-4/+14
| | | | | | | | even in a static build of Tk. * generic/ttk/ttkDecls.h: fix incorrect number of arguments in Ttk_InitStubs macro definition. FossilOrigin-Name: 63dd2be6c23cf9239b4844a4ccdf9f6e5cca66b8
* Keep ttkStubLib.o in libtkstub instead of libtk. [Bug 1920030]jenglish2008-03-211-3/+4
| | | FossilOrigin-Name: 4d6b9001def79e9673e1cc00ffb762c6f1bfe1f0
* ensure symbols needed for Ttk stub support are exporteddas2008-03-191-4/+3
| | | FossilOrigin-Name: d94ebd9a2c61f41c5996c262052106c6ea51bbd4
* Don't enforce minimum sash thickness of 5 pixels, just use 5 as a defaultjenglish2008-02-231-9/+4
| | | | | | [FR 1898288] FossilOrigin-Name: 99170de4b5d7096b7a5242f372fbd428079cf7d6
* Make sure to schedule a redisplay when adding and/or hiding tabs [Bug 1878298].jenglish2008-01-281-2/+5
| | | FossilOrigin-Name: f56bd352526bb38d68a1dba36c719830d0494a39
* BUGFIX: fix crash in [ttk::labelframe] when -style option specifiedjenglish2008-01-081-34/+37
| | | | | | [Bug 1867122]. FossilOrigin-Name: 8b24a669c7da52566d14b3014f4eb1ef18e6760e
* (oops. Missed a spot.)jenglish2008-01-061-11/+1
| | | FossilOrigin-Name: c6340f56abdf696aae3a9676e5e5778d948f8c4a
* Call Tk_MakeWindowExist() in widget constructor.jenglish2008-01-062-10/+6
| | | | | | Removed now-unnecessary initial ConfigureNotify processing. FossilOrigin-Name: 97048e98812d3e44af0e30820e519a2439119bc5
* merge stable branch onto HEADdgp2007-12-1326-26/+26
| | | FossilOrigin-Name: e7868b44c1e7bffc63a053b87a96a4499757f80d
* * generic/ttk/ttkTheme.c(StyleElementOptionsCmd):jenglish2007-12-121-9/+9
| | | | | | Use Ttk_GetElement() to find element instead of direct hash table access. FossilOrigin-Name: 09d7f6c0661358bee0bbaafd5154bafc6141e396
* Improved macrology for statically-initialized layout template tables.jenglish2007-12-027-75/+90
| | | FossilOrigin-Name: 1876a988e448354a9dbe45918ece9fd7aeda3246
* Internal Ttk_Manager API updates (missed from 2007-11-25 commit)jenglish2007-12-022-19/+24
| | | FossilOrigin-Name: 9da56fbd6d5018346c42919390516567710ba9cc
* Internal Ttk_Manager API updates; Fixed [Bug 1343984];jenglish2007-11-255-65/+116
| | | | | | | | Added [$nb hide] method; [$nb add] on already-managed windows no longer throws an error, can be used to re-add a hidden tab. Updated docs and test suite. FossilOrigin-Name: f37e8950c8ae5dac012cfdb5bf2a9db2df884ea8
* Fixed crash bug in style element createpatthoyts2007-11-191-2/+2
| | | FossilOrigin-Name: fa3581e10250161243924ffa49bd09d6be2f69d6
* * generic/ttk/ttkElements.c, macosx/ttkMacOSXTheme.c:jenglish2007-11-193-158/+85
| | | | | | | | | | | | | | Add "fill" element: like "background" but only erases parcel. * generic/ttk/ttkFrame.c: Use fill element in Labelframe Label sublayout. Also improved default labelmargins for -labelanchor w*, e*. * generic/ttk/ttkLabel.c: no longer need Labelframe hack. * library/ttk/aquaTheme.tcl: ImageTextElement no longer needed. TextElement no longer needs '-background' option. FossilOrigin-Name: 6b45bb0535c40ab20ce7b9593124dadf95fd21f5
* * generic/ttk/ttkFrame.c: Use sublayout for ttk::labelframe labelsjenglish2007-11-182-38/+61
| | | | | | | | | | instead of single element. * generic/ttk/ttkLabel.c: Default -anchor for text and label elements is now "w" instead of "center". Fixes [Bug 1614540]. * library/ttk/defaults.tcl, library/ttk/*Theme.tcl: Button styles now need explicit "-anchor center". FossilOrigin-Name: c9d33ad05152a83ec440259c0638f37cf352e853
* BUGFIX: Ttk_GetPaddingFromObj() and Ttk_GetBorderFromObj() returned garbagejenglish2007-11-181-1/+2
| | | | | | when passed an empty list. FossilOrigin-Name: cddf8ccb6cc06258df042d70602b162674e7217f
* Ttk_ElementSize: Fixed longstanding, subtle bug that caused element paddingjenglish2007-11-086-37/+54
| | | | | | | | to sometimes be counted twice in size computations. Fix ElementSizeProcs affected by previous change. FossilOrigin-Name: d561a619388a1b186c637eea112ad2bde3425827
* + Use null "treearea" element for treeview owner-draw areajenglish2007-11-042-5/+6
| | | | | | | | | instead of "client", to avoid nameclash with Notebook.client element. This was causing sizing anomalies in XP theme, and introduced extraneous padding. + "alt" theme Treeitem.indicator element needs left margin now. FossilOrigin-Name: 3dd197af4c545ad8d19f586f803881f883eda358
* * generic/ttk/ttkWidget.c: Split up RedisplayWidget()jenglish2007-10-301-63/+56
| | | | | | | | | | | | | | | to factor out double-buffering related code. * macosx/ttkMacOSXAquaTheme.c: Use SetThemeBackGround/ kThemeBrushModelessDialogBackground{Active|Inactive} instead of ApplyThemeBackground/kThemeBackgroundWindowHeader (advice from DAS). * library/ttk/aquaTheme.tcl: Use darker shade for inactive and disabled text, to match typical values of most kThemeXXXTextColorInactive values. FossilOrigin-Name: 389670a8faeee2533174cebfb106f6fdf465d536
* ttk::notebook: reworked [$nb insert] logic (fixes multiple bugs; see #1817596)jenglish2007-10-251-32/+34
| | | FossilOrigin-Name: 12a800daa1ab921297f0bcceb293bbc9313ff3d5
* Move widget layout registration from TtkElements_Init()jenglish2007-10-2512-271/+230
| | | | | | | to widget *_Init() routines. Renaming/consistency: s/...ElementGeometry()/...ElementSize()/ FossilOrigin-Name: 05eaff8c5983b921fdf93a2f1415a3fff3453cbb
* * library/ttk/combobox.tcl: ttk::combobox overhaul;jenglish2007-10-221-5/+4
| | | | | | | | | | fixes [#1814778, #1780286, #1609168, #1349586] * library/ttk/aquaTheme.tcl: Factored out aqua-specific combobox -postposition adjustments. * generic/ttk/ttkTrack.c: Detect [grab]s and unpress pressed element; combobox workaround no longer needed. FossilOrigin-Name: a69eecbfd75ce2846f24ea14b21342a866ae5a7d
* generic/ttk/ttkTreeview.c: Store pointer to column table entryjenglish2007-10-152-73/+39
| | | | | | | | | instead of column index in columnNames hash table. This avoids the need for the evil PTR2INT and INT2PTR macros, and simplifies things a bit. FossilOrigin-Name: ef1e19618baabc504f69cc33f565c6117d8645bd