[PATCH] fix Gtk import in software.py
Brian C. Lane
bcl at redhat.com
Tue Aug 21 18:33:54 UTC 2012
From: "Brian C. Lane" <bcl at redhat.com>
---
pyanaconda/ui/gui/spokes/software.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/software.py b/pyanaconda/ui/gui/spokes/software.py
index d9080e1..3aecad4 100644
--- a/pyanaconda/ui/gui/spokes/software.py
+++ b/pyanaconda/ui/gui/spokes/software.py
@@ -184,8 +184,6 @@ class SoftwareSelectionSpoke(NormalSpoke):
self.apply()
def refresh(self):
- from gi.repository import Gtk
-
from pyanaconda.threads import threadMgr
NormalSpoke.refresh(self)
@@ -207,6 +205,8 @@ class SoftwareSelectionSpoke(NormalSpoke):
self.refreshAddons()
def refreshAddons(self):
+ from gi.repository import Gtk
+
self._addonStore = self.builder.get_object("addonStore")
self._addonStore.clear()
if self.environment:
--
1.7.11.2
More information about the anaconda-patches
mailing list