statusicons: use animation frames that are already in memory for animation.
This commit is contained in:
parent
cd206a13e4
commit
72a72d9c6f
|
@ -161,16 +161,11 @@ namespace SparkleShare {
|
|||
else
|
||||
FrameNumber = 0;
|
||||
|
||||
string icon_name = "process-syncing-sparkleshare-";
|
||||
|
||||
for (int i = 0; i <= FrameNumber; i++)
|
||||
icon_name += "i";
|
||||
|
||||
Application.Invoke (delegate {
|
||||
#if HAVE_APP_INDICATOR
|
||||
this.indicator.IconName = icon_name;
|
||||
#else
|
||||
this.status_icon.Pixbuf = SparkleUIHelpers.GetIcon (icon_name, 24);
|
||||
this.status_icon.Pixbuf = AnimationFrames [FrameNumber];
|
||||
#endif
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue