Commit 2b086638 authored by David Fuhrmann's avatar David Fuhrmann

macosx: add constant for VLCMediaKeySupportSettingChanged notification

parent f3abf1ec
...@@ -104,7 +104,7 @@ static int BossCallback(vlc_object_t *p_this, const char *psz_var, ...@@ -104,7 +104,7 @@ static int BossCallback(vlc_object_t *p_this, const char *psz_var,
[SPMediaKeyTap defaultMediaKeyUserBundleIdentifiers], kMediaKeyUsingBundleIdentifiersDefaultsKey, [SPMediaKeyTap defaultMediaKeyUserBundleIdentifiers], kMediaKeyUsingBundleIdentifiersDefaultsKey,
nil]]; nil]];
} }
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(coreChangedMediaKeySupportSetting:) name: @"VLCMediaKeySupportSettingChanged" object: nil]; [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(coreChangedMediaKeySupportSetting:) name:VLCMediaKeySupportSettingChangedNotification object: nil];
/* init Apple Remote support */ /* init Apple Remote support */
_remote = [[AppleRemote alloc] init]; _remote = [[AppleRemote alloc] init];
......
...@@ -52,7 +52,7 @@ intf_thread_t *getIntf(); ...@@ -52,7 +52,7 @@ intf_thread_t *getIntf();
static NSString * VLCInputChangedNotification = @"VLCInputChangedNotification"; static NSString * VLCInputChangedNotification = @"VLCInputChangedNotification";
static NSString * VLCConfigurationChangedNotification = @"VLCConfigurationChangedNotification"; static NSString * VLCConfigurationChangedNotification = @"VLCConfigurationChangedNotification";
static NSString * VLCMediaKeySupportSettingChangedNotification = @"VLCMediaKeySupportSettingChangedNotification";
/***************************************************************************** /*****************************************************************************
* VLCMain interface * VLCMain interface
......
...@@ -1184,7 +1184,7 @@ static const float f_min_window_height = 307.; ...@@ -1184,7 +1184,7 @@ static const float f_min_window_height = 307.;
[self showDropZone]; [self showDropZone];
PL_UNLOCK; PL_UNLOCK;
[[NSNotificationCenter defaultCenter] postNotificationName: @"VLCMediaKeySupportSettingChanged" [[NSNotificationCenter defaultCenter] postNotificationName: VLCMediaKeySupportSettingChangedNotification
object: nil object: nil
userInfo: nil]; userInfo: nil];
} }
......
...@@ -273,7 +273,7 @@ static int VolumeUpdated(vlc_object_t *p_this, const char *psz_var, ...@@ -273,7 +273,7 @@ static int VolumeUpdated(vlc_object_t *p_this, const char *psz_var,
// update badge in sidebar // update badge in sidebar
[[[VLCMain sharedInstance] mainWindow] updateWindow]; [[[VLCMain sharedInstance] mainWindow] updateWindow];
[[NSNotificationCenter defaultCenter] postNotificationName: @"VLCMediaKeySupportSettingChanged" [[NSNotificationCenter defaultCenter] postNotificationName: VLCMediaKeySupportSettingChangedNotification
object: nil object: nil
userInfo: nil]; userInfo: nil];
} }
...@@ -289,7 +289,7 @@ static int VolumeUpdated(vlc_object_t *p_this, const char *psz_var, ...@@ -289,7 +289,7 @@ static int VolumeUpdated(vlc_object_t *p_this, const char *psz_var,
// update badge in sidebar // update badge in sidebar
[[[VLCMain sharedInstance] mainWindow] updateWindow]; [[[VLCMain sharedInstance] mainWindow] updateWindow];
[[NSNotificationCenter defaultCenter] postNotificationName: @"VLCMediaKeySupportSettingChanged" [[NSNotificationCenter defaultCenter] postNotificationName: VLCMediaKeySupportSettingChangedNotification
object: nil object: nil
userInfo: nil]; userInfo: nil];
} }
......
...@@ -1080,9 +1080,7 @@ static inline void save_string_list(intf_thread_t * p_intf, id object, const cha ...@@ -1080,9 +1080,7 @@ static inline void save_string_list(intf_thread_t * p_intf, id object, const cha
/* okay, let's save our changes to vlcrc */ /* okay, let's save our changes to vlcrc */
config_SaveConfigFile(p_intf); config_SaveConfigFile(p_intf);
[[NSNotificationCenter defaultCenter] postNotificationName: @"VLCMediaKeySupportSettingChanged" [[NSNotificationCenter defaultCenter] postNotificationName:VLCMediaKeySupportSettingChangedNotification object:nil];
object: nil
userInfo: nil];
[[NSNotificationCenter defaultCenter] postNotificationName:VLCConfigurationChangedNotification object:nil]; [[NSNotificationCenter defaultCenter] postNotificationName:VLCConfigurationChangedNotification object:nil];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment