[vlc-commits] macosx dialog provider: implement EXTENSION_WIDGET_SPIN_ICON
Felix Paul Kühne
git at videolan.org
Tue Feb 8 18:42:23 CET 2011
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Feb 8 18:42:15 2011 +0100| [7ff88a0c7ac064017e40e2b44ffbcbeb2f4c285a] | committer: Felix Paul Kühne
macosx dialog provider: implement EXTENSION_WIDGET_SPIN_ICON
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7ff88a0c7ac064017e40e2b44ffbcbeb2f4c285a
---
.../gui/macosx_dialog_provider/dialogProvider.m | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/modules/gui/macosx_dialog_provider/dialogProvider.m b/modules/gui/macosx_dialog_provider/dialogProvider.m
index d79f2c1..3086ff7 100644
--- a/modules/gui/macosx_dialog_provider/dialogProvider.m
+++ b/modules/gui/macosx_dialog_provider/dialogProvider.m
@@ -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;
More information about the vlc-commits
mailing list