]> git.sesse.net Git - vlc/commitdiff
macosx: show an indeterminate progress bar style when doing stuff for indeterminate...
authorFelix Paul Kühne <fkuehne@videolan.org>
Sat, 19 Nov 2011 14:32:42 +0000 (15:32 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sat, 19 Nov 2011 14:32:49 +0000 (15:32 +0100)
Fixes #5548

modules/gui/macosx/coredialogs.h
modules/gui/macosx/coredialogs.m

index 79d94f7a16e3908e31e4a69e98bf978fb8a6bd68..777ead12dc789d4adba64453fde2fa5b1d6a33b1 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * coredialogs.h: Mac OS X Core Dialogs
  *****************************************************************************
- * Copyright (C) 2005-2009 VLC authors and VideoLAN
+ * Copyright (C) 2005-2011 VLC authors and VideoLAN
  * $Id$
  *
  * Authors: Derk-Jan Hartman <hartman at videolan dot org>
index 6a7897860d1d6a6d3bf167d461d0ee22de62e126..42d05b419622a00b93f75da6e37e3346b75ac76e 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * coredialogs.m: Mac OS X Core Dialogs
  *****************************************************************************
- * Copyright (C) 2005-2009 VLC authors and VideoLAN
+ * Copyright (C) 2005-2011 VLC authors and VideoLAN
  * $Id$
  *
  * Authors: Derk-Jan Hartman <hartman at videolan dot org>
@@ -184,6 +184,7 @@ static VLCCoreDialogProvider *_o_sharedInstance = nil;
     else
         [o_prog_description_txt setStringValue: @""];
     [o_prog_bar setDoubleValue: 0];
+    [o_prog_bar setIndeterminate: YES];
     [o_prog_bar startAnimation: self];
 
     [o_prog_win makeKeyAndOrderFront: self];
@@ -192,6 +193,8 @@ static VLCCoreDialogProvider *_o_sharedInstance = nil;
 -(void)updateProgressPanelWithText: (NSString *)string andNumber: (double)d_number
 {
     [o_prog_description_txt setStringValue: string];
+    if (d_number > 0)
+        [o_prog_bar setIndeterminate: NO];
     [o_prog_bar setDoubleValue: d_number];
 }