diff options
author | Kevin Walzer <kw@codebykevin.com> | 2014-12-24 04:43:40 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2014-12-24 04:43:40 (GMT) |
commit | 6137cff44fac896616e033bcba2aa90cd3d4adf5 (patch) | |
tree | a2529d63c5b9744d594aeae79995ce53a48e0d29 /macosx/ttkMacOSXTheme.c | |
parent | c72a9f168448e8f6b17aa805d5308b4934cfa4d1 (diff) | |
download | tk-6137cff44fac896616e033bcba2aa90cd3d4adf5.zip tk-6137cff44fac896616e033bcba2aa90cd3d4adf5.tar.gz tk-6137cff44fac896616e033bcba2aa90cd3d4adf5.tar.bz2 |
All on Tk/Cocoa: Improve view performance during resizing; implement custom drawing of scroller to remove flickering and ghosted appearance during window operations; reduce flickering of menubutton during resizing, but do not completely eliminate ghosted rendering when widget is unmapped
Diffstat (limited to 'macosx/ttkMacOSXTheme.c')
-rw-r--r-- | macosx/ttkMacOSXTheme.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/macosx/ttkMacOSXTheme.c b/macosx/ttkMacOSXTheme.c index a4abc7b..c5be354 100644 --- a/macosx/ttkMacOSXTheme.c +++ b/macosx/ttkMacOSXTheme.c @@ -528,6 +528,10 @@ static Ttk_ElementSpec ComboboxElementSpec = { ComboboxElementDraw }; + + + + /*---------------------------------------------------------------------- * +++ Spinbuttons. * @@ -600,6 +604,11 @@ static TrackElementData ScaleData = { kThemeSlider, kThemeMetricHSliderHeight }; +static TrackElementData ScrollData = { + kThemeScrollBarMedium +}; + + typedef struct { Tcl_Obj *fromObj; /* minimum value */ Tcl_Obj *toObj; /* maximum value */ @@ -661,6 +670,7 @@ static void TrackElementDraw( info.trackInfo.slider.thumbDir = kThemeThumbPlain; } + BEGIN_DRAWING(d) ChkErr(HIThemeDrawTrack, &info, NULL, dc.context, HIOrientation); END_DRAWING |