Please review this at http://codereview.appspot.com/4288046/

Affected files:
  M tryton/common/common.py


Index: tryton/common/common.py
===================================================================

--- a/tryton/common/common.py
+++ b/tryton/common/common.py
@@ -1104,6 +1104,8 @@
     def run(self):
         thread.start_new_thread(self.start, ())

+        watch = gtk.gdk.Cursor(gtk.gdk.WATCH)
+        self.parent.window.set_cursor(watch)
         i = 0
         win = None
         progressbar = None
@@ -1145,11 +1147,13 @@
                     win.set_transient_for(self.parent)
                     win.set_modal(True)
                     win.show_all()
+                    win.window.set_cursor(watch)
                 with gtk.gdk.lock:
                     progressbar.pulse()
             with gtk.gdk.lock:
                 while gtk.events_pending():
                     gtk.main_iteration()
+        self.parent.window.set_cursor(None)
         if win:
             win.destroy()
             while gtk.events_pending():




-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpUuC9lK4tQ6.pgp
Description: PGP signature

Reply via email to