Ticket #47192: no-sparkle.patch

File no-sparkle.patch, 8.7 KB (added by RJVB (René Bertin), 10 years ago)
  • configure.ac

    diff --git configure.ac configure.ac
    index 318cad4..7c4e53f 100644
    then 
    38503850
    38513851  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])
    38523852
    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 
    38603853  if test ! -d ${CONTRIB_DIR}/BGHUDAppKit.framework
    38613854  then
    38623855    AC_MSG_ERROR([BGHUDAppKit framework is required and was not found in ${CONTRIB_DIR}])
  • extras/package/macosx/Resources/English.lproj/MainMenu.xib

    diff --git extras/package/macosx/Resources/English.lproj/MainMenu.xib extras/package/macosx/Resources/English.lproj/MainMenu.xib
    index 1c880c9..08b3b9d 100644
     
    21062106      <object class="NSCustomObject" id="651263286">
    21072107        <string key="NSClassName">VLCMainMenu</string>
    21082108      </object>
    2109       <object class="NSCustomObject" id="1040926652">
    2110         <string key="NSClassName">SUUpdater</string>
    2111       </object>
    21122109      <object class="NSCustomView" id="560875128">
    21132110        <reference key="NSNextResponder"/>
    21142111        <int key="NSvFlags">268</int>
     
    26352632          <int key="connectionID">2817</int>
    26362633        </object>
    26372634        <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">
    26462635          <object class="IBOutletConnection" key="connection">
    26472636            <string key="label">o_dmi_mute</string>
    26482637            <reference key="source" ref="651263286"/>
     
    54665455            <string key="objectName">Application</string>
    54675456          </object>
    54685457          <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">
    54745458            <int key="objectID">4397</int>
    54755459            <reference key="object" ref="629699013"/>
    54765460            <object class="NSMutableArray" key="children">
  • extras/package/macosx/Resources/English.lproj/Preferences.xib

    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 
    48654865        <string key="NSMaxSize">{1.7976931348623157e+308, 1.7976931348623157e+308}</string>
    48664866        <bool key="NSWindowIsRestorable">YES</bool>
    48674867      </object>
    4868       <object class="NSCustomObject" id="761483302">
    4869         <string key="NSClassName">SUUpdater</string>
    4870       </object>
    48714868      <object class="NSWindowTemplate" id="898680423">
    48724869        <int key="NSWindowStyleMask">15</int>
    48734870        <int key="NSWindowBacking">2</int>
    y7bMNcy1zTXNtc42zrbPN8+40DnQutE80b7SP9LB00TTxtRJ1MvVTtXR1lXW2Ndc1+DYZNjo2WzZ8dp2 
    68996896          <int key="connectionID">3554</int>
    69006897        </object>
    69016898        <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">
    69186899          <object class="IBOutletConnection" key="connection">
    69196900            <string key="label">o_intf_update_ckb</string>
    69206901            <reference key="source" ref="150917409"/>
    y7bMNcy1zTXNtc42zrbPN8+40DnQutE80b7SP9LB00TTxtRJ1MvVTtXR1lXW2Ndc1+DYZNjo2WzZ8dp2 
    95829563            <reference key="parent" ref="492678965"/>
    95839564          </object>
    95849565          <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">
    95919566            <int key="objectID">3556</int>
    95929567            <reference key="object" ref="243384014"/>
    95939568            <object class="NSMutableArray" key="children">
  • modules/gui/macosx/simple_prefs.m

    diff --git modules/gui/macosx/simple_prefs.m modules/gui/macosx/simple_prefs.m
    index 98f315d..0074c64 100644
     
    3838#import "AppleRemote.h"
    3939#import "CoreInteraction.h"
    4040
    41 #import <Sparkle/Sparkle.h>                        //for o_intf_last_update_lbl
    42 
    4341static const char *const ppsz_language[] =
    4442{
    4543    "auto",
    create_toolbar_item(NSString * o_itemIdent, NSString * o_name, NSString * o_desc 
    383381    [o_intf_mediakeys_ckb setTitle: _NS("Control playback with media keys")];
    384382    [o_intf_art_ckb setTitle: _NS("Allow metadata network access")];
    385383    [o_intf_update_ckb setTitle: _NS("Automatically check for updates")];
    386     [o_intf_last_update_lbl setStringValue: @""];
    387384    [o_intf_enableGrowl_ckb setTitle: _NS("Enable Growl notifications (on playlist item change)")];
    388385    [o_intf_autoresize_ckb setTitle: _NS("Resize interface to the native video size")];
    389386    [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 
    595592    [self setupButton: o_intf_appleremote_sysvol_ckb forBoolValue: "macosx-appleremote-sysvol"];
    596593
    597594    [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.")];
    602595    psz_tmp = config_GetPsz(p_intf, "control");
    603596    if (psz_tmp) {
    604597        [o_intf_enableGrowl_ckb setState: (NSInteger)strstr(psz_tmp, "growl")];
  • modules/gui/macosx/intf.m

    diff --git modules/gui/macosx/intf.m modules/gui/macosx/intf.m
    index 1d48150..c61a4aa 100644
     
    6767#import "VideoEffects.h"
    6868#import "AudioEffects.h"
    6969
    70 #import <Sparkle/Sparkle.h>                 /* we're the update delegate */
    71 
    7270#import "iTunes.h"
    7371#import "Spotify.h"
    7472
    static VLCMain *_o_sharedMainInstance = nil; 
    787785    // This cannot be called directly here, as the main loop is not running yet so it would have no effect.
    788786    // So lets enqueue it into the loop for later execution.
    789787    [o_mainwindow performSelector:@selector(makeKeyAndOrderFront:) withObject:nil afterDelay:0];
    790 
    791     [[SUUpdater sharedUpdater] setDelegate:self];
    792788}
    793789
    794790- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
    static bool f_appExit = false; 
    974970}
    975971
    976972#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 -
    996973#pragma mark Media Key support
    997974
    998975-(void)mediaKeyTap:(SPMediaKeyTap*)keyTap receivedMediaKeyEvent:(NSEvent*)event