]> git.sesse.net Git - vlc/commitdiff
macosx dialog provider: implement EXTENSION_WIDGET_SPIN_ICON
authorFelix Paul Kühne <fkuehne@videolan.org>
Tue, 8 Feb 2011 17:42:15 +0000 (18:42 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Tue, 8 Feb 2011 17:42:15 +0000 (18:42 +0100)
modules/gui/macosx_dialog_provider/dialogProvider.m

index d79f2c128ea733f1a89553998d8a245189007371..3086ff74c2d6f422b81cc24c3a898fe7a4d52851 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * dialogProvider.m: Minimal Dialog Provider for Mac OS X
  *****************************************************************************
- * Copyright (C) 2009-2010 the VideoLAN team
+ * Copyright (C) 2009-2011 the VideoLAN team
  * $Id$
  *
  * Authors: Felix Paul Kühne <fkuehne at videolan dot org>
@@ -647,6 +647,15 @@ static NSView *createControlFromWidget(extension_widget_t *widget, id self)
             [imageView setImageScaling:NSImageScaleProportionallyUpOrDown];
             return imageView;
         }
+        case EXTENSION_WIDGET_SPIN_ICON:
+        {
+            NSProgressIndicator *spinner = [[NSProgressIndicator alloc] init];
+            [spinner setUsesThreadedAnimation:YES];
+            [spinner setStyle:NSProgressIndicatorSpinningStyle];
+            [spinner setDisplayedWhenStopped:YES];
+            [spinner startAnimation:self];
+            return spinner;
+        }
         default:
             assert(0);
             return nil;