linux: fix up status icon loading
The main 'process-syncing-sparkleshare-24.png' file doesn't exist anymore. Load the frames from 'process-syncing-*-24.png' instead of slicing.
This commit is contained in:
parent
4bee67b3d5
commit
d9feeacc0f
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue