[vlc-devel] commit: macosx_dialog_provider: Update the checked PopUp menu. (Pierre d' Herbemont )

git version control git at videolan.org
Fri Jan 29 15:47:49 CET 2010


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Fri Jan 29 15:15:59 2010 +0100| [d96b2976d25559d2d69475471c4f8d40628c8d96] | committer: Pierre d'Herbemont 

macosx_dialog_provider: Update the checked PopUp menu.

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

 .../gui/macosx_dialog_provider/dialogProvider.m    |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/modules/gui/macosx_dialog_provider/dialogProvider.m b/modules/gui/macosx_dialog_provider/dialogProvider.m
index 0f31fd2..c2591ba 100644
--- a/modules/gui/macosx_dialog_provider/dialogProvider.m
+++ b/modules/gui/macosx_dialog_provider/dialogProvider.m
@@ -917,7 +917,7 @@ bool checkProgressPanel (void *priv)
 {
     NSView *contentView = [sender contentView];
     assert([contentView isKindOfClass:[VLCDialogGridView class]]);
-    VLCDialogGridView *gridView = contentView;
+    VLCDialogGridView *gridView = (VLCDialogGridView *)contentView;
 
     NSRect rect = NSMakeRect(0, 0, 0, 0);
     rect.size = frameSize;
@@ -1030,7 +1030,7 @@ static NSView *createControlFromWidget(extension_widget_t *widget, id self)
 
 }
 
-static void updateControlFromWidget(NSView *control, extension_widget_t *widget)
+static void updateControlFromWidget(NSView *control, extension_widget_t *widget, id self)
 {
     switch (widget->type)
     {
@@ -1099,6 +1099,7 @@ static void updateControlFromWidget(NSView *control, extension_widget_t *widget)
                 [popup addItemWithTitle:[NSString stringWithUTF8String:value->psz_text]];
             }
             [popup synchronizeTitleAndSelectedItem];
+            [self popUpSelectionChanged:popup];
             break;
         }
 
@@ -1157,7 +1158,7 @@ static void updateControlFromWidget(NSView *control, extension_widget_t *widget)
         if (!control && !shouldDestroy)
         {
             control = createControlFromWidget(widget, self);
-            updateControlFromWidget(control, widget);
+            updateControlFromWidget(control, widget, self);
             widget->p_sys_intf = control;
             update = YES; // Force update and repositionning
             [control setHidden:widget->b_hide];
@@ -1165,7 +1166,7 @@ static void updateControlFromWidget(NSView *control, extension_widget_t *widget)
 
         if (update && !shouldDestroy)
         {
-            updateControlFromWidget(control, widget);
+            updateControlFromWidget(control, widget, self);
             [control setHidden:widget->b_hide];
 
             int row = widget->i_row - 1;




More information about the vlc-devel mailing list