[Sugar-devel] [PATCH] Added busy cursor when we open any section in control panel. (Ticket #245)

Ishan Bansal ishan at seeta.in
Mon Sep 20 11:36:03 EDT 2010


The sections in control panel should activate busy cursor so that user could be given a impression that their request is in progress.
---
 src/jarabe/controlpanel/gui.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/jarabe/controlpanel/gui.py b/src/jarabe/controlpanel/gui.py
index 51d9820..91cee73 100644
--- a/src/jarabe/controlpanel/gui.py
+++ b/src/jarabe/controlpanel/gui.py
@@ -214,11 +214,14 @@ class ControlPanel(gtk.Window):
                          globals(), locals(), ['model'])
         model = ModelWrapper(mod)
 
+        self.get_window().set_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) 
+        
         self._section_view = view_class(model,
                                         self._options[option]['alerts'])
 
         self._set_canvas(self._section_view)
         self._section_view.show()
+        self.get_window().set_cursor(None)
         self._section_view.connect('notify::is-valid',
                                    self.__valid_section_cb)
         self._section_view.connect('request-close',
-- 
1.7.0.4



More information about the Sugar-devel mailing list