]> git.sesse.net Git - vlc/commitdiff
* introduction of a widget-free progress bar dialogue, partially already committed...
authorFelix Paul Kühne <fkuehne@videolan.org>
Sun, 14 May 2006 13:20:04 +0000 (13:20 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sun, 14 May 2006 13:20:04 +0000 (13:20 +0000)
modules/gui/macosx/interaction.m

index a4c9e67d98288472dc9599b9391542cd892bfda2..97b90cbdfe39fe3b93faae8b53be40e8c4e63052 100644 (file)
 
 -(void)updateDialog
 {
-    int i = 0;
-    for( i = 0 ; i< p_dialog->i_widgets; i++ )
+    if( p_dialog->i_flags & DIALOG_USER_PROGRESS )
     {
-        if( p_dialog->i_flags & DIALOG_USER_PROGRESS )
-        {
-            [o_prog_description setStringValue: \
-                [NSString stringWithUTF8String: p_dialog->psz_description]];
-            [o_prog_bar setDoubleValue: \
-                (double)(p_dialog->val.f_float)];
+        [o_prog_description setStringValue: \
+            [NSString stringWithUTF8String: p_dialog->psz_description]];
+        [o_prog_bar setDoubleValue: \
+            (double)(p_dialog->val.f_float)];
+        msg_Dbg( p_intf, "new value: %f", [o_prog_bar doubleValue] );
 
-            if( [o_prog_bar doubleValue] == 100.0 )
-            {
-                /* we are done, let's hide */
-                [self hideDialog];
-                return;
-            }
+        if( [o_prog_bar doubleValue] == 100.0 )
+        {
+            /* we are done, let's hide */
+            [self hideDialog];
+            return;
         }
     }
 }