statusicon: swap menu items

This commit is contained in:
Hylke Bons 2012-11-04 15:44:24 +00:00
parent c83f205167
commit 79229081eb
3 changed files with 14 additions and 12 deletions

View file

@ -234,6 +234,18 @@ namespace SparkleShare {
this.menu.Add (new SeparatorMenuItem ());
this.recent_events_item = new MenuItem ("Recent Changes…");
this.recent_events_item.Sensitive = Controller.RecentEventsItemEnabled;
this.recent_events_item.Activated += delegate {
Controller.RecentEventsClicked ();
};
this.menu.Add (this.recent_events_item);
MenuItem sync_item = new MenuItem ("Add Hosted Project…");
sync_item.Activated += delegate {
@ -241,16 +253,6 @@ namespace SparkleShare {
};
this.menu.Add (sync_item);
this.recent_events_item = new MenuItem ("Recent Changes…");
this.recent_events_item.Sensitive = Controller.RecentEventsItemEnabled;
this.recent_events_item.Activated += delegate {
Controller.RecentEventsClicked ();
};
this.menu.Add (this.recent_events_item);
this.menu.Add (new SeparatorMenuItem ());

View file

@ -315,8 +315,8 @@ namespace SparkleShare {
}
this.menu.AddItem (NSMenuItem.SeparatorItem);
this.menu.AddItem (this.add_item);
this.menu.AddItem (this.recent_events_item);
this.menu.AddItem (this.add_item);
this.menu.AddItem (NSMenuItem.SeparatorItem);
this.menu.AddItem (this.about_item);
this.menu.AddItem (NSMenuItem.SeparatorItem);

View file

@ -288,8 +288,8 @@ namespace SparkleShare {
}
this.context_menu.Items.Add (new Separator ());
this.context_menu.Items.Add (this.log_item);
this.context_menu.Items.Add (add_item);
this.context_menu.Items.Add (this.log_item);
this.context_menu.Items.Add (new Separator ());
this.context_menu.Items.Add (notify_item);
this.context_menu.Items.Add (new Separator ());