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

David Fuhrmann git at videolan.org
Sun Apr 26 13:27:06 CEST 2015


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Apr 26 13:15:32 2015 +0200| [e2270a4406d62503db4a6c825f123a3f89952d42] | committer: David Fuhrmann

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

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

 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