summaryrefslogtreecommitdiffstats
path: root/generic/ttk
Commit message (Collapse)AuthorAgeFilesLines
* merge stable branch onto HEADdgp2007-12-1326-26/+26
|
* * generic/ttk/ttkTheme.c(StyleElementOptionsCmd):jenglish2007-12-121-9/+9
| | | | Use Ttk_GetElement() to find element instead of direct hash table access.
* Improved macrology for statically-initialized layout template tables.jenglish2007-12-027-75/+90
|
* Internal Ttk_Manager API updates (missed from 2007-11-25 commit)jenglish2007-12-022-19/+24
|
* 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.
* Fixed crash bug in style element createpatthoyts2007-11-191-2/+2
|
* * 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.
* * 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".
* BUGFIX: Ttk_GetPaddingFromObj() and Ttk_GetBorderFromObj() returned garbagejenglish2007-11-181-1/+2
| | | | when passed an empty list.
* 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.
* + 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.
* * 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.
* ttk::notebook: reworked [$nb insert] logic (fixes multiple bugs; see #1817596)jenglish2007-10-251-32/+34
|
* Move widget layout registration from TtkElements_Init()jenglish2007-10-2512-271/+230
| | | | | to widget *_Init() routines. Renaming/consistency: s/...ElementGeometry()/...ElementSize()/
* * 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.
* 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.
* * generic/tkArgv.c: Fix gcc warnings about 'cast to/fromdas2007-10-152-4/+26
| | | | | | | | | | | | | | | | | | | * generic/tkCanvUtil.c: pointer from/to integer of different * generic/tkCanvas.c: size' on 64-bit platforms by casting * generic/tkCursor.c: to intermediate types * generic/tkInt.h: intptr_t/uintptr_t via new PTR2INT(), * generic/tkListbox.c: INT2PTR(), PTR2UINT() and UINT2PTR() * generic/tkObj.c: macros. * generic/tkStyle.c: * generic/tkTextIndex.c: * generic/tkUtil.c: * generic/ttk/ttkTheme.h: * generic/ttk/ttkTreeview.c: * unix/tkUnixMenu.c: * unix/configure.in: * unix/configure: autoconf-2.59 * unix/tkConfig.h.in: autoheader-2.59
* * generic/ttk/ttkInit.c (Ttk_Init): register ttk in package databasedas2007-09-032-5/+3
| | | | | | to enable extension access to the ttkStubs table. * generic/ttk/ttkDecls.h: correct capitalization of ttk package name.
* Added -width and -height options.jenglish2007-06-101-15/+69
| | | | | | | Added 'panes' method, return list of managed windows. 'sashpos' method is now documented as part of the public interface, and details clarified. Should be easier to set initial sash positions now [Alleviates #1659067].
* Ttk_Manager API overhaul:jenglish2007-06-095-339/+386
| | | | | | | | | | | + Ttk_Manager no longer responsible for managing slave records + Ttk_Manager structure now opaque + Ttk_Slave structure now private + Pass Ttk_Manager * to Tk_GeomMgr hooks instead of Ttk_Slave * ttk::labelframe: Simplified -labelwidget management. ttk::noteboook 'insert' command didn't correctly maintain current tab. Changed documentation of ttk::panedwindow 'identify' command to match implementation.
* EntrySetValue: Ensure that widget is in a consistent state before settingjenglish2007-05-181-5/+10
| | | | | the linked -textvariable. Previously, it was possible for [$e index insert] to point past the end of the string, leading to heap corruption [Bug 1721532].
* Fix more type pun warnings (those not found by my local version of GCC)dkf2007-05-031-2/+4
|
* * generic/ttk/ttkTreeview.c(TagOptionSpecs): Use TK_OPTION_STRINGjenglish2007-04-281-4/+4
| | | | instead of TK_OPTION_FONT to avoid resource leak in tag management.
* * generic/tkCanvas.c: allow -selectforeground option to be None; adddas2007-04-231-1/+13
| | | | | | | | | | | | | | | | * generic/tkCanvText.c: fallback to fgColor when selFgColor is None * generic/tkEntry.c: (new default on aqua to match native L&F). * generic/tkListbox.c: * generic/tkText.c: * generic/tkCanvas.c: add support for bypassing all of Tk's double * generic/tkEntry.c: buffered drawing into intermediate pixmaps * generic/tkFrame.c: (via TK_NO_DOUBLE_BUFFERING #define), it is * generic/tkListbox.c: unnecessary & wasteful on aqua where all * generic/tkPanedWindow.c: drawing is already double-buffered by the * generic/tkTextDisp.c: window server. (Use of this on other * generic/ttk/ttkWidget.c: platforms would only require implementation * unix/tkUnixScale.c: of TkpClipDrawableToRect()).
* BUGFIX (Ttk_BuildLayoutTemplate): Nested TTK_GROUP nodes did not workjenglish2007-03-211-2/+12
| | | | unless they appeared at the end of the layout (and only by accident then).
* revert premature commitdas2007-03-071-13/+1
|
* * generic/tkMain.c (Tk_MainEx): replicate macosx-specific code fromdas2007-03-073-2/+903
| | | | | | | | | | | | | | | | | | | | | | | | TkpInit() that ensures the console window appears when wish is started from the OS X Finder (i.e. with stdin == /dev/null), jeffh's 2006-11-24 change rendered the corresponding code in TkpInit() ineffective in wish because Tk_MainEx() sets tcl_interactive before calling TkpInit(). * generic/ttk/ttkGenStubs.tcl (new): add ttk-specific genstubs.tcl from * unix/Makefile.in (genstubs): tile and run it from 'genstubs' target, restores ability to generate all of Tk's stub sources. * generic/ttk/ttkTreeview.c: #ifdef out unused declaration. * macosx/tkMacOSXDebug.c (TkMacOSXGetNamedDebugSymbol): add fix for libraries loaded with a DYLD_IMAGE_SUFFIX. * macosx/Wish.xcodeproj/project.pbxproj: ensure gcc version used by * macosx/Wish.xcodeproj/default.pbxuser: Xcode and configure/make are * macosx/Wish-Common.xcconfig: consistent and independent of gcc_select default and CC env var; fixes for Xcode 3.0. * unix/tcl.m4 (Darwin): s/CFLAGS/CPPFLAGS/ in macosx-version-min check. * unix/configure: autoconf-2.59
* Revert previous change to keep in sync with Tile codebase.jenglish2007-01-1111-86/+75
| | | | | | | The minor warnings from GCC fixed in the previous revision were false positives due to improper use of "-Wconversion". Still compiles cleanly with "gcc -Wall -Werror" (gcc 3.3.5).
* Many minute fixes to reduce number of minor warnings from GCC.dkf2007-01-1111-75/+86
|
* Revert addition of contravariant 'const' qualifiers,jenglish2007-01-1113-44/+44
| | | | | to keep in sync with Tile codebase (which must remain compatible with Tk 8.4).
* various "const" additions, in line with TIP #27nijtmans2007-01-0315-52/+52
|
* ImageElement clientData no longer needed.jenglish2006-12-251-22/+11
|
* Remove assert() calls - Don't Panicjenglish2006-12-181-12/+6
|
* Big batch of ttk::treeview improvements:jenglish2006-12-182-154/+412
| | | | | | | | | | | | | | | Added column '-stretch' and '-minwidth' options. Improved column drag and resize behavior. Added horizontal scrolling [#1518650]. Row height and child indent specifiable on Treeview style. Decreased default row height, no default -padding. Use correct heading height [#1163349]. Apply tag settings to tree item as well as to data columns [NOTE: 'tag configure' still buggy]. Fix off-by-one condition when moving nodes forward [#1618142] Prevent overscroll ([#1173434]) Treeview style settings specified separately in each theme. Added disclosure triangle element in aqua theme.
* Add combobox -height option; only show scrollbar if the listboxjenglish2006-12-171-1/+6
| | | | needs to scroll [#1032869].
* Global reduction: use per-file *_Init() routines to reducejenglish2006-12-1416-179/+211
| | | | the number of globally-visible initialization records.
* * generic/ttk/ttkInit.c:hobbs2006-12-133-14/+6
| | | | | * generic/ttk/ttkTreeview.c: make treeview exist by default * generic/ttk/ttkPanedwindow.c: s/TtkPaned_Init/TtkPanedwindow_Init/
* Try to straighten out theme loading and selection logic.jenglish2006-12-132-2/+9
|
* Remove nonfunctional code and incorrect comments.jenglish2006-12-131-9/+1
|
* Rename typedef Ttk_Element => Ttk_ElementImpl.jenglish2006-12-106-23/+23
|
* Merged duplicate functionality between image element factory,jenglish2006-12-097-264/+274
| | | | | | image element, and -image option processing. Image element factory now takes an imageSpec argument instead of a separate image name and -map option.
* Dead code removal.jenglish2006-12-012-8/+2
|
* * generic/ttk/ttkWidget.c, generic/ttk/ttkPaned.c Fix for #1603506jenglish2006-11-274-87/+75
| | | | | | | | * library/ttk/button.tcl, library/ttk/combobox.tcl, library/ttk/utils.tcl: Rename ttk::CopyBindings to ttk::copyBindings * generic/ttk/ttkTreeview.c, doc/ttk_treeview.n: -displaycolumns {} now means "no columns" instead of "all columns". Use -displaycolumns #all for "all columns" [Fixes #1547622].
* * library/ttk/altTheme.tcl, library/ttk/clamTheme.tcl,jenglish2006-11-242-21/+28
| | | | | | | | | | library/ttk/defaults.tcl, library/ttk/winTheme.tcl, library/ttk/xpTheme.tcl: explicitly specify -anchor w on TMenubutton * tests/ttk/entry.test: Fixed font dependency; test entry-3.2 should work on all platforms now. * library/classicTheme.tcl: Don't define or use TkClassicDefaultFont. * generic/ttk/ttkTreeview.c, generic/ttk/ttkPanedwindow.c: Handle missing layouts.
* Add support for alternate/indeterminate checkbutton state.jenglish2006-11-211-5/+1
| | | | | Fix various spacing parameters [#1596020, patch from Tim Baker]. Remove unused uxtheme hooks.
* Fix off-by-one bug in tree indicator size computation [#1596021,jenglish2006-11-141-7/+7
| | | | patch from Tim Baker]. Increased default size from 7 to 9 pixels.
* *correct* fix for #1588251.jenglish2006-11-131-7/+9
|
* Reworked cleanup procedure -- "self-cancelling" idle call is not robust,jenglish2006-11-121-15/+12
| | | | | call Tcl_CancelIdleCall() in TtkFreeScrollHandle instead. [fixes #1588251]
* Miscellaneous minor changes to re-sync Ttk codebase with Tile CVS:jenglish2006-11-074-17/+12
| | | | | | fix comments damaged by overzealous search-and-destroy; removed obsolete [style default] synonym for [ttk::style configure]; removed other dead code.
* We do not want to require tkInt in all the ttk files so added thepatthoyts2006-11-033-4/+14
| | | | | definition of MODULE_SCOPE to ttkTheme.h Ensure everyone gets to see the definition from someplace.