idle state for status icon by default
This commit is contained in:
parent
8dbd7bb66f
commit
1edef6c48b
|
@ -43,9 +43,10 @@ namespace SparkleShare {
|
||||||
|
|
||||||
public SparkleStatusIcon () : base () {
|
public SparkleStatusIcon () : base () {
|
||||||
|
|
||||||
|
Timer = new Timer ();
|
||||||
Activate += ShowMenu;
|
Activate += ShowMenu;
|
||||||
StateText = "Everything is up to date";
|
StateText = _("Everything is up to date");
|
||||||
SetSyncingState ();
|
SetIdleState ();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -135,7 +136,7 @@ namespace SparkleShare {
|
||||||
Menu.Add (AboutItem);
|
Menu.Add (AboutItem);
|
||||||
|
|
||||||
Menu.Add (new SeparatorMenuItem ());
|
Menu.Add (new SeparatorMenuItem ());
|
||||||
MenuItem QuitItem = new MenuItem ("Quit");
|
MenuItem QuitItem = new MenuItem (_("Quit"));
|
||||||
QuitItem.Activated += delegate { Environment.Exit (0); };
|
QuitItem.Activated += delegate { Environment.Exit (0); };
|
||||||
Menu.Add (QuitItem);
|
Menu.Add (QuitItem);
|
||||||
Menu.ShowAll ();
|
Menu.ShowAll ();
|
||||||
|
@ -147,7 +148,7 @@ namespace SparkleShare {
|
||||||
public void SetIdleState () {
|
public void SetIdleState () {
|
||||||
Timer.Stop ();
|
Timer.Stop ();
|
||||||
Pixbuf = SparkleHelpers.GetIcon ("folder-sparkleshare", 24);
|
Pixbuf = SparkleHelpers.GetIcon ("folder-sparkleshare", 24);
|
||||||
StateText = "Everything is up to date";
|
StateText = _("Everything is up to date");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Changes the status icon to the suncing antimation
|
// Changes the status icon to the suncing antimation
|
||||||
|
@ -155,7 +156,7 @@ namespace SparkleShare {
|
||||||
// bewteen syncing and idle state
|
// bewteen syncing and idle state
|
||||||
public void SetSyncingState () {
|
public void SetSyncingState () {
|
||||||
|
|
||||||
StateText = "Syncing…";
|
StateText = _("Syncing…");
|
||||||
|
|
||||||
int CycleDuration = 250;
|
int CycleDuration = 250;
|
||||||
int CurrentStep = 0;
|
int CurrentStep = 0;
|
||||||
|
@ -196,7 +197,7 @@ namespace SparkleShare {
|
||||||
// Changes the status icon to the error icon
|
// Changes the status icon to the error icon
|
||||||
public void SetErrorState () {
|
public void SetErrorState () {
|
||||||
IconName = "folder-sync-error";
|
IconName = "folder-sync-error";
|
||||||
StateText = "Error syncing";
|
StateText = _("Error syncing");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Quits the program
|
// Quits the program
|
||||||
|
|
Loading…
Reference in a new issue