[Sugar-devel] [PATCH] Shutdown and Logout menu items should activate the buzzy cursor (SL#2151)
Anurag Chowdhury
anurag at seeta.in
Tue Sep 7 22:40:27 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).
---
buddymenu.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/buddymenu.py b/buddymenu.py
index 0ba6cc1..4e7f501 100644
--- a/buddymenu.py
+++ b/buddymenu.py
@@ -98,14 +98,17 @@ class BuddyMenu(Palette):
item.show()
def __logout_activate_cb(self, menu_item):
+ self.window.set_cursor( gtk.gdk.Cursor(gtk.gdk.WATCH) ) # newline
session_manager = get_session_manager()
session_manager.logout()
def __reboot_activate_cb(self, menu_item):
+ self.window.set_cursor( gtk.gdk.Cursor(gtk.gdk.WATCH) ) # newline
session_manager = get_session_manager()
session_manager.reboot()
def __shutdown_activate_cb(self, menu_item):
+ self.window.set_cursor( gtk.gdk.Cursor(gtk.gdk.WATCH) ) # newline
session_manager = get_session_manager()
session_manager.shutdown()
--
1.7.2.2
More information about the Sugar-devel
mailing list