[Sugar-devel] [PATCH] [PATCH] Shutdown and Logout menu items should activate the buzzy cursor (SL#2151)
Anurag Chowdhury
anurag at seeta.in
Sun Sep 19 13:51:02 EDT 2010
Shutdown (and Logout) menu items should activate the buzzy cursor (or provide some other visual feedback, perhaps dimming/locking the UI from use).
---
src/jarabe/view/buddymenu.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/jarabe/view/buddymenu.py b/src/jarabe/view/buddymenu.py
index 0ba6cc1..6a60c71 100644
--- a/src/jarabe/view/buddymenu.py
+++ b/src/jarabe/view/buddymenu.py
@@ -98,14 +98,17 @@ class BuddyMenu(Palette):
item.show()
def __logout_activate_cb(self, menu_item):
+ self.window.get_window(set_cursor( gtk.gdk.Cursor(gtk.gdk.WATCH)))
session_manager = get_session_manager()
session_manager.logout()
def __reboot_activate_cb(self, menu_item):
+ self.window.get_window(set_cursor( gtk.gdk.Cursor(gtk.gdk.WATCH)))
session_manager = get_session_manager()
session_manager.reboot()
def __shutdown_activate_cb(self, menu_item):
+ self.window.get_window(set_cursor( gtk.gdk.Cursor(gtk.gdk.WATCH)))
session_manager = get_session_manager()
session_manager.shutdown()
--
1.7.2.2
More information about the Sugar-devel
mailing list