diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-25 13:17:19 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-25 13:17:19 (GMT) |
commit | c54914a3666c0687f5bba776db34263eeb8e810f (patch) | |
tree | c4836aba9f7cc450abefaef930a9bd99fbe22306 /Slimber | |
parent | 0f77a684b42f25052eb1cfa688721e321526a90d (diff) | |
download | swift-contrib-c54914a3666c0687f5bba776db34263eeb8e810f.zip swift-contrib-c54914a3666c0687f5bba776db34263eeb8e810f.tar.bz2 |
Added About menu.
Diffstat (limited to 'Slimber')
-rw-r--r-- | Slimber/CLI/main.cpp | 4 | ||||
-rw-r--r-- | Slimber/Cocoa/Info.plist | 2 | ||||
-rw-r--r-- | Slimber/Cocoa/Menulet.m | 6 |
3 files changed, 11 insertions, 1 deletions
diff --git a/Slimber/CLI/main.cpp b/Slimber/CLI/main.cpp index 3a72ca1..8b70625 100644 --- a/Slimber/CLI/main.cpp +++ b/Slimber/CLI/main.cpp @@ -10,7 +10,9 @@ #include "Slimber/Server.h" #include "Slimber/FileVCardCollection.h" #include "Swiften/LinkLocal/LinkLocalRoster.h" -#include "Swiften/LinkLocal/BonjourQuerier.h" +#include "Swiften/LinkLocal/DNSSD/DNSSDBrowseQuery.h" +#include "Swiften/LinkLocal/DNSSD/DNSSDRegisterQuery.h" +#include "Swiften/LinkLocal/DNSSD/Bonjour/BonjourQuerier.h" #include "Swiften/EventLoop/SimpleEventLoop.h" #include "Swiften/Application/Platform/PlatformApplication.h" diff --git a/Slimber/Cocoa/Info.plist b/Slimber/Cocoa/Info.plist index bcbed49..f934a10 100644 --- a/Slimber/Cocoa/Info.plist +++ b/Slimber/Cocoa/Info.plist @@ -24,5 +24,7 @@ <string>NSApplication</string> <key>LSUIElement</key> <string>1</string> + <key>NSHumanReadableCopyright</key> + <string>© 2009 Swift Development Team. All Rights Reserved.</string> </dict> </plist> diff --git a/Slimber/Cocoa/Menulet.m b/Slimber/Cocoa/Menulet.m index b2af97f..4fa7fed 100644 --- a/Slimber/Cocoa/Menulet.m +++ b/Slimber/Cocoa/Menulet.m @@ -75,6 +75,12 @@ [statusMenu addItem: loggedInItem]; [statusMenu addItem: [NSMenuItem separatorItem]]; + // About menu + NSMenuItem* aboutMenuItem = [[NSMenuItem alloc] initWithTitle: @"About Slimber" action: @selector(orderFrontStandardAboutPanel:) keyEquivalent: @""]; + [aboutMenuItem setTarget: [NSApplication sharedApplication]]; + [statusMenu addItem: aboutMenuItem]; + [statusMenu addItem: [NSMenuItem separatorItem]]; + // Exit item NSMenuItem* exitMenuItem = [[NSMenuItem alloc] initWithTitle: @"Exit" action: @selector(terminate:) keyEquivalent: @""]; [exitMenuItem setTarget: [NSApplication sharedApplication]]; |