[vlc-commits] macosx: extensions: Allow multiple entries with same name in popup menu

David Fuhrmann git at videolan.org
Thu Apr 30 15:22:36 CEST 2015


vlc/vlc-2.2 | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Apr 26 13:15:32 2015 +0200| [3870cf32f3df384b11e3b8540546b8cd343b45a7] | committer: Jean-Baptiste Kempf

macosx: extensions: Allow multiple entries with same name in popup menu

(cherry picked from commit e2270a4406d62503db4a6c825f123a3f89952d42)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/macosx/ExtensionsDialogProvider.m |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/ExtensionsDialogProvider.m b/modules/gui/macosx/ExtensionsDialogProvider.m
index c7d6d08..66e9879 100644
--- a/modules/gui/macosx/ExtensionsDialogProvider.m
+++ b/modules/gui/macosx/ExtensionsDialogProvider.m
@@ -203,7 +203,8 @@ static void updateControlFromWidget(NSView *control, extension_widget_t *widget,
             [popup removeAllItems];
             struct extension_widget_value_t *value;
             for (value = widget->p_values; value != NULL; value = value->p_next)
-                [popup addItemWithTitle:[NSString stringWithUTF8String:value->psz_text]];
+                [[popup menu] addItemWithTitle:toNSStr(value->psz_text) action:nil keyEquivalent:@""];
+
             [popup synchronizeTitleAndSelectedItem];
             [self popUpSelectionChanged:popup];
             break;



More information about the vlc-commits mailing list