Skip to content

Commit

Permalink
Fix build on Ubuntu. Closes hbons#672
Browse files Browse the repository at this point in the history
  • Loading branch information
hbons committed Mar 29, 2012
1 parent f6e0628 commit 3e285bf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions SparkleShare/Linux/SparkleStatusIcon.cs
Expand Up @@ -72,8 +72,6 @@ public SparkleStatusIcon ()
Controller.UpdateIconEvent += delegate (int icon_frame) {
Application.Invoke (delegate {
if (icon_frame > -1) {
this.status_icon.Pixbuf = this.animation_frames [icon_frame];

#if HAVE_APP_INDICATOR
string icon_name = "process-syncing-sparkleshare-";
for (int i = 0; i <= this.frame_number; i++)
Expand All @@ -85,7 +83,11 @@ public SparkleStatusIcon ()
#endif

} else {
this.status_icon.Pixbuf = SparkleUIHelpers.GetIcon ("sparkleshare-syncing-error", 24);
#if HAVE_APP_INDICATOR
this.indicator.IconName = sparkleshare-syncing-error;
#else
this.status_icon.Pixbuf = SparkleUIHelpers.GetIcon ("sparkleshare-syncing-error", 24);
#endif
}
});
};
Expand Down

0 comments on commit 3e285bf

Please sign in to comment.