[vlc-commits] macosx: update fullscreen menu item checkbox according to vout fullscreen variable
David Fuhrmann
git at videolan.org
Sat Feb 9 18:45:12 CET 2013
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Sat Feb 9 15:50:15 2013 +0100| [0d5f65dea94435058516293020c112a2035adc62] | committer: David Fuhrmann
macosx: update fullscreen menu item checkbox according to vout fullscreen variable
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0d5f65dea94435058516293020c112a2035adc62
---
modules/gui/macosx/MainMenu.m | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/modules/gui/macosx/MainMenu.m b/modules/gui/macosx/MainMenu.m
index dfec4d0..24979f0 100644
--- a/modules/gui/macosx/MainMenu.m
+++ b/modules/gui/macosx/MainMenu.m
@@ -1356,15 +1356,14 @@ static VLCMainMenu *_o_sharedInstance = nil;
if ([o_title isEqualToString: _NS("Float on Top")])
[o_mi setState: var_GetBool(p_vout, "video-on-top")];
- bEnabled = TRUE;
+ if ([o_title isEqualToString: _NS("Fullscreen")])
+ [o_mi setState: var_GetBool(p_vout, "fullscreen")];
+ bEnabled = TRUE;
vlc_object_release(p_vout);
}
}
- if ([o_title isEqualToString: _NS("Fullscreen")]) {
- [o_mi setState: var_GetBool(p_playlist, "fullscreen")];
- bEnabled = TRUE;
- }
+
[self setupMenus]; /* Make sure video menu is up to date */
}
More information about the vlc-commits
mailing list