Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIshan Bansal <ishan@seeta.in>2010-09-22 13:35:48 (GMT)
committer Tomeu Vizoso <tomeu.vizoso@collabora.co.uk>2010-09-24 08:49:06 (GMT)
commit5c991d0ba6312af14e29e20dba726b79688785b6 (patch)
tree87c7f9f3cc3d5cda1e9daa19ee1f43bd1c5cf691
parent7d73ae85016bbbaaaab0ac8f0536bd19d8d23e9f (diff)
Added busy cursor when we open any section in control panel. (Ticket #245)
The sections in control panel should activate busy cursor so that user could be given a impression that their request is in progress.
-rw-r--r--src/jarabe/controlpanel/gui.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/jarabe/controlpanel/gui.py b/src/jarabe/controlpanel/gui.py
index 51d9820..6df439c 100644
--- a/src/jarabe/controlpanel/gui.py
+++ b/src/jarabe/controlpanel/gui.py
@@ -214,11 +214,16 @@ class ControlPanel(gtk.Window):
globals(), locals(), ['model'])
model = ModelWrapper(mod)
- self._section_view = view_class(model,
- self._options[option]['alerts'])
+ try:
+ 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()
+ finally:
+ self.get_window().set_cursor(None)
- self._set_canvas(self._section_view)
- self._section_view.show()
self._section_view.connect('notify::is-valid',
self.__valid_section_cb)
self._section_view.connect('request-close',