Merge pull request #801 from carlosmn/status-icon

linux: fix up status icon loading
This commit is contained in:
Hylke Bons 2012-06-24 16:29:32 -07:00
commit 56c278ebdc

View file

@ -281,10 +281,14 @@ namespace SparkleShare {
private void CreateAnimationFrames ()
{
this.animation_frames = new Gdk.Pixbuf [5];
Gdk.Pixbuf frames_pixbuf = SparkleUIHelpers.GetIcon ("process-syncing-sparkleshare", 24);
for (int i = 0; i < this.animation_frames.Length; i++)
animation_frames [i] = new Gdk.Pixbuf (frames_pixbuf, (i * 24), 0, 24, 24);
for (int i = 0; i < this.animation_frames.Length; i++) {
string icon_name = "process-syncing-";
for (int j = 0; j <= i; j++)
icon_name += "i";
animation_frames [i] = SparkleUIHelpers.GetIcon(icon_name, 24);
}
}