Commit 7ff88a0c authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx dialog provider: implement EXTENSION_WIDGET_SPIN_ICON

parent fa2bba93
/***************************************************************************** /*****************************************************************************
* dialogProvider.m: Minimal Dialog Provider for Mac OS X * dialogProvider.m: Minimal Dialog Provider for Mac OS X
***************************************************************************** *****************************************************************************
* Copyright (C) 2009-2010 the VideoLAN team * Copyright (C) 2009-2011 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Felix Paul Kühne <fkuehne at videolan dot org> * Authors: Felix Paul Kühne <fkuehne at videolan dot org>
...@@ -647,6 +647,15 @@ static NSView *createControlFromWidget(extension_widget_t *widget, id self) ...@@ -647,6 +647,15 @@ static NSView *createControlFromWidget(extension_widget_t *widget, id self)
[imageView setImageScaling:NSImageScaleProportionallyUpOrDown]; [imageView setImageScaling:NSImageScaleProportionallyUpOrDown];
return imageView; 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: default:
assert(0); assert(0);
return nil; return nil;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment