diff --git a/modules/gui/macosx/views/VLCTimeField.h b/modules/gui/macosx/views/VLCTimeField.h index e688596c061759590bbf1b3a9992e732ad2c4b59..7b4b37464b7bf5539fed35e074e2e47e30df81c9 100644 --- a/modules/gui/macosx/views/VLCTimeField.h +++ b/modules/gui/macosx/views/VLCTimeField.h @@ -30,6 +30,8 @@ * we need the implementation to catch our click-event in the controller window *****************************************************************************/ +extern NSString *VLCTimeFieldDisplayTimeAsRemaining; + @interface VLCTimeField : NSTextField @property (readonly) BOOL timeRemaining; diff --git a/modules/gui/macosx/views/VLCTimeField.m b/modules/gui/macosx/views/VLCTimeField.m index e349a04401016c6e479c2599caca2336746708e5..578cb9b6f7315a746a5ef118d609dd75aaa6e66e 100644 --- a/modules/gui/macosx/views/VLCTimeField.m +++ b/modules/gui/macosx/views/VLCTimeField.m @@ -27,6 +27,8 @@ #import "main/VLCMain.h" #import "menus/VLCMainMenu.h" +NSString *VLCTimeFieldDisplayTimeAsRemaining = @"DisplayTimeAsTimeRemaining"; + @interface VLCTimeField () { NSString *o_remaining_identifier; @@ -39,8 +41,7 @@ { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; NSDictionary *appDefaults = [NSDictionary dictionaryWithObjectsAndKeys: - @"NO", @"DisplayTimeAsTimeRemaining", - @"YES", @"DisplayFullscreenTimeAsTimeRemaining", + @"NO", VLCTimeFieldDisplayTimeAsRemaining, nil]; [defaults registerDefaults:appDefaults]; diff --git a/modules/gui/macosx/windows/mainwindow/VLCControlsBarCommon.m b/modules/gui/macosx/windows/mainwindow/VLCControlsBarCommon.m index 1471454c59d2cbd2650692995e8315bc73454afa..916f506b5680eff5e8aab1dfbd7ad00fd15110a0 100644 --- a/modules/gui/macosx/windows/mainwindow/VLCControlsBarCommon.m +++ b/modules/gui/macosx/windows/mainwindow/VLCControlsBarCommon.m @@ -117,7 +117,7 @@ [self.timeField setFont:[NSFont titleBarFontOfSize:10.0]]; [self.timeField setAlignment: NSCenterTextAlignment]; [self.timeField setNeedsDisplay:YES]; - [self.timeField setRemainingIdentifier:@"DisplayTimeAsTimeRemaining"]; + [self.timeField setRemainingIdentifier:VLCTimeFieldDisplayTimeAsRemaining]; self.timeField.accessibilityLabel = _NS("Playback time"); // remove fullscreen button for lion fullscreen diff --git a/modules/gui/macosx/windows/video/VLCFSPanelController.m b/modules/gui/macosx/windows/video/VLCFSPanelController.m index 9e4e7e038f072e2c352700e69ad599087c870ff5..7db573123fea316296591fae494b2ca8714c843b 100644 --- a/modules/gui/macosx/windows/video/VLCFSPanelController.m +++ b/modules/gui/macosx/windows/video/VLCFSPanelController.m @@ -156,7 +156,7 @@ static NSString *kAssociatedFullscreenRect = @"VLCFullscreenAssociatedWindowRect * this is the same identifier as used for the window playback cotrols * so the state is shared between those. */ - [_remainingOrTotalTime setRemainingIdentifier:@"DisplayTimeAsTimeRemaining"]; + [_remainingOrTotalTime setRemainingIdentifier:VLCTimeFieldDisplayTimeAsRemaining]; } #undef setupButton