Skip to content

Commit 400440f

Browse files
author
Dave Kujawski
committed
snapshot changes
1 parent e5dac7e commit 400440f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+5
-3
lines changed

.gitignore

100644100755
File mode changed.

LICENSE

100644100755
File mode changed.

README.md

100644100755
File mode changed.

darwin/systray/systray.xcodeproj/project.pbxproj

100644100755
File mode changed.

darwin/systray/systray.xcodeproj/project.xcworkspace/contents.xcworkspacedata

100644100755
File mode changed.

darwin/systray/systray.xcodeproj/project.xcworkspace/xcuserdata/liucong.xcuserdatad/UserInterfaceState.xcuserstate

100644100755
File mode changed.

darwin/systray/systray.xcodeproj/xcuserdata/liucong.xcuserdatad/xcschemes/systray.xcscheme

100644100755
File mode changed.

darwin/systray/systray.xcodeproj/xcuserdata/liucong.xcuserdatad/xcschemes/xcschememanagement.plist

100644100755
File mode changed.

darwin/systray/systray/AppDelegate.h

100644100755
File mode changed.

darwin/systray/systray/AppDelegate.m

100644100755
File mode changed.

darwin/systray/systray/en.lproj/Credits.rtf

100644100755
File mode changed.

darwin/systray/systray/en.lproj/InfoPlist.strings

100644100755
File mode changed.

darwin/systray/systray/en.lproj/MainMenu.xib

100644100755
File mode changed.

darwin/systray/systray/main.m

100644100755
File mode changed.

darwin/systray/systray/systray-Info.plist

100644100755
File mode changed.

darwin/systray/systray/systray-Prefix.pch

100644100755
File mode changed.

example/icons/mac/idle.ico

100644100755
File mode changed.

example/icons/mac/idle.png

100644100755
File mode changed.

example/icons/mac/problem.ico

100644100755
File mode changed.

example/icons/mac/problem.png

100644100755
File mode changed.

example/icons/mac/working.ico

100644100755
File mode changed.

example/icons/mac/working.png

100644100755
File mode changed.

example/icons/win/idle.ico

100644100755
File mode changed.

example/icons/win/idle.png

100644100755
File mode changed.

example/icons/win/problem.ico

100644100755
File mode changed.

example/icons/win/problem.png

100644100755
File mode changed.

example/icons/win/working.ico

100644100755
File mode changed.

example/icons/win/working.png

100644100755
File mode changed.

example/main.go

100644100755
File mode changed.

example/systray/systray.app/Contents/Info.plist

100644100755
File mode changed.

example/systray/systray.app/Contents/PkgInfo

100644100755
File mode changed.

example/systray/systray.app/Contents/Resources/en.lproj/Credits.rtf

100644100755
File mode changed.

example/systray/systray.app/Contents/Resources/en.lproj/InfoPlist.strings

100644100755
File mode changed.

example/systray/systray.app/Contents/Resources/en.lproj/MainMenu.nib

100644100755
File mode changed.

test/sysapp.go

100644100755
File mode changed.

tray.go

100644100755
File mode changed.

tray_darwin.c

100644100755
+5-3
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,14 @@ const char *m_initialHint;
6161
self.statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength];
6262

6363
// Useful for debugging if icon loading is broken (e.g., icons don't exist)
64-
//[self.statusItem setTitle:@"SystrayTest"];
64+
[self.statusItem setTitle:@"SystrayTest"];
6565

6666
// Set up a general click handler - this will happen in addition to any menu
6767
[self.statusItem setAction:@selector(clicked:)];
6868

6969
// Create our menu and add some items
70-
NSMenu *statusMenu = [[[NSMenu allocWithZone:[NSMenu menuZone]] initWithTitle:@"Custom"] autorelease];
70+
//NSMenu *statusMenu = [[[NSMenu allocWithZone:[NSMenu menuZone]] initWithTitle:@"Custom"] autorelease];
71+
NSMenu *statusMenu = [[[NSMenu alloc] initWithTitle:@"Custom"] autorelease];
7172
[statusMenu setAutoenablesItems:NO];
7273

7374
// TODO: the app is now solely responsible for managing termination, so we don't add the
@@ -96,7 +97,8 @@ const char *m_initialHint;
9697
callbackInfo.callback = callback;
9798
callbackInfo.enabled = enabled;
9899
callbackInfo.checked = checked;
99-
NSMenuItem *newItem = [[[NSMenuItem allocWithZone:[NSMenu menuZone]] initWithTitle:item action:@selector(menuItem:) keyEquivalent:@""] autorelease];
100+
//NSMenuItem *newItem = [[[NSMenuItem allocWithZone:[NSMenu menuZone]] initWithTitle:item action:@selector(menuItem:) keyEquivalent:@""] autorelease];
101+
NSMenuItem *newItem = [[[NSMenuItem alloc] initWithTitle:item action:@selector(menuItem:) keyEquivalent:@""] autorelease];
100102
if (enabled) {
101103
[newItem setEnabled:YES];
102104
} else {

tray_darwin.go

100644100755
File mode changed.

tray_linux.go

100644100755
File mode changed.

tray_windows.go

100644100755
File mode changed.

traysvr.go

100644100755
File mode changed.

0 commit comments

Comments
 (0)