[vlc-commits] macosx: rework renderer menu to match the Qt interface

Felix Paul Kühne git at videolan.org
Sat Feb 3 15:24:32 CET 2018


vlc/vlc-3.0 | branch: master | Felix Paul Kühne <felix at feepk.net> | Sat Feb  3 14:26:09 2018 +0100| [9d8f0a4a0b7d92ade3b476095eaa3b0573632a57] | committer: Felix Paul Kühne

macosx: rework renderer menu to match the Qt interface

Discovery automatically runs for 20s when opening the menu and is terminated afterwards. The state is no longer displayed as it is implicit.

Further, this removes the nib object singleton of the renderer menu controller as this way of initialization is discouraged in modern Cocoa.

(cherry picked from commit f95e46d68d64707906db81c16357192befe775c8)

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

 modules/gui/macosx/UI/MainMenu.xib             | 30 ++++--------------
 modules/gui/macosx/VLCMainMenu.h               |  6 +++-
 modules/gui/macosx/VLCMainMenu.m               | 44 ++++++++++++++++++++++++--
 modules/gui/macosx/VLCRendererDiscovery.m      |  8 +++++
 modules/gui/macosx/VLCRendererMenuController.h | 10 +++---
 modules/gui/macosx/VLCRendererMenuController.m | 21 ++----------
 6 files changed, 69 insertions(+), 50 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commitdiff;h=9d8f0a4a0b7d92ade3b476095eaa3b0573632a57


More information about the vlc-commits mailing list