summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarc_culler <marc.culler@gmail.com>2020-12-16 21:05:42 (GMT)
committermarc_culler <marc.culler@gmail.com>2020-12-16 21:05:42 (GMT)
commitcd23bb7744ae30da1a75220c07ff6d9527270019 (patch)
tree23ac6ca6cd311f07357f857a60b34a37a93bb701
parent11b82246f4a51641ec77f71bdd78312cfac9651b (diff)
parent59d5e464aca4d537b556e7d2e2a6f51267652347 (diff)
downloadtk-cd23bb7744ae30da1a75220c07ff6d9527270019.zip
tk-cd23bb7744ae30da1a75220c07ff6d9527270019.tar.gz
tk-cd23bb7744ae30da1a75220c07ff6d9527270019.tar.bz2
Merge 8.6
-rw-r--r--generic/ttk/ttkScale.c1
-rw-r--r--macosx/tkMacOSXColor.c3
-rw-r--r--macosx/tkMacOSXCursor.c4
-rw-r--r--macosx/tkMacOSXImage.c10
-rw-r--r--macosx/tkMacOSXKeyEvent.c2
-rw-r--r--macosx/tkMacOSXNotify.c2
-rw-r--r--macosx/ttkMacOSXTheme.c3
-rw-r--r--tests/butGeom2.tcl2
-rw-r--r--unix/tkUnixRFont.c1
9 files changed, 13 insertions, 15 deletions
diff --git a/generic/ttk/ttkScale.c b/generic/ttk/ttkScale.c
index 761e890..7e8fdc9 100644
--- a/generic/ttk/ttkScale.c
+++ b/generic/ttk/ttkScale.c
@@ -5,7 +5,6 @@
*/
#include "tkInt.h"
-#include "tkInt.h"
#include "ttkTheme.h"
#include "ttkWidget.h"
diff --git a/macosx/tkMacOSXColor.c b/macosx/tkMacOSXColor.c
index 3c155f6..2bc78ca 100644
--- a/macosx/tkMacOSXColor.c
+++ b/macosx/tkMacOSXColor.c
@@ -520,6 +520,7 @@ TkMacOSXSetColorInContext(
OSStatus err = noErr;
CGColorRef cgColor = nil;
SystemColorDatum *entry = GetEntryFromPixel(pixel);
+ CGRect rect;
if (entry) {
switch (entry->type) {
@@ -581,7 +582,7 @@ TkpGetColor(
Colormap colormap = tkwin ? Tk_Colormap(tkwin) : noColormap;
NSView *view = nil;
static Bool initialized = NO;
- static NSColorSpace* sRGB = NULL;
+ static NSColorSpace* sRGB = nil;
if (!initialized) {
initialized = YES;
diff --git a/macosx/tkMacOSXCursor.c b/macosx/tkMacOSXCursor.c
index 4e899f2..a04b6bb 100644
--- a/macosx/tkMacOSXCursor.c
+++ b/macosx/tkMacOSXCursor.c
@@ -262,7 +262,7 @@ FindCursorByName(
break;
case IMAGEBITMAP: {
unsigned char *bitmap = (unsigned char *)(cursorNames[idx].id1);
- NSBitmapImageRep *bitmapImageRep = NULL;
+ NSBitmapImageRep *bitmapImageRep = nil;
CGImageRef img = NULL, mask = NULL, maskedImg = NULL;
static const CGFloat decodeWB[] = {1, 0};
CGColorSpaceRef colorspace = CGColorSpaceCreateWithName(
@@ -457,7 +457,7 @@ TkpFreeCursor(
TkMacOSXCursor *macCursorPtr = (TkMacOSXCursor *) cursorPtr;
[macCursorPtr->macCursor release];
- macCursorPtr->macCursor = NULL;
+ macCursorPtr->macCursor = nil;
if (macCursorPtr == gCurrentCursor) {
gCurrentCursor = NULL;
}
diff --git a/macosx/tkMacOSXImage.c b/macosx/tkMacOSXImage.c
index 60183f4..ddd37d9 100644
--- a/macosx/tkMacOSXImage.c
+++ b/macosx/tkMacOSXImage.c
@@ -418,7 +418,7 @@ XPutImage(
int dest_x, /* Destination X & Y. */
int dest_y,
unsigned int width, /* Same width & height for both */
- unsigned int height) /* distination and source. */
+ unsigned int height) /* destination and source. */
{
TkMacOSXDrawingContext dc;
MacDrawable *macDraw = (MacDrawable *)drawable;
@@ -516,8 +516,8 @@ CreateCGImageFromDrawableRect(
MacDrawable *mac_drawable = (MacDrawable *)drawable;
CGContextRef cg_context = NULL;
CGImageRef cg_image = NULL, result = NULL;
- NSBitmapImageRep *bitmapRep = NULL;
- NSView *view = NULL;
+ NSBitmapImageRep *bitmapRep = nil;
+ NSView *view = nil;
if (mac_drawable->flags & TK_IS_PIXMAP) {
/*
* This MacDrawable is a bitmap, so its view is NULL.
@@ -531,7 +531,7 @@ CreateCGImageFromDrawableRect(
result = CGImageCreateWithImageInRect(cg_image, image_rect);
CGImageRelease(cg_image);
}
- } else if (TkMacOSXGetNSViewForDrawable(mac_drawable) != NULL) {
+ } else if (TkMacOSXGetNSViewForDrawable(mac_drawable) != nil) {
/*
* Convert Tk top-left to NSView bottom-left coordinates.
@@ -629,7 +629,7 @@ XGetImage(
TCL_UNUSED(unsigned long), /* plane_mask */
int format)
{
- NSBitmapImageRep* bitmapRep = NULL;
+ NSBitmapImageRep* bitmapRep = nil;
NSUInteger bitmap_fmt = 0;
XImage* imagePtr = NULL;
char* bitmap = NULL;
diff --git a/macosx/tkMacOSXKeyEvent.c b/macosx/tkMacOSXKeyEvent.c
index e41d7e6..54a7b5a 100644
--- a/macosx/tkMacOSXKeyEvent.c
+++ b/macosx/tkMacOSXKeyEvent.c
@@ -268,7 +268,7 @@ static NSUInteger textInputModifiers;
@implementation TKContentView
@synthesize tkDirtyRect = _tkDirtyRect;
-@synthesize tkNeedsDisplay = _tkNeedsDisplay;;
+@synthesize tkNeedsDisplay = _tkNeedsDisplay;
/*
* Implementation of the NSTextInputClient protocol.
diff --git a/macosx/tkMacOSXNotify.c b/macosx/tkMacOSXNotify.c
index 854e241..dd9cbbd 100644
--- a/macosx/tkMacOSXNotify.c
+++ b/macosx/tkMacOSXNotify.c
@@ -334,7 +334,7 @@ TkMacOSXNotifyExitHandler(
* None.
*
* Side effects:
- * Parts of windows my get redrawn.
+ * Parts of windows may get redrawn.
*
*----------------------------------------------------------------------
*/
diff --git a/macosx/ttkMacOSXTheme.c b/macosx/ttkMacOSXTheme.c
index c842837..5f246d7 100644
--- a/macosx/ttkMacOSXTheme.c
+++ b/macosx/ttkMacOSXTheme.c
@@ -31,7 +31,6 @@
#include "tkMacOSXPrivate.h"
#include "ttk/ttkTheme.h"
-#include <math.h>
/*
* Macros for handling drawing contexts.
@@ -2886,7 +2885,7 @@ static Ttk_ElementSpec ToolbarBackgroundElementSpec = {
* +++ Field elements --
*
* Used for the Treeview widget. This is like the BackgroundElement
- * except that the fieldbackground color is configureable.
+ * except that the fieldbackground color is configurable.
*/
typedef struct {
diff --git a/tests/butGeom2.tcl b/tests/butGeom2.tcl
index 096225c..844f912 100644
--- a/tests/butGeom2.tcl
+++ b/tests/butGeom2.tcl
@@ -8,7 +8,7 @@ wm iconname .t "Button Geometry"
wm geom .t +0+0
wm minsize .t 1 1
-label .t.l -text {This screen exercises the color options for various flavors of buttons. Select display options below, and they will be applied to the appropiate button widgets.} -wraplength 5i
+label .t.l -text {This screen exercises the color options for various flavors of buttons. Select display options below, and they will be applied to the appropriate button widgets.} -wraplength 5i
pack .t.l -side top -fill both
button .t.quit -text Quit -command {destroy .t}
diff --git a/unix/tkUnixRFont.c b/unix/tkUnixRFont.c
index 237c741..3f463f6 100644
--- a/unix/tkUnixRFont.c
+++ b/unix/tkUnixRFont.c
@@ -12,7 +12,6 @@
#include "tkUnixInt.h"
#include "tkFont.h"
#include <X11/Xft/Xft.h>
-#include <ctype.h>
#define MAX_CACHED_COLORS 16