[vlc-commits] macosx dialog provider: complete EXTENSION_WIDGET_SPIN_ICON implementation and fixed compilation
Felix Paul Kühne
git at videolan.org
Sat Apr 30 21:44:44 CEST 2011
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Apr 30 21:44:40 2011 +0200| [5aa83bf4fed1602c94eca81b803c20c4c4178ee5] | committer: Felix Paul Kühne
macosx dialog provider: complete EXTENSION_WIDGET_SPIN_ICON implementation and fixed compilation
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5aa83bf4fed1602c94eca81b803c20c4c4178ee5
---
.../gui/macosx_dialog_provider/dialogProvider.m | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/modules/gui/macosx_dialog_provider/dialogProvider.m b/modules/gui/macosx_dialog_provider/dialogProvider.m
index 3086ff7..0a5940d 100644
--- a/modules/gui/macosx_dialog_provider/dialogProvider.m
+++ b/modules/gui/macosx_dialog_provider/dialogProvider.m
@@ -477,8 +477,7 @@ bool checkProgressPanel (void *priv)
config_PutPsz(p_intf, "lastfm-username", [lastFMUsername UTF8String]);
config_PutPsz(p_intf, "lastfm-password", [lastFMPassword UTF8String]);
- config_SaveConfigFile(p_intf, "main");
- config_SaveConfigFile(p_intf, "audioscrobbler");
+ config_SaveConfigFile(p_intf);
}
else
msg_Err(p_intf,"Last.FM module not found, no action");
@@ -771,6 +770,16 @@ static void updateControlFromWidget(NSView *control, extension_widget_t *widget,
[image release];
break;
}
+ case EXTENSION_WIDGET_SPIN_ICON:
+ {
+ assert([control isKindOfClass:[NSProgressIndicator class]]);
+ NSProgressIndicator *progressIndicator = (NSProgressIndicator *)control;
+ if( widget->i_spin_loops != 0 )
+ [progressIndicator startAnimation:self];
+ else
+ [progressIndicator stopAnimation:self];
+ break;
+ }
}
}
More information about the vlc-commits
mailing list