Import Tk 8.6.11
This commit is contained in:
@@ -92,7 +92,7 @@ TkpDrawEntryBorderAndFocus(
|
||||
GC bgGC;
|
||||
Tk_Window tkwin = entryPtr->tkwin;
|
||||
int oldWidth = 0;
|
||||
MacDrawable *macDraw = (MacDrawable *) d;
|
||||
MacDrawable *macDraw = (MacDrawable *)d;
|
||||
const HIThemeFrameDrawInfo info = {
|
||||
.version = 0,
|
||||
.kind = kHIThemeFrameTextFieldSquare,
|
||||
@@ -155,7 +155,7 @@ TkpDrawEntryBorderAndFocus(
|
||||
bounds.origin.y = macDraw->yOff + MAC_OSX_FOCUS_WIDTH;
|
||||
bounds.size.width = Tk_Width(tkwin) - 2*MAC_OSX_FOCUS_WIDTH;
|
||||
bounds.size.height = Tk_Height(tkwin) - 2*MAC_OSX_FOCUS_WIDTH;
|
||||
if (!TkMacOSXSetupDrawingContext(d, NULL, 1, &dc)) {
|
||||
if (!TkMacOSXSetupDrawingContext(d, NULL, &dc)) {
|
||||
|
||||
/*
|
||||
* No graphics context is available. If the widget is a Spinbox, we
|
||||
@@ -208,7 +208,7 @@ TkpDrawSpinboxButtons(
|
||||
TkMacOSXDrawingContext dc;
|
||||
XRectangle rects[1];
|
||||
GC bgGC;
|
||||
MacDrawable *macDraw = (MacDrawable *) d;
|
||||
MacDrawable *macDraw = (MacDrawable *)d;
|
||||
HIThemeButtonDrawInfo info = {
|
||||
.version = 0,
|
||||
.adornment = kThemeAdornmentNone,
|
||||
@@ -265,7 +265,7 @@ TkpDrawSpinboxButtons(
|
||||
rects[0].height = Tk_Height(tkwin);
|
||||
XFillRectangles(Tk_Display(tkwin), d, bgGC, rects, 1);
|
||||
|
||||
if (!TkMacOSXSetupDrawingContext(d, NULL, 1, &dc)) {
|
||||
if (!TkMacOSXSetupDrawingContext(d, NULL, &dc)) {
|
||||
return 0;
|
||||
}
|
||||
ChkErr(HIThemeDrawButton, &bounds, &info, dc.context, HIOrientation, NULL);
|
||||
|
||||
Reference in New Issue
Block a user