[vlc-commits] macosx: status bar: Set duration to a default value if no media is playing

David Fuhrmann git at videolan.org
Sun Jul 3 19:03:06 CEST 2016


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Jul  3 18:30:58 2016 +0200| [cb82fd5a468fa2e0ce0f26520cfcb3bcc15e50b3] | committer: David Fuhrmann

macosx: status bar: Set duration to a default value if no media is playing

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cb82fd5a468fa2e0ce0f26520cfcb3bcc15e50b3
---

 .../macosx/Resources/English.lproj/VLCStatusBarIconMainMenu.xib  |    6 +++---
 modules/gui/macosx/VLCStatusBarIcon.m                            |    2 ++
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/extras/package/macosx/Resources/English.lproj/VLCStatusBarIconMainMenu.xib b/extras/package/macosx/Resources/English.lproj/VLCStatusBarIconMainMenu.xib
index b2cf2c5..bee03eb 100755
--- a/extras/package/macosx/Resources/English.lproj/VLCStatusBarIconMainMenu.xib
+++ b/extras/package/macosx/Resources/English.lproj/VLCStatusBarIconMainMenu.xib
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="10117" systemVersion="15G24b" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
     <dependencies>
         <deployment identifier="macosx"/>
         <development version="7000" identifier="xcode"/>
@@ -166,7 +166,7 @@
                 <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="z3X-aG-Veg">
                     <rect key="frame" x="18" y="0.0" width="100" height="17"/>
                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                    <textFieldCell key="cell" lineBreakMode="truncatingTail" allowsUndo="NO" sendsActionOnEndEditing="YES" alignment="right" title="00:00" usesSingleLineMode="YES" id="CLT-p2-bxf">
+                    <textFieldCell key="cell" lineBreakMode="truncatingTail" allowsUndo="NO" sendsActionOnEndEditing="YES" alignment="right" title="--:--" usesSingleLineMode="YES" id="CLT-p2-bxf">
                         <font key="font" metaFont="system"/>
                         <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
                         <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
@@ -184,7 +184,7 @@
                 <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" id="wXO-2p-mxK">
                     <rect key="frame" x="127" y="0.0" width="102" height="17"/>
                     <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
-                    <textFieldCell key="cell" lineBreakMode="truncatingTail" allowsUndo="NO" sendsActionOnEndEditing="YES" title="00:00" usesSingleLineMode="YES" id="vF8-Z8-vhW">
+                    <textFieldCell key="cell" lineBreakMode="truncatingTail" allowsUndo="NO" sendsActionOnEndEditing="YES" title="--:--" usesSingleLineMode="YES" id="vF8-Z8-vhW">
                         <font key="font" metaFont="system"/>
                         <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
                         <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
diff --git a/modules/gui/macosx/VLCStatusBarIcon.m b/modules/gui/macosx/VLCStatusBarIcon.m
index 948ef69..d43438f 100644
--- a/modules/gui/macosx/VLCStatusBarIcon.m
+++ b/modules/gui/macosx/VLCStatusBarIcon.m
@@ -193,6 +193,8 @@
         vlc_object_release(input);
     } else {
         /* Nothing playing */
+        [progressField setStringValue:@"--:--"];
+        [totalField setStringValue:@"--:--"];
         [self setStoppedStatus:YES];
     }
 }



More information about the vlc-commits mailing list