[PATCH] Remove Restart option from buddy menu, change order to place Shutdown first, as it is the most frequently used. #1206.
James Cameron
quozl at laptop.org
Wed Aug 19 18:55:59 EDT 2009
Also placed the optional Logout menu item between Shutdown and My
Settings, so that the ordering is consistent.
---
src/jarabe/view/buddymenu.py | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/src/jarabe/view/buddymenu.py b/src/jarabe/view/buddymenu.py
index 35a8301..e9e9f8e 100644
--- a/src/jarabe/view/buddymenu.py
+++ b/src/jarabe/view/buddymenu.py
@@ -79,8 +79,8 @@ class BuddyMenu(Palette):
self._update_invite_menu(activity)
def _add_my_items(self):
- item = MenuItem(_('My Settings'), 'preferences-system')
- item.connect('activate', self.__controlpanel_activate_cb)
+ item = MenuItem(_('Shutdown'), 'system-shutdown')
+ item.connect('activate', self.__shutdown_activate_cb)
self.menu.append(item)
item.show()
@@ -92,13 +92,8 @@ class BuddyMenu(Palette):
self.menu.append(item)
item.show()
- item = MenuItem(_('Restart'), 'system-restart')
- item.connect('activate', self.__reboot_activate_cb)
- self.menu.append(item)
- item.show()
-
- item = MenuItem(_('Shutdown'), 'system-shutdown')
- item.connect('activate', self.__shutdown_activate_cb)
+ item = MenuItem(_('My Settings'), 'preferences-system')
+ item.connect('activate', self.__controlpanel_activate_cb)
self.menu.append(item)
item.show()
--
1.6.3.3
--vtzGhvizbBRQ85DL--
More information about the Sugar-devel
mailing list