diff --git configure.ac configure.ac
index 0d7e48a..7951bd0 100644
|
|
then |
3731 | 3731 | |
3732 | 3732 | VLC_ADD_LIBS([macosx], [-Wl,-framework,QTKit -Wl,-framework,IOKit -Wl,-framework,AddressBook -Wl,-framework,WebKit -Wl,-framework,CoreAudio -Wl,-framework,SystemConfiguration -Wl,-framework,ScriptingBridge]) |
3733 | 3733 | |
3734 | | if test ! -d ${CONTRIB_DIR}/Sparkle.framework |
3735 | | then |
3736 | | AC_MSG_ERROR([Sparkle framework is required and was not found in ${CONTRIB_DIR}]) |
3737 | | fi |
3738 | | VLC_ADD_LIBS([macosx], [-F${CONTRIB_DIR} -Wl,-framework,Sparkle]) |
3739 | | VLC_ADD_OBJCFLAGS([macosx], [-F${CONTRIB_DIR}]) |
3740 | | |
3741 | 3734 | if test ! -d ${CONTRIB_DIR}/BGHUDAppKit.framework |
3742 | 3735 | then |
3743 | 3736 | AC_MSG_ERROR([BGHUDAppKit framework is required and was not found in ${CONTRIB_DIR}]) |
diff --git extras/package/macosx/Resources/English.lproj/MainMenu.xib extras/package/macosx/Resources/English.lproj/MainMenu.xib
index eff0265..8c4852c 100644
|
|
|
2052 | 2052 | <object class="NSCustomObject" id="651263286"> |
2053 | 2053 | <string key="NSClassName">VLCMainMenu</string> |
2054 | 2054 | </object> |
2055 | | <object class="NSCustomObject" id="1040926652"> |
2056 | | <string key="NSClassName">SUUpdater</string> |
2057 | | </object> |
2058 | 2055 | <object class="NSCustomView" id="560875128"> |
2059 | 2056 | <nil key="NSNextResponder"/> |
2060 | 2057 | <int key="NSvFlags">268</int> |
… |
… |
|
2754 | 2751 | <int key="connectionID">5592</int> |
2755 | 2752 | </object> |
2756 | 2753 | <object class="IBConnectionRecord"> |
2757 | | <object class="IBActionConnection" key="connection"> |
2758 | | <string key="label">checkForUpdates:</string> |
2759 | | <reference key="source" ref="1040926652"/> |
2760 | | <reference key="destination" ref="354414928"/> |
2761 | | </object> |
2762 | | <int key="connectionID">4371</int> |
2763 | | </object> |
2764 | | <object class="IBConnectionRecord"> |
2765 | 2754 | <object class="IBOutletConnection" key="connection"> |
2766 | 2755 | <string key="label">o_dmi_mute</string> |
2767 | 2756 | <reference key="source" ref="651263286"/> |
… |
… |
|
5381 | 5370 | <string key="objectName">Application</string> |
5382 | 5371 | </object> |
5383 | 5372 | <object class="IBObjectRecord"> |
5384 | | <int key="objectID">4370</int> |
5385 | | <reference key="object" ref="1040926652"/> |
5386 | | <reference key="parent" ref="0"/> |
5387 | | </object> |
5388 | | <object class="IBObjectRecord"> |
5389 | 5373 | <int key="objectID">4397</int> |
5390 | 5374 | <reference key="object" ref="629699013"/> |
5391 | 5375 | <array class="NSMutableArray" key="children"> |
diff --git extras/package/macosx/Resources/English.lproj/Preferences.xib extras/package/macosx/Resources/English.lproj/Preferences.xib
index 0850948..c7ea66b 100644
|
|
y7bMNcy1zTXNtc42zrbPN8+40DnQutE80b7SP9LB00TTxtRJ1MvVTtXR1lXW2Ndc1+DYZNjo2WzZ8dp2 |
4689 | 4689 | <string key="NSMaxSize">{10000000000000, 10000000000000}</string> |
4690 | 4690 | <bool key="NSWindowIsRestorable">YES</bool> |
4691 | 4691 | </object> |
4692 | | <object class="NSCustomObject" id="761483302"> |
4693 | | <string key="NSClassName">SUUpdater</string> |
4694 | | </object> |
4695 | 4692 | <object class="NSWindowTemplate" id="898680423"> |
4696 | 4693 | <int key="NSWindowStyleMask">15</int> |
4697 | 4694 | <int key="NSWindowBacking">2</int> |
… |
… |
y7bMNcy1zTXNtc42zrbPN8+40DnQutE80b7SP9LB00TTxtRJ1MvVTtXR1lXW2Ndc1+DYZNjo2WzZ8dp2 |
7561 | 7558 | <int key="connectionID">2681</int> |
7562 | 7559 | </object> |
7563 | 7560 | <object class="IBConnectionRecord"> |
7564 | | <object class="IBBindingConnection" key="connection"> |
7565 | | <string key="label">value: automaticallyChecksForUpdates</string> |
7566 | | <reference key="source" ref="243384014"/> |
7567 | | <reference key="destination" ref="761483302"/> |
7568 | | <object class="NSNibBindingConnector" key="connector"> |
7569 | | <reference key="NSSource" ref="243384014"/> |
7570 | | <reference key="NSDestination" ref="761483302"/> |
7571 | | <string key="NSLabel">value: automaticallyChecksForUpdates</string> |
7572 | | <string key="NSBinding">value</string> |
7573 | | <string key="NSKeyPath">automaticallyChecksForUpdates</string> |
7574 | | <int key="NSNibBindingConnectorVersion">2</int> |
7575 | | </object> |
7576 | | </object> |
7577 | | <int key="connectionID">3559</int> |
7578 | | </object> |
7579 | | <object class="IBConnectionRecord"> |
7580 | 7561 | <object class="IBOutletConnection" key="connection"> |
7581 | 7562 | <string key="label">nextKeyView</string> |
7582 | 7563 | <reference key="source" ref="588417130"/> |
… |
… |
y7bMNcy1zTXNtc42zrbPN8+40DnQutE80b7SP9LB00TTxtRJ1MvVTtXR1lXW2Ndc1+DYZNjo2WzZ8dp2 |
9292 | 9273 | <reference key="parent" ref="492678965"/> |
9293 | 9274 | </object> |
9294 | 9275 | <object class="IBObjectRecord"> |
9295 | | <int key="objectID">3555</int> |
9296 | | <reference key="object" ref="761483302"/> |
9297 | | <reference key="parent" ref="0"/> |
9298 | | <string key="objectName">Sparkle Updater</string> |
9299 | | </object> |
9300 | | <object class="IBObjectRecord"> |
9301 | 9276 | <int key="objectID">3556</int> |
9302 | 9277 | <reference key="object" ref="243384014"/> |
9303 | 9278 | <array class="NSMutableArray" key="children"> |
diff --git modules/gui/macosx/intf.m modules/gui/macosx/intf.m
index 7ff668c..73b3799 100644
|
|
|
67 | 67 | #import "VideoEffects.h" |
68 | 68 | #import "AudioEffects.h" |
69 | 69 | |
70 | | #import <Sparkle/Sparkle.h> /* we're the update delegate */ |
71 | | |
72 | 70 | #import "iTunes.h" |
73 | 71 | #import "Spotify.h" |
74 | 72 | |
… |
… |
static VLCMain *_o_sharedMainInstance = nil; |
788 | 788 | // This cannot be called directly here, as the main loop is not running yet so it would have no effect. |
789 | 789 | // So lets enqueue it into the loop for later execution. |
790 | 790 | [o_mainwindow performSelector:@selector(makeKeyAndOrderFront:) withObject:nil afterDelay:0]; |
791 | | |
792 | | [[SUUpdater sharedUpdater] setDelegate:self]; |
793 | 791 | } |
794 | 792 | |
795 | 793 | - (void)applicationDidFinishLaunching:(NSNotification *)aNotification |
… |
… |
static bool f_appExit = false; |
932 | 928 | } |
933 | 929 | |
934 | 930 | #pragma mark - |
935 | | #pragma mark Sparkle delegate |
936 | | /* received directly before the update gets installed, so let's shut down a bit */ |
937 | | - (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)update |
938 | | { |
939 | | [NSApp activateIgnoringOtherApps:YES]; |
940 | | [o_remote stopListening: self]; |
941 | | [[VLCCoreInteraction sharedInstance] stop]; |
942 | | } |
943 | | |
944 | | /* don't be enthusiastic about an update if we currently play a video */ |
945 | | - (BOOL)updaterMayCheckForUpdates:(SUUpdater *)bundle |
946 | | { |
947 | | if ([self activeVideoPlayback]) |
948 | | return NO; |
949 | | |
950 | | return YES; |
951 | | } |
952 | | |
953 | | #pragma mark - |
954 | 931 | #pragma mark Media Key support |
955 | 932 | |
956 | 933 | -(void)mediaKeyTap:(SPMediaKeyTap*)keyTap receivedMediaKeyEvent:(NSEvent*)event |
diff --git modules/gui/macosx/simple_prefs.m modules/gui/macosx/simple_prefs.m
index 8697769..6dd162d 100644
|
|
|
38 | 38 | #import "AppleRemote.h" |
39 | 39 | #import "CoreInteraction.h" |
40 | 40 | |
41 | | #import <Sparkle/Sparkle.h> //for o_intf_last_update_lbl |
42 | | |
43 | 41 | static const char *const ppsz_language[] = |
44 | 42 | { |
45 | 43 | "auto", |
… |
… |
create_toolbar_item(NSString * o_itemIdent, NSString * o_name, NSString * o_desc |
366 | 364 | [o_intf_mediakeys_ckb setTitle: _NS("Control playback with media keys")]; |
367 | 365 | [o_intf_art_ckb setTitle: _NS("Allow metadata network access")]; |
368 | 366 | [o_intf_update_ckb setTitle: _NS("Automatically check for updates")]; |
369 | | [o_intf_last_update_lbl setStringValue: @""]; |
370 | 367 | [o_intf_enableGrowl_ckb setTitle: _NS("Enable Growl notifications (on playlist item change)")]; |
371 | 368 | [o_intf_autoresize_ckb setTitle: _NS("Resize interface to the native video size")]; |
372 | 369 | [o_intf_pauseminimized_ckb setTitle: _NS("Pause the video playback when minimized")]; |
… |
… |
static inline char * __config_GetLabel(vlc_object_t *p_this, const char *psz_nam |
578 | 575 | [self setupButton: o_intf_appleremote_sysvol_ckb forBoolValue: "macosx-appleremote-sysvol"]; |
579 | 576 | |
580 | 577 | [self setupButton: o_intf_mediakeys_ckb forBoolValue: "macosx-mediakeys"]; |
581 | | if ([[SUUpdater sharedUpdater] lastUpdateCheckDate] != NULL) |
582 | | [o_intf_last_update_lbl setStringValue: [NSString stringWithFormat: _NS("Last check on: %@"), [[[SUUpdater sharedUpdater] lastUpdateCheckDate] descriptionWithLocale: [[NSUserDefaults standardUserDefaults] dictionaryRepresentation]]]]; |
583 | | else |
584 | | [o_intf_last_update_lbl setStringValue: _NS("No check was performed yet.")]; |
585 | 578 | psz_tmp = config_GetPsz(p_intf, "control"); |
586 | 579 | if (psz_tmp) { |
587 | 580 | [o_intf_enableGrowl_ckb setState: (NSInteger)strstr(psz_tmp, "growl")]; |