linux statusicon: simplify icon caching
This commit is contained in:
parent
6d1b810ca0
commit
0d9f4c2123
|
@ -288,15 +288,12 @@ namespace SparkleShare {
|
||||||
|
|
||||||
private void CreateAnimationFrames ()
|
private void CreateAnimationFrames ()
|
||||||
{
|
{
|
||||||
this.animation_frames = new Gdk.Pixbuf [5];
|
this.animation_frames = new Gdk.Pixbuf [5];
|
||||||
|
this.animation_frames [0] = SparkleUIHelpers.GetIcon ("process-syncing-i", 24);
|
||||||
for (int i = 0; i < this.animation_frames.Length; i++) {
|
this.animation_frames [0] = SparkleUIHelpers.GetIcon ("process-syncing-ii", 24);
|
||||||
string icon_name = "process-syncing-";
|
this.animation_frames [0] = SparkleUIHelpers.GetIcon ("process-syncing-iii", 24);
|
||||||
for (int j = 0; j <= i; j++)
|
this.animation_frames [0] = SparkleUIHelpers.GetIcon ("process-syncing-iiii", 24);
|
||||||
icon_name += "i";
|
this.animation_frames [0] = SparkleUIHelpers.GetIcon ("process-syncing-iiiii", 24);
|
||||||
|
|
||||||
animation_frames [i] = SparkleUIHelpers.GetIcon(icon_name, 24);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue