summaryrefslogtreecommitdiffstats
path: root/iw/package.py
diff options
context:
space:
mode:
authorpnfisher <pnfisher>1999-08-04 05:06:43 +0000
committerpnfisher <pnfisher>1999-08-04 05:06:43 +0000
commitc65d90065549079111918934ce6ffa1c8ae04015 (patch)
treefec025f22571fe00d0227911837809dc5d655593 /iw/package.py
parent6c1810e4cf6f5dc0f74b6a5eb90fda31ee6adde8 (diff)
downloadanaconda-c65d90065549079111918934ce6ffa1c8ae04015.tar.gz
anaconda-c65d90065549079111918934ce6ffa1c8ae04015.tar.xz
anaconda-c65d90065549079111918934ce6ffa1c8ae04015.zip
Remove XPM file dependancies and fixup the network config.
Diffstat (limited to 'iw/package.py')
-rw-r--r--iw/package.py19
1 files changed, 12 insertions, 7 deletions
diff --git a/iw/package.py b/iw/package.py
index 8ce413873..f7da28eb4 100644
--- a/iw/package.py
+++ b/iw/package.py
@@ -5,7 +5,7 @@ from string import *
from xpms import *
from thread import *
import rpm
-
+import GdkImlib
class IndividualPackageSelectionWindow (InstallWindow):
@@ -24,6 +24,11 @@ class IndividualPackageSelectionWindow (InstallWindow):
self.updatingIcons = FALSE
+ self.idirImage = GdkImlib.create_image_from_xpm (I_DIRECTORY_XPM)
+ self.idirUpImage = GdkImlib.create_image_from_xpm (I_DIRECTORY_UP_XPM)
+ self.packageImage = GdkImlib.create_image_from_xpm (PACKAGE_XPM)
+ self.packageSelectedImage = GdkImlib.create_image_from_xpm (PACKAGE_SELECTED_XPM)
+
def getPrev (self):
return PackageSelectionWindow
@@ -64,7 +69,7 @@ class IndividualPackageSelectionWindow (InstallWindow):
self.iconList.clear ()
for x in self.ctree.base_nodes ():
dirName = self.ctree.get_node_info (x)[0]
- pos = self.iconList.append ("/usr/src/mc/gnome/i-directory.png", dirName)
+ pos = self.iconList.append_imlib (self.idirImage, dirName)
self.iconList.set_icon_data (pos, (self.DIR, x))
self.iconList.thaw ()
@@ -159,11 +164,11 @@ class IndividualPackageSelectionWindow (InstallWindow):
self.clear_package_desc ()
self.iconList.freeze ()
self.iconList.clear ()
- self.iconList.append ("/home/devel/msw/i-directory-up.png", "Up")
+ self.iconList.append_imlib (self.idirUpImage, "Up")
self.iconList.set_icon_data (0, (self.DIR_UP, node))
for x in node.children:
dirName = ctree.get_node_info (x)[0]
- pos = self.iconList.append ("/usr/src/mc/gnome/i-directory.png", dirName)
+ pos = self.iconList.append_imlib (self.idirImage, dirName)
self.iconList.set_icon_data (pos, (self.DIR, x))
try:
@@ -173,13 +178,13 @@ class IndividualPackageSelectionWindow (InstallWindow):
# drop the leading slash off the package namespace
for header in self.flat_groups[ctree.node_get_row_data (node)[1:]]:
if header.selected:
- packageIcon = "/home/devel/pnfisher/gnome-package-checked.png"
+ packageIcon = self.packageSelectedImage
self.cbutton.set_active (TRUE)
else:
- packageIcon = "/usr/src/gnorpm/gnome-package.xpm"
+ packageIcon = self.packageImage
self.cbutton.set_active (FALSE)
- pos = self.iconList.append (packageIcon, header[rpm.RPMTAG_NAME])
+ pos = self.iconList.append_imlib (packageIcon, header[rpm.RPMTAG_NAME])
self.iconList.set_icon_data (pos, (self.RPM, header))
except:
pass