mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
Merge branch 'master' of github.com:tomahawk-player/tomahawk
This commit is contained in:
commit
b513a34fb8
@ -27,12 +27,15 @@ if (APPLE)
|
||||
# Uses Darwin kernel version.
|
||||
# 9.8.0 -> 10.5/Leopard
|
||||
# 10.4.0 -> 10.6/Snow Leopard
|
||||
# 11.x.x -> Lion
|
||||
string(REGEX MATCH "[0-9]+" DARWIN_VERSION ${CMAKE_HOST_SYSTEM_VERSION})
|
||||
if (DARWIN_VERSION GREATER 9)
|
||||
if (DARWIN_VERSION GREATER 10)
|
||||
SET(LION 1)
|
||||
elseif (DARWIN_VERSION GREATER 9)
|
||||
SET(SNOW_LEOPARD 1)
|
||||
elseif (DARWIN_VERSION GREATER 8)
|
||||
SET(LEOPARD 1)
|
||||
endif (DARWIN_VERSION GREATER 9)
|
||||
endif (DARWIN_VERSION GREATER 10)
|
||||
|
||||
# Use two different sparkle update tracks for debug and release
|
||||
# We have to change the URL in the Info.plist file :-/
|
||||
|
@ -11,6 +11,7 @@
|
||||
#define CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}"
|
||||
#define CMAKE_SYSTEM "${CMAKE_SYSTEM}"
|
||||
|
||||
#cmakedefine LION
|
||||
#cmakedefine SNOW_LEOPARD
|
||||
#cmakedefine LEOPARD
|
||||
#cmakedefine HAVE_SPARKLE
|
||||
|
@ -23,8 +23,6 @@
|
||||
#include "config.h"
|
||||
#include "tomahawkwindow.h"
|
||||
|
||||
#include "AvailabilityMacros.h"
|
||||
|
||||
#import <AppKit/NSApplication.h>
|
||||
#import <Foundation/NSAutoreleasePool.h>
|
||||
#import <Foundation/NSBundle.h>
|
||||
@ -236,7 +234,7 @@ void Tomahawk::checkForUpdates() {
|
||||
|
||||
void Tomahawk::enableFullscreen()
|
||||
{
|
||||
#if defined(MAC_OS_X_VERSION_10_7)
|
||||
#ifdef LION
|
||||
qDebug() << "Enabling Lion Full-screeen";
|
||||
// Can't include tomahawkapp.h in a .mm file, pulls in infosystem.h which uses
|
||||
// the objc keyword 'id'
|
||||
|
Loading…
x
Reference in New Issue
Block a user