equal
deleted
inserted
replaced
59 #include "bgwidget.h" |
59 #include "bgwidget.h" |
60 #include "xfire.h" |
60 #include "xfire.h" |
61 #include "drawmapwidget.h" |
61 #include "drawmapwidget.h" |
62 |
62 |
63 #ifdef __APPLE__ |
63 #ifdef __APPLE__ |
64 #include "CocoaInitializer.h" |
|
65 #include "M3Panel.h" |
64 #include "M3Panel.h" |
66 #ifdef SPARKLE_ENABLED |
65 #ifdef SPARKLE_ENABLED |
67 #define SPARKLE_APPCAST_URL "http://www.hedgewars.org/download/appcast.xml" |
66 #define SPARKLE_APPCAST_URL "http://www.hedgewars.org/download/appcast.xml" |
68 #include "SparkleAutoUpdater.h" |
67 #include "SparkleAutoUpdater.h" |
69 #endif |
68 #endif |
99 #ifdef __APPLE__ |
98 #ifdef __APPLE__ |
100 panel = new M3Panel; |
99 panel = new M3Panel; |
101 |
100 |
102 #ifdef SPARKLE_ENABLED |
101 #ifdef SPARKLE_ENABLED |
103 AutoUpdater* updater; |
102 AutoUpdater* updater; |
104 CocoaInitializer initializer; |
103 |
105 updater = new SparkleAutoUpdater(SPARKLE_APPCAST_URL); |
104 updater = new SparkleAutoUpdater(SPARKLE_APPCAST_URL); |
106 if (updater && config->isAutoUpdateEnabled()) |
105 if (updater && config->isAutoUpdateEnabled()) |
107 updater->checkForUpdates(); |
106 updater->checkForUpdates(); |
108 #endif |
107 #endif |
109 |
108 |