diff --git configure.ac configure.ac
index 318cad4..7c4e53f 100644
|
|
then |
3850 | 3850 | |
3851 | 3851 | 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]) |
3852 | 3852 | |
3853 | | if test ! -d ${CONTRIB_DIR}/Sparkle.framework |
3854 | | then |
3855 | | AC_MSG_ERROR([Sparkle framework is required and was not found in ${CONTRIB_DIR}]) |
3856 | | fi |
3857 | | VLC_ADD_LIBS([macosx], [-F${CONTRIB_DIR} -Wl,-framework,Sparkle]) |
3858 | | VLC_ADD_OBJCFLAGS([macosx], [-F${CONTRIB_DIR}]) |
3859 | | |
3860 | 3853 | if test ! -d ${CONTRIB_DIR}/BGHUDAppKit.framework |
3861 | 3854 | then |
3862 | 3855 | 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 1c880c9..08b3b9d 100644
|
|
|
2106 | 2106 | <object class="NSCustomObject" id="651263286"> |
2107 | 2107 | <string key="NSClassName">VLCMainMenu</string> |
2108 | 2108 | </object> |
2109 | | <object class="NSCustomObject" id="1040926652"> |
2110 | | <string key="NSClassName">SUUpdater</string> |
2111 | | </object> |
2112 | 2109 | <object class="NSCustomView" id="560875128"> |
2113 | 2110 | <reference key="NSNextResponder"/> |
2114 | 2111 | <int key="NSvFlags">268</int> |
… |
… |
|
2635 | 2632 | <int key="connectionID">2817</int> |
2636 | 2633 | </object> |
2637 | 2634 | <object class="IBConnectionRecord"> |
2638 | | <object class="IBActionConnection" key="connection"> |
2639 | | <string key="label">checkForUpdates:</string> |
2640 | | <reference key="source" ref="1040926652"/> |
2641 | | <reference key="destination" ref="354414928"/> |
2642 | | </object> |
2643 | | <int key="connectionID">4371</int> |
2644 | | </object> |
2645 | | <object class="IBConnectionRecord"> |
2646 | 2635 | <object class="IBOutletConnection" key="connection"> |
2647 | 2636 | <string key="label">o_dmi_mute</string> |
2648 | 2637 | <reference key="source" ref="651263286"/> |
… |
… |
|
5466 | 5455 | <string key="objectName">Application</string> |
5467 | 5456 | </object> |
5468 | 5457 | <object class="IBObjectRecord"> |
5469 | | <int key="objectID">4370</int> |
5470 | | <reference key="object" ref="1040926652"/> |
5471 | | <reference key="parent" ref="0"/> |
5472 | | </object> |
5473 | | <object class="IBObjectRecord"> |
5474 | 5458 | <int key="objectID">4397</int> |
5475 | 5459 | <reference key="object" ref="629699013"/> |
5476 | 5460 | <object class="NSMutableArray" key="children"> |
diff --git extras/package/macosx/Resources/English.lproj/Preferences.xib extras/package/macosx/Resources/English.lproj/Preferences.xib
index 2f264fd..d4049bd 100644
|
|
y7bMNcy1zTXNtc42zrbPN8+40DnQutE80b7SP9LB00TTxtRJ1MvVTtXR1lXW2Ndc1+DYZNjo2WzZ8dp2 |
4865 | 4865 | <string key="NSMaxSize">{1.7976931348623157e+308, 1.7976931348623157e+308}</string> |
4866 | 4866 | <bool key="NSWindowIsRestorable">YES</bool> |
4867 | 4867 | </object> |
4868 | | <object class="NSCustomObject" id="761483302"> |
4869 | | <string key="NSClassName">SUUpdater</string> |
4870 | | </object> |
4871 | 4868 | <object class="NSWindowTemplate" id="898680423"> |
4872 | 4869 | <int key="NSWindowStyleMask">15</int> |
4873 | 4870 | <int key="NSWindowBacking">2</int> |
… |
… |
y7bMNcy1zTXNtc42zrbPN8+40DnQutE80b7SP9LB00TTxtRJ1MvVTtXR1lXW2Ndc1+DYZNjo2WzZ8dp2 |
6899 | 6896 | <int key="connectionID">3554</int> |
6900 | 6897 | </object> |
6901 | 6898 | <object class="IBConnectionRecord"> |
6902 | | <object class="IBBindingConnection" key="connection"> |
6903 | | <string key="label">value: automaticallyChecksForUpdates</string> |
6904 | | <reference key="source" ref="243384014"/> |
6905 | | <reference key="destination" ref="761483302"/> |
6906 | | <object class="NSNibBindingConnector" key="connector"> |
6907 | | <reference key="NSSource" ref="243384014"/> |
6908 | | <reference key="NSDestination" ref="761483302"/> |
6909 | | <string key="NSLabel">value: automaticallyChecksForUpdates</string> |
6910 | | <string key="NSBinding">value</string> |
6911 | | <string key="NSKeyPath">automaticallyChecksForUpdates</string> |
6912 | | <int key="NSNibBindingConnectorVersion">2</int> |
6913 | | </object> |
6914 | | </object> |
6915 | | <int key="connectionID">3559</int> |
6916 | | </object> |
6917 | | <object class="IBConnectionRecord"> |
6918 | 6899 | <object class="IBOutletConnection" key="connection"> |
6919 | 6900 | <string key="label">o_intf_update_ckb</string> |
6920 | 6901 | <reference key="source" ref="150917409"/> |
… |
… |
y7bMNcy1zTXNtc42zrbPN8+40DnQutE80b7SP9LB00TTxtRJ1MvVTtXR1lXW2Ndc1+DYZNjo2WzZ8dp2 |
9582 | 9563 | <reference key="parent" ref="492678965"/> |
9583 | 9564 | </object> |
9584 | 9565 | <object class="IBObjectRecord"> |
9585 | | <int key="objectID">3555</int> |
9586 | | <reference key="object" ref="761483302"/> |
9587 | | <reference key="parent" ref="0"/> |
9588 | | <string key="objectName">Sparkle Updater</string> |
9589 | | </object> |
9590 | | <object class="IBObjectRecord"> |
9591 | 9566 | <int key="objectID">3556</int> |
9592 | 9567 | <reference key="object" ref="243384014"/> |
9593 | 9568 | <object class="NSMutableArray" key="children"> |
diff --git modules/gui/macosx/simple_prefs.m modules/gui/macosx/simple_prefs.m
index 98f315d..0074c64 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 |
383 | 381 | [o_intf_mediakeys_ckb setTitle: _NS("Control playback with media keys")]; |
384 | 382 | [o_intf_art_ckb setTitle: _NS("Allow metadata network access")]; |
385 | 383 | [o_intf_update_ckb setTitle: _NS("Automatically check for updates")]; |
386 | | [o_intf_last_update_lbl setStringValue: @""]; |
387 | 384 | [o_intf_enableGrowl_ckb setTitle: _NS("Enable Growl notifications (on playlist item change)")]; |
388 | 385 | [o_intf_autoresize_ckb setTitle: _NS("Resize interface to the native video size")]; |
389 | 386 | [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 |
595 | 592 | [self setupButton: o_intf_appleremote_sysvol_ckb forBoolValue: "macosx-appleremote-sysvol"]; |
596 | 593 | |
597 | 594 | [self setupButton: o_intf_mediakeys_ckb forBoolValue: "macosx-mediakeys"]; |
598 | | if ([[SUUpdater sharedUpdater] lastUpdateCheckDate] != NULL) |
599 | | [o_intf_last_update_lbl setStringValue: [NSString stringWithFormat: _NS("Last check on: %@"), [[[SUUpdater sharedUpdater] lastUpdateCheckDate] descriptionWithLocale: [[NSUserDefaults standardUserDefaults] dictionaryRepresentation]]]]; |
600 | | else |
601 | | [o_intf_last_update_lbl setStringValue: _NS("No check was performed yet.")]; |
602 | 595 | psz_tmp = config_GetPsz(p_intf, "control"); |
603 | 596 | if (psz_tmp) { |
604 | 597 | [o_intf_enableGrowl_ckb setState: (NSInteger)strstr(psz_tmp, "growl")]; |
diff --git modules/gui/macosx/intf.m modules/gui/macosx/intf.m
index 1d48150..c61a4aa 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; |
787 | 785 | // This cannot be called directly here, as the main loop is not running yet so it would have no effect. |
788 | 786 | // So lets enqueue it into the loop for later execution. |
789 | 787 | [o_mainwindow performSelector:@selector(makeKeyAndOrderFront:) withObject:nil afterDelay:0]; |
790 | | |
791 | | [[SUUpdater sharedUpdater] setDelegate:self]; |
792 | 788 | } |
793 | 789 | |
794 | 790 | - (void)applicationDidFinishLaunching:(NSNotification *)aNotification |
… |
… |
static bool f_appExit = false; |
974 | 970 | } |
975 | 971 | |
976 | 972 | #pragma mark - |
977 | | #pragma mark Sparkle delegate |
978 | | /* received directly before the update gets installed, so let's shut down a bit */ |
979 | | - (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)update |
980 | | { |
981 | | [NSApp activateIgnoringOtherApps:YES]; |
982 | | [o_remote stopListening: self]; |
983 | | [[VLCCoreInteraction sharedInstance] stop]; |
984 | | } |
985 | | |
986 | | /* don't be enthusiastic about an update if we currently play a video */ |
987 | | - (BOOL)updaterMayCheckForUpdates:(SUUpdater *)bundle |
988 | | { |
989 | | if ([self activeVideoPlayback]) |
990 | | return NO; |
991 | | |
992 | | return YES; |
993 | | } |
994 | | |
995 | | #pragma mark - |
996 | 973 | #pragma mark Media Key support |
997 | 974 | |
998 | 975 | -(void)mediaKeyTap:(SPMediaKeyTap*)keyTap receivedMediaKeyEvent:(NSEvent*)event |