xquartz: Fold away some unnecessary hops to X11Controller through X11Application
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
(cherry picked from commit 4b4500c48f
)
This commit is contained in:
parent
7d22031a6b
commit
bdaff44f98
|
@ -42,7 +42,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)set_controller:controller;
|
- (void)set_controller:controller;
|
||||||
- (void)set_window_menu:(NSArray *)list;
|
|
||||||
|
|
||||||
- (CFPropertyListRef)prefs_get_copy:(NSString *)key CF_RETURNS_RETAINED;
|
- (CFPropertyListRef)prefs_get_copy:(NSString *)key CF_RETURNS_RETAINED;
|
||||||
- (int)prefs_get_integer:(NSString *)key default:(int)def;
|
- (int)prefs_get_integer:(NSString *)key default:(int)def;
|
||||||
|
|
|
@ -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
|
- (void) set_apps_menu:(NSArray *)list
|
||||||
{
|
{
|
||||||
[_controller set_apps_menu:list];
|
[_controller set_apps_menu:list];
|
||||||
|
@ -457,16 +447,6 @@ QuartzModeBundleInit(void);
|
||||||
[self activateX:YES];
|
[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
|
- (void) show_hide_menubar:(NSNumber *)state
|
||||||
{
|
{
|
||||||
/* Also shows/hides the dock */
|
/* Also shows/hides the dock */
|
||||||
|
@ -922,7 +902,7 @@ X11ApplicationSetWindowMenu(int nitems, const char **items,
|
||||||
}
|
}
|
||||||
|
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
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)
|
X11ApplicationSetWindowMenuCheck(int idx)
|
||||||
{
|
{
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
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)
|
X11ApplicationSetCanQuit(int state)
|
||||||
{
|
{
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
[X11App set_can_quit:@(state)];
|
[X11App.controller set_can_quit:!!state];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -955,7 +935,7 @@ void
|
||||||
X11ApplicationServerReady(void)
|
X11ApplicationServerReady(void)
|
||||||
{
|
{
|
||||||
dispatch_async(dispatch_get_main_queue(), ^{
|
dispatch_async(dispatch_get_main_queue(), ^{
|
||||||
[X11App server_ready:nil];
|
[X11App.controller server_ready];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue