summaryrefslogtreecommitdiff
path: root/hw/xquartz/X11Application.m
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xquartz/X11Application.m')
-rw-r--r--hw/xquartz/X11Application.m28
1 files changed, 4 insertions, 24 deletions
diff --git a/hw/xquartz/X11Application.m b/hw/xquartz/X11Application.m
index b1757b846..0574f908a 100644
--- a/hw/xquartz/X11Application.m
+++ b/hw/xquartz/X11Application.m
@@ -434,16 +434,6 @@ QuartzModeBundleInit(void);
}
}
-- (void) set_window_menu:(NSArray *)list
-{
- [_controller set_window_menu:list];
-}
-
-- (void) set_window_menu_check:(NSNumber *)n
-{
- [_controller set_window_menu_check:n];
-}
-
- (void) set_apps_menu:(NSArray *)list
{
[_controller set_apps_menu:list];
@@ -457,16 +447,6 @@ QuartzModeBundleInit(void);
[self activateX:YES];
}
-- (void) set_can_quit:(NSNumber *)state
-{
- [_controller set_can_quit:[state boolValue]];
-}
-
-- (void) server_ready:unused
-{
- [_controller server_ready];
-}
-
- (void) show_hide_menubar:(NSNumber *)state
{
/* Also shows/hides the dock */
@@ -922,7 +902,7 @@ X11ApplicationSetWindowMenu(int nitems, const char **items,
}
dispatch_async(dispatch_get_main_queue(), ^{
- [X11App set_window_menu:allMenuItems];
+ [X11App.controller set_window_menu:allMenuItems];
});
}
}
@@ -931,7 +911,7 @@ void
X11ApplicationSetWindowMenuCheck(int idx)
{
dispatch_async(dispatch_get_main_queue(), ^{
- [X11App set_window_menu_check:@(idx)];
+ [X11App.controller set_window_menu_check:@(idx)];
});
}
@@ -947,7 +927,7 @@ void
X11ApplicationSetCanQuit(int state)
{
dispatch_async(dispatch_get_main_queue(), ^{
- [X11App set_can_quit:@(state)];
+ [X11App.controller set_can_quit:!!state];
});
}
@@ -955,7 +935,7 @@ void
X11ApplicationServerReady(void)
{
dispatch_async(dispatch_get_main_queue(), ^{
- [X11App server_ready:nil];
+ [X11App.controller server_ready];
});
}