statusicon: Fix some warnings
This commit is contained in:
parent
8e8bb0237c
commit
ab6c379e46
|
@ -29,8 +29,6 @@ namespace SparkleShare {
|
|||
|
||||
public SparkleStatusIconController Controller = new SparkleStatusIconController ();
|
||||
|
||||
private Gdk.Pixbuf [] animation_frames;
|
||||
|
||||
private Menu menu;
|
||||
private MenuItem recent_events_item;
|
||||
private MenuItem quit_item;
|
||||
|
@ -40,19 +38,20 @@ namespace SparkleShare {
|
|||
private ApplicationIndicator indicator;
|
||||
#else
|
||||
private StatusIcon status_icon;
|
||||
private Gdk.Pixbuf [] animation_frames;
|
||||
#endif
|
||||
|
||||
|
||||
public SparkleStatusIcon ()
|
||||
{
|
||||
CreateAnimationFrames ();
|
||||
|
||||
#if HAVE_APP_INDICATOR
|
||||
this.indicator = new ApplicationIndicator ("sparkleshare",
|
||||
"process-syncing-i", Category.ApplicationStatus);
|
||||
|
||||
this.indicator.Status = Status.Active;
|
||||
#else
|
||||
CreateAnimationFrames ();
|
||||
|
||||
this.status_icon = new StatusIcon ();
|
||||
this.status_icon.Pixbuf = this.animation_frames [0];
|
||||
|
||||
|
@ -279,6 +278,7 @@ namespace SparkleShare {
|
|||
}
|
||||
|
||||
|
||||
#if !HAVE_APP_INDICATOR
|
||||
private void CreateAnimationFrames ()
|
||||
{
|
||||
this.animation_frames = new Gdk.Pixbuf [] {
|
||||
|
@ -289,6 +289,7 @@ namespace SparkleShare {
|
|||
SparkleUIHelpers.GetIcon ("process-syncing-iiiii", 24)
|
||||
};
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
#if !HAVE_APP_INDICATOR
|
||||
|
|
Loading…
Reference in a new issue