vlc | branch: master | David Fuhrmann <[email protected]> | 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;

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to