[vlc-commits] macosx: show an indeterminate progress bar style when doing stuff for indeterminate time

Felix Paul Kühne git at videolan.org
Sat Nov 19 15:32:49 CET 2011


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Nov 19 15:32:42 2011 +0100| [23927fbbab12041e44581af4ebfc5855ff86f7cb] | committer: Felix Paul Kühne

macosx: show an indeterminate progress bar style when doing stuff for indeterminate time

Fixes #5548

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

 modules/gui/macosx/coredialogs.h |    2 +-
 modules/gui/macosx/coredialogs.m |    5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/coredialogs.h b/modules/gui/macosx/coredialogs.h
index 79d94f7..777ead1 100644
--- a/modules/gui/macosx/coredialogs.h
+++ b/modules/gui/macosx/coredialogs.h
@@ -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>
diff --git a/modules/gui/macosx/coredialogs.m b/modules/gui/macosx/coredialogs.m
index 6a78978..42d05b4 100644
--- a/modules/gui/macosx/coredialogs.m
+++ b/modules/gui/macosx/coredialogs.m
@@ -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];
 }
 



More information about the vlc-commits mailing list