summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorjan.nijtmans <jan.nijtmans@noemail.net>2015-12-07 15:38:17 (GMT)
committerjan.nijtmans <jan.nijtmans@noemail.net>2015-12-07 15:38:17 (GMT)
commit63339cf898055906de1aae26c6644ca83c66c3db (patch)
tree4626cfab93b5296bd9faee0c765367ddfa898799 /macosx
parent0f9622490cd6353d53c7eaae438695fd15a285da (diff)
parentc68c1fba10d846b20e0b863b6d39113fa292041e (diff)
downloadtk-63339cf898055906de1aae26c6644ca83c66c3db.zip
tk-63339cf898055906de1aae26c6644ca83c66c3db.tar.gz
tk-63339cf898055906de1aae26c6644ca83c66c3db.tar.bz2
merge-mark. Remove unnecessary end-of-line spacing
FossilOrigin-Name: c4aef612ca8a8570b6f23f15c5331d2532800df4
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXDialog.c6
-rw-r--r--macosx/tkMacOSXDraw.c4
-rw-r--r--macosx/tkMacOSXHLEvents.c38
-rw-r--r--macosx/tkMacOSXPrivate.h12
4 files changed, 30 insertions, 30 deletions
diff --git a/macosx/tkMacOSXDialog.c b/macosx/tkMacOSXDialog.c
index 0889ee5..fb6e490 100644
--- a/macosx/tkMacOSXDialog.c
+++ b/macosx/tkMacOSXDialog.c
@@ -519,7 +519,7 @@ Tk_GetOpenFileObjCmd(
types:fileTypes
modalForWindow:parent
modalDelegate:NSApp
- didEndSelector:
+ didEndSelector:
@selector(tkFilePanelDidEnd:returnCode:contextInfo:)
contextInfo:callbackInfo];
#else
@@ -717,7 +717,7 @@ Tk_GetSaveFileObjCmd(
file:filename
modalForWindow:parent
modalDelegate:NSApp
- didEndSelector:
+ didEndSelector:
@selector(tkFilePanelDidEnd:returnCode:contextInfo:)
contextInfo:callbackInfo];
#else
@@ -1154,7 +1154,7 @@ Tk_MessageBoxObjCmd(
didEndSelector:@selector(tkAlertDidEnd:returnCode:contextInfo:)
contextInfo:callbackInfo];
#endif
- modalReturnCode = cmdObj ? 0 :
+ modalReturnCode = cmdObj ? 0 :
[NSApp runModalForWindow:[alert window]];
} else {
modalReturnCode = [alert runModal];
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c
index bcc7afe..10f7b9e 100644
--- a/macosx/tkMacOSXDraw.c
+++ b/macosx/tkMacOSXDraw.c
@@ -1835,7 +1835,7 @@ TkMacOSXGetClipRgn(
MacDrawable *macDraw = (MacDrawable *) drawable;
HIShapeRef clipRgn = NULL;
NSAutoreleasePool *pool = [NSAutoreleasePool new];
-
+
if (macDraw->winPtr && macDraw->flags & TK_CLIP_INVALID) {
TkMacOSXUpdateClipRgn(macDraw->winPtr);
#ifdef TK_MAC_DEBUG_DRAWING
@@ -1914,7 +1914,7 @@ TkpClipDrawableToRect(
MacDrawable *macDraw = (MacDrawable *) d;
NSView *view = TkMacOSXDrawableView(macDraw);
NSAutoreleasePool *pool = [NSAutoreleasePool new];
-
+
if (macDraw->drawRgn) {
CFRelease(macDraw->drawRgn);
macDraw->drawRgn = NULL;
diff --git a/macosx/tkMacOSXHLEvents.c b/macosx/tkMacOSXHLEvents.c
index 47033b0..f5aeff0 100644
--- a/macosx/tkMacOSXHLEvents.c
+++ b/macosx/tkMacOSXHLEvents.c
@@ -33,7 +33,7 @@ typedef struct KillEvent {
* Static functions used only in this file.
*/
-static void tkMacOSXProcessFiles(NSAppleEventDescriptor* event,
+static void tkMacOSXProcessFiles(NSAppleEventDescriptor* event,
NSAppleEventDescriptor* replyEvent,
Tcl_Interp *interp,
char* procedure);
@@ -53,7 +53,7 @@ static int ReallyKillMe(Tcl_Event *eventPtr, int flags);
[self handleShowPreferencesEvent:Nil withReplyEvent:Nil];
}
-- (void) handleQuitApplicationEvent: (NSAppleEventDescriptor *)event
+- (void) handleQuitApplicationEvent: (NSAppleEventDescriptor *)event
withReplyEvent: (NSAppleEventDescriptor *)replyEvent
{
KillEvent *eventPtr;
@@ -75,7 +75,7 @@ static int ReallyKillMe(Tcl_Event *eventPtr, int flags);
}
}
-- (void) handleOpenApplicationEvent: (NSAppleEventDescriptor *)event
+- (void) handleOpenApplicationEvent: (NSAppleEventDescriptor *)event
withReplyEvent: (NSAppleEventDescriptor *)replyEvent
{
Tcl_Interp *interp = _eventInterp;
@@ -90,7 +90,7 @@ static int ReallyKillMe(Tcl_Event *eventPtr, int flags);
}
}
-- (void) handleReopenApplicationEvent: (NSAppleEventDescriptor *)event
+- (void) handleReopenApplicationEvent: (NSAppleEventDescriptor *)event
withReplyEvent: (NSAppleEventDescriptor *)replyEvent
{
#if MAC_OS_X_VERSION_MIN_REQUIRED < 1090
@@ -109,7 +109,7 @@ static int ReallyKillMe(Tcl_Event *eventPtr, int flags);
}
}
-- (void) handleShowPreferencesEvent: (NSAppleEventDescriptor *)event
+- (void) handleShowPreferencesEvent: (NSAppleEventDescriptor *)event
withReplyEvent: (NSAppleEventDescriptor *)replyEvent
{
if (_eventInterp &&
@@ -122,19 +122,19 @@ static int ReallyKillMe(Tcl_Event *eventPtr, int flags);
}
}
-- (void) handleOpenDocumentsEvent: (NSAppleEventDescriptor *)event
+- (void) handleOpenDocumentsEvent: (NSAppleEventDescriptor *)event
withReplyEvent: (NSAppleEventDescriptor *)replyEvent
{
tkMacOSXProcessFiles(event, replyEvent, _eventInterp, "::tk::mac::OpenDocument");
}
-- (void) handlePrintDocumentsEvent: (NSAppleEventDescriptor *)event
+- (void) handlePrintDocumentsEvent: (NSAppleEventDescriptor *)event
withReplyEvent: (NSAppleEventDescriptor *)replyEvent
{
tkMacOSXProcessFiles(event, replyEvent, _eventInterp, "::tk::mac::PrintDocument");
}
-- (void) handleDoScriptEvent: (NSAppleEventDescriptor *)event
+- (void) handleDoScriptEvent: (NSAppleEventDescriptor *)event
withReplyEvent: (NSAppleEventDescriptor *)replyEvent
{
OSStatus err;
@@ -164,7 +164,7 @@ static int ReallyKillMe(Tcl_Event *eventPtr, int flags);
errString, strlen(errString));
return;
}
-
+
if (MissedAnyParameters((AppleEvent*)theDesc)) {
sprintf(errString, "AEDoScriptHandler: extra parameters");
AEPutParamPtr((AppleEvent*)[replyEvent aeDesc], keyErrorString, typeChar,
@@ -202,7 +202,7 @@ static int ReallyKillMe(Tcl_Event *eventPtr, int flags);
* The descriptor can be coerced to UTF8 text. Evaluate as Tcl, or
* or pass the text as a string argument to ::tk::mac::DoScriptText
* if that procedure exists.
- */
+ */
char *data = ckalloc(actual + 1);
if (noErr == AEGetParamPtr(theDesc, keyDirectObject, typeUTF8Text, &type,
data, actual, NULL)) {
@@ -274,7 +274,7 @@ static int ReallyKillMe(Tcl_Event *eventPtr, int flags);
static void
tkMacOSXProcessFiles(
- NSAppleEventDescriptor* event,
+ NSAppleEventDescriptor* event,
NSAppleEventDescriptor* replyEvent,
Tcl_Interp *interp,
char* procedure)
@@ -298,12 +298,12 @@ tkMacOSXProcessFiles(
if (!interp || !Tcl_FindCommand(interp, procedure, NULL, 0)) {
return;
}
-
+
fileSpecDesc = [event aeDesc];
if (fileSpecDesc == nil ) {
return;
}
-
+
/*
* The AppleEvent's descriptor should either contain a value of
* typeObjectSpecifier or typeAEList. In the first case, the descriptor
@@ -312,23 +312,23 @@ tkMacOSXProcessFiles(
* itself. Values in the list will be coerced into fileURL's if possible;
* otherwise they will be ignored.
*/
-
+
/* Get a copy of the AppleEvent's descriptor. */
AEGetParamDesc(fileSpecDesc, keyDirectObject, typeWildCard, &contents);
if (contents.descriptorType == typeAEList) {
fileSpecDesc = &contents;
}
-
+
if (AECountItems(fileSpecDesc, &count) != noErr) {
AEDisposeDesc(&contents);
return;
}
-
- /*
+
+ /*
* Construct a Tcl command which calls the procedure, passing the
* paths contained in the AppleEvent as arguments.
*/
-
+
Tcl_DStringInit(&command);
Tcl_DStringAppend(&command, procedure, -1);
@@ -341,7 +341,7 @@ tkMacOSXProcessFiles(
continue;
}
URLString[actual] = '\0';
- fileURL = [NSURL URLWithString:[NSString stringWithUTF8String:(char*)URLString]];
+ fileURL = [NSURL URLWithString:[NSString stringWithUTF8String:(char*)URLString]];
if (fileURL == nil) {
continue;
}
diff --git a/macosx/tkMacOSXPrivate.h b/macosx/tkMacOSXPrivate.h
index d0a52ee..90d5a9b 100644
--- a/macosx/tkMacOSXPrivate.h
+++ b/macosx/tkMacOSXPrivate.h
@@ -299,19 +299,19 @@ VISIBILITY_HIDDEN
@interface TKApplication(TKHLEvents)
- (void) terminate: (id) sender;
- (void) preferences: (id) sender;
-- (void) handleQuitApplicationEvent: (NSAppleEventDescriptor *)event
+- (void) handleQuitApplicationEvent: (NSAppleEventDescriptor *)event
withReplyEvent: (NSAppleEventDescriptor *)replyEvent;
-- (void) handleOpenApplicationEvent: (NSAppleEventDescriptor *)event
+- (void) handleOpenApplicationEvent: (NSAppleEventDescriptor *)event
withReplyEvent: (NSAppleEventDescriptor *)replyEvent;
-- (void) handleReopenApplicationEvent: (NSAppleEventDescriptor *)event
+- (void) handleReopenApplicationEvent: (NSAppleEventDescriptor *)event
withReplyEvent: (NSAppleEventDescriptor *)replyEvent;
- (void) handleShowPreferencesEvent: (NSAppleEventDescriptor *)event
withReplyEvent: (NSAppleEventDescriptor *)replyEvent;
-- (void) handleOpenDocumentsEvent: (NSAppleEventDescriptor *)event
+- (void) handleOpenDocumentsEvent: (NSAppleEventDescriptor *)event
withReplyEvent: (NSAppleEventDescriptor *)replyEvent;
-- (void) handlePrintDocumentsEvent: (NSAppleEventDescriptor *)event
+- (void) handlePrintDocumentsEvent: (NSAppleEventDescriptor *)event
withReplyEvent: (NSAppleEventDescriptor *)replyEvent;
-- (void) handleDoScriptEvent: (NSAppleEventDescriptor *)event
+- (void) handleDoScriptEvent: (NSAppleEventDescriptor *)event
withReplyEvent: (NSAppleEventDescriptor *)replyEvent;
@end