statusicon: swap menu items
This commit is contained in:
parent
c83f205167
commit
79229081eb
|
@ -234,6 +234,18 @@ namespace SparkleShare {
|
||||||
|
|
||||||
this.menu.Add (new SeparatorMenuItem ());
|
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…");
|
MenuItem sync_item = new MenuItem ("Add Hosted Project…");
|
||||||
|
|
||||||
sync_item.Activated += delegate {
|
sync_item.Activated += delegate {
|
||||||
|
@ -241,16 +253,6 @@ namespace SparkleShare {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.menu.Add (sync_item);
|
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 ());
|
this.menu.Add (new SeparatorMenuItem ());
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -315,8 +315,8 @@ namespace SparkleShare {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.menu.AddItem (NSMenuItem.SeparatorItem);
|
this.menu.AddItem (NSMenuItem.SeparatorItem);
|
||||||
this.menu.AddItem (this.add_item);
|
|
||||||
this.menu.AddItem (this.recent_events_item);
|
this.menu.AddItem (this.recent_events_item);
|
||||||
|
this.menu.AddItem (this.add_item);
|
||||||
this.menu.AddItem (NSMenuItem.SeparatorItem);
|
this.menu.AddItem (NSMenuItem.SeparatorItem);
|
||||||
this.menu.AddItem (this.about_item);
|
this.menu.AddItem (this.about_item);
|
||||||
this.menu.AddItem (NSMenuItem.SeparatorItem);
|
this.menu.AddItem (NSMenuItem.SeparatorItem);
|
||||||
|
|
|
@ -288,8 +288,8 @@ namespace SparkleShare {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.context_menu.Items.Add (new Separator ());
|
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 (add_item);
|
||||||
this.context_menu.Items.Add (this.log_item);
|
|
||||||
this.context_menu.Items.Add (new Separator ());
|
this.context_menu.Items.Add (new Separator ());
|
||||||
this.context_menu.Items.Add (notify_item);
|
this.context_menu.Items.Add (notify_item);
|
||||||
this.context_menu.Items.Add (new Separator ());
|
this.context_menu.Items.Add (new Separator ());
|
||||||
|
|
Loading…
Reference in a new issue