[vlc-commits] macosx: grey out fullscreen device selector of native fs is enabled

David Fuhrmann git at videolan.org
Sun Dec 13 00:33:31 CET 2015


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Dec 13 00:31:39 2015 +0100| [d27c7bfe069616168844b0a09f647f6c398e6f6b] | committer: David Fuhrmann

macosx: grey out fullscreen device selector of native fs is enabled

Selecting the fullscreen monitor is not supported with native
fullscreen.

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

 modules/gui/macosx/simple_prefs.m |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/gui/macosx/simple_prefs.m b/modules/gui/macosx/simple_prefs.m
index 4781347..41bd321 100644
--- a/modules/gui/macosx/simple_prefs.m
+++ b/modules/gui/macosx/simple_prefs.m
@@ -1128,6 +1128,7 @@ static inline void save_string_list(intf_thread_t * p_intf, id object, const cha
 {
     [_video_videodecoCheckbox setEnabled: !_value];
     [_video_blackScreenCheckbox setEnabled: !_value];
+    [_video_devicePopup setEnabled: !_value];
 
     if (_value) {
         [_video_videodecoCheckbox setState: NSOnState];
@@ -1136,9 +1137,13 @@ static inline void save_string_list(intf_thread_t * p_intf, id object, const cha
         NSString *tooltipText = _NS("This setting cannot be changed because the native fullscreen mode is enabled.");
         [_video_videodecoCheckbox setToolTip:tooltipText];
         [_video_blackScreenCheckbox setToolTip:tooltipText];
+        [_video_devicePopup setToolTip:tooltipText];
+
     } else {
         [self setupButton:_video_videodecoCheckbox forBoolValue: "video-deco"];
         [self setupButton:_video_blackScreenCheckbox forBoolValue: "macosx-black"];
+
+        [_video_devicePopup setToolTip:@""];
     }
 }
 



More information about the vlc-commits mailing list