diff options
| author | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-03-23 18:26:49 +0100 |
|---|---|---|
| committer | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-03-23 18:26:49 +0100 |
| commit | 95e028c4268ce0b51933d96f0d5a44acc30a6afa (patch) | |
| tree | 0f33f20615cc46c73eeace34303548ccad0420da /UpdateManager | |
| parent | c4792be3f2c741a8b343468e21410f52e991504a (diff) | |
| download | python-apt-95e028c4268ce0b51933d96f0d5a44acc30a6afa.tar.gz | |
* fixed a bug in the previous commit
* show the watch cursor if we are busy
Diffstat (limited to 'UpdateManager')
| -rw-r--r-- | UpdateManager/UpdateManager.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py index 47a1cb14..1cbf03d6 100644 --- a/UpdateManager/UpdateManager.py +++ b/UpdateManager/UpdateManager.py @@ -497,6 +497,7 @@ class UpdateManager(SimpleGladeApp): # set window to insensitive self.window_main.set_sensitive(False) + self.window_main.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) lock = thread.allocate_lock() lock.acquire() t = thread.start_new_thread(self.run_synaptic, @@ -509,6 +510,7 @@ class UpdateManager(SimpleGladeApp): gtk.main_iteration() self.fillstore() self.window_main.set_sensitive(True) + self.window_main.window.set_cursor(None) def toggled(self, renderer, path_string): """ a toggle button in the listview was toggled """ @@ -588,6 +590,8 @@ class UpdateManager(SimpleGladeApp): self.window_main.set_sensitive(True) def fillstore(self): + # use the watch cursor + self.window_main.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH)) # clean most objects self.packages = [] @@ -630,10 +634,16 @@ class UpdateManager(SimpleGladeApp): i = i + 1 + # show the text messages corresponding to the number of available + # updates (text_header, text_download, selected) = self.update_count() self.label_header.set_markup(text_header) self.label_downsize.set_markup(text_download) - self.treeview_update.set_cursor(selected) + # select the first update + if selected != None: self.treeview_update.set_cursor(selected) + + # use the normal cursor + self.window_main.window.set_cursor(None) return False def dist_no_longer_supported(self, meta_release): |
