diff --git a/hw/xquartz/X11Application.h b/hw/xquartz/X11Application.h index 9d1ee4177..47c605c67 100644 --- a/hw/xquartz/X11Application.h +++ b/hw/xquartz/X11Application.h @@ -31,7 +31,7 @@ #define X11APPLICATION_H 1 #if __OBJC__ -#import + #import "X11Controller.h" @interface X11Application : NSApplication { @@ -55,7 +55,7 @@ - (void) prefs_set_string:(NSString *)key value:(NSString *)value; - (void) prefs_synchronize; -- (BOOL) x_active; +- (OSX_BOOL) x_active; @end diff --git a/hw/xquartz/X11Application.m b/hw/xquartz/X11Application.m index 30cb9f616..90a000514 100644 --- a/hw/xquartz/X11Application.m +++ b/hw/xquartz/X11Application.m @@ -43,6 +43,10 @@ # define _APPLEWM_SERVER_ # include "X11/extensions/applewm.h" # include "micmap.h" +<<<<<<< HEAD:hw/xquartz/X11Application.m +======= + +>>>>>>> bc50d41... XQuartz: More sanitization of the namespace:hw/xquartz/X11Application.m #include #include #include @@ -151,7 +155,7 @@ static void message_kit_thread (SEL selector, NSObject *arg) { [self orderFrontStandardAboutPanelWithOptions: dict]; } -- (void) activateX:(BOOL)state { +- (void) activateX:(OSX_BOOL)state { /* Create a TSM document that supports full Unicode input, and have it activated while X is active (unless using the old keymapping files) */ @@ -185,7 +189,7 @@ static void message_kit_thread (SEL selector, NSObject *arg) { - (void) sendEvent:(NSEvent *)e { NSEventType type; - BOOL for_appkit, for_x; + OSX_BOOL for_appkit, for_x; type = [e type]; @@ -644,7 +648,7 @@ static NSMutableArray * cfarray_to_nsarray (CFArrayRef in) { AppleWMCopyToPasteboard); } -- (BOOL) x_active { +- (OSX_BOOL) x_active { return _x_active; } diff --git a/hw/xquartz/X11Controller.h b/hw/xquartz/X11Controller.h index 8d6a38ff0..c5994bd1f 100644 --- a/hw/xquartz/X11Controller.h +++ b/hw/xquartz/X11Controller.h @@ -32,7 +32,7 @@ #if __OBJC__ -#import +#include "sanitizedCocoa.h" #include "xpr/x-list.h" @interface X11Controller : NSObject @@ -67,14 +67,14 @@ int checked_window_item; x_list *pending_apps; - BOOL finished_launching; - BOOL can_quit; + OSX_BOOL finished_launching; + OSX_BOOL can_quit; } - (void) set_window_menu:(NSArray *)list; - (void) set_window_menu_check:(NSNumber *)n; - (void) set_apps_menu:(NSArray *)list; -- (void) set_can_quit:(BOOL)state; +- (void) set_can_quit:(OSX_BOOL)state; - (void) server_ready; - (IBAction) apps_table_show:(id)sender; diff --git a/hw/xquartz/X11Controller.m b/hw/xquartz/X11Controller.m index 1f23569e6..f2dee2c4d 100644 --- a/hw/xquartz/X11Controller.m +++ b/hw/xquartz/X11Controller.m @@ -600,7 +600,7 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row #endif } -- (void) set_can_quit:(BOOL)state +- (void) set_can_quit:(OSX_BOOL)state { can_quit = state; } @@ -667,7 +667,7 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row AHLookupAnchor ((CFStringRef)NSLocalizedString(@"Mac Help", no comment), CFSTR ("mchlp2276")); } -- (BOOL) validateMenuItem:(NSMenuItem *)item +- (OSX_BOOL) validateMenuItem:(NSMenuItem *)item { NSMenu *menu = [item menu]; @@ -739,7 +739,7 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row pending_apps = NULL; } -- (BOOL) application:(NSApplication *)app openFile:(NSString *)filename +- (OSX_BOOL) application:(NSApplication *)app openFile:(NSString *)filename { const char *name = [filename UTF8String]; @@ -752,8 +752,8 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row return YES; } -- (BOOL) applicationShouldHandleReopen:(NSApplication *)app - hasVisibleWindows:(BOOL)hasVis { +- (OSX_BOOL) applicationShouldHandleReopen:(NSApplication *)app + hasVisibleWindows:(OSX_BOOL)hasVis { DarwinSendDDXEvent(kXquartzBringAllToFront, 0); return YES; }