linux statusicon: sync with Windows menu. See #640

This commit is contained in:
Hylke Bons 2012-03-17 16:40:05 +00:00
parent e848c5a129
commit 70710a9018
2 changed files with 6 additions and 9 deletions

View file

@ -263,7 +263,6 @@ namespace SparkleShare {
};
this.menu.Add (sync_item);
this.menu.Add (new SeparatorMenuItem ());
MenuItem recent_events_item = new MenuItem (_("View Recent Changes…"));
@ -274,14 +273,12 @@ namespace SparkleShare {
};
this.menu.Add (recent_events_item);
this.menu.Add (new SeparatorMenuItem ());
MenuItem notify_item;
if (Program.Controller.NotificationsEnabled)
notify_item = new MenuItem (_("Turn Notifications Off"));
else
notify_item = new MenuItem (_("Turn Notifications On"));
CheckMenuItem notify_item = new CheckMenuItem (_("Notifications")) {
Active = Program.Controller.NotificationsEnabled
};
notify_item.Activated += delegate {
Program.Controller.ToggleNotifications ();
CreateMenu ();

View file

@ -216,7 +216,7 @@ namespace SparkleShare {
};
SparkleMenuItem notify_item = new SparkleMenuItem () {
Header = "Notifications",
Header = "Notifications",
IsCheckable = true,
IsChecked = Program.Controller.NotificationsEnabled
};