diff options
author | Matt Wilson <msw@redhat.com> | 2002-07-26 15:55:54 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2002-07-26 15:55:54 +0000 |
commit | 115107abb1e48950db95f3b0f26784a4c56352e2 (patch) | |
tree | 59de2118c89ea10d7ebf0d1e5a44f1a7ecd826fe | |
parent | 455b6eb021a8590cc10c9e021693d0fe9a73efed (diff) | |
download | anaconda-115107abb1e48950db95f3b0f26784a4c56352e2.tar.gz anaconda-115107abb1e48950db95f3b0f26784a4c56352e2.tar.xz anaconda-115107abb1e48950db95f3b0f26784a4c56352e2.zip |
show busy icon when processing lots of packages
-rw-r--r-- | iw/package_gui.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/iw/package_gui.py b/iw/package_gui.py index b3a6cf344..8e0b6b559 100644 --- a/iw/package_gui.py +++ b/iw/package_gui.py @@ -113,6 +113,10 @@ class IndividualPackageSelectionWindow (InstallWindow): def add_packages(self, packages): """Adds the packages provided (list of headers) to the package list""" + SHOW_WATCH_MIN = 200 + if len(packages) > SHOW_WATCH_MIN: + cw = self.ics.getICW() + cw.busyIconPush() for header in packages: name = header[rpm.RPMTAG_NAME] @@ -131,7 +135,9 @@ class IndividualPackageSelectionWindow (InstallWindow): ### XXX Hack to get around fact treeview doesn't seem to resort ### when data is store is changed. By jostling it we can make it self.packageList.store.set_sort_column_id(self.sort_id, not self.sort_order) - self.packageList.store.set_sort_column_id(self.sort_id, self.sort_order) + self.packageList.store.set_sort_column_id(self.sort_id, self.sort_order) + if len(packages) > SHOW_WATCH_MIN: + cw.busyIconPop() def select_group(self, selection): (model, iter) = selection.get_selected() @@ -275,7 +281,6 @@ class IndividualPackageSelectionWindow (InstallWindow): for key in self.pkgs.keys(): self.allPkgs.append(self.pkgs[key]) packages = self.allPkgs - self.packageTreeView.set_model(gtk.ListStore(gobject.TYPE_STRING)) |