xquartz: Fix build with sparkle enabled
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
parent
279bcbd9cf
commit
a3ddcdd56c
|
@ -312,29 +312,27 @@ extern char *bundle_id_prefix;
|
||||||
#ifdef XQUARTZ_SPARKLE
|
#ifdef XQUARTZ_SPARKLE
|
||||||
- (void) setup_sparkle
|
- (void) setup_sparkle
|
||||||
{
|
{
|
||||||
if (check_for_updates_item)
|
if (self.check_for_updates_item)
|
||||||
return; // already did it...
|
return; // already did it...
|
||||||
|
|
||||||
NSMenu *menu = [self.x11_about_item menu];
|
NSMenu *menu = [self.x11_about_item menu];
|
||||||
|
|
||||||
check_for_updates_item =
|
NSMenuItem * const check_for_updates_item =
|
||||||
[menu insertItemWithTitle:NSLocalizedString(
|
[menu insertItemWithTitle:NSLocalizedString(@"Check for X11 Updates...", @"Check for X11 Updates...")
|
||||||
@"Check for X11 Updates...",
|
action:@selector(checkForUpdates:)
|
||||||
@"Check for X11 Updates...")
|
keyEquivalent:@""
|
||||||
action:@selector (
|
atIndex:1];
|
||||||
checkForUpdates:)
|
|
||||||
keyEquivalent:@""
|
|
||||||
atIndex:1];
|
|
||||||
[check_for_updates_item setTarget:[SUUpdater sharedUpdater]];
|
[check_for_updates_item setTarget:[SUUpdater sharedUpdater]];
|
||||||
[check_for_updates_item setEnabled:YES];
|
[check_for_updates_item setEnabled:YES];
|
||||||
|
|
||||||
|
self.check_for_updates_item = check_for_updates_item;
|
||||||
|
|
||||||
// Set X11Controller as the delegate for the updater.
|
// Set X11Controller as the delegate for the updater.
|
||||||
[[SUUpdater sharedUpdater] setDelegate:self];
|
[[SUUpdater sharedUpdater] setDelegate:self];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sent immediately before installing the specified update.
|
// Sent immediately before installing the specified update.
|
||||||
- (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)
|
- (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)update
|
||||||
update
|
|
||||||
{
|
{
|
||||||
//self.can_quit = YES;
|
//self.can_quit = YES;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user