From d9feeacc0f5ec081e787bfbaa740ce4cdbb93fd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Mon, 25 Jun 2012 01:20:39 +0200 Subject: [PATCH] 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. --- SparkleShare/Linux/SparkleStatusIcon.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/SparkleShare/Linux/SparkleStatusIcon.cs b/SparkleShare/Linux/SparkleStatusIcon.cs index fd972e96..a0b86a45 100644 --- a/SparkleShare/Linux/SparkleStatusIcon.cs +++ b/SparkleShare/Linux/SparkleStatusIcon.cs @@ -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); + } }