summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-11-27 19:56:23 +0000
committerMatt Wilson <msw@redhat.com>2001-11-27 19:56:23 +0000
commit10d95227c6842be56d24a9162d086b3b74379574 (patch)
tree0d9bd841b7c04285ddd4cdf82f82ec2af0bb59af /gui.py
parent1a069271b3e1f22f4205b58a3c2de4c331fdb47e (diff)
downloadanaconda-10d95227c6842be56d24a9162d086b3b74379574.tar.gz
anaconda-10d95227c6842be56d24a9162d086b3b74379574.tar.xz
anaconda-10d95227c6842be56d24a9162d086b3b74379574.zip
make graphics gray out when insensitive
small fixes to partitioning.
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/gui.py b/gui.py
index 1f50f0aa0..42a25f2ed 100755
--- a/gui.py
+++ b/gui.py
@@ -927,8 +927,13 @@ class InstallControlState:
if pixbuf is None:
log("unable to read %s", file)
return None
- p = gtk.Image()
- p.set_from_pixbuf(pixbuf)
+ source = gtk.IconSource()
+ source.set_pixbuf(pixbuf)
+ source.set_size(gtk.ICON_SIZE_DIALOG)
+ source.set_size_wildcarded(gtk.FALSE)
+ iconset = gtk.IconSet()
+ iconset.add_source(source)
+ p = gtk.image_new_from_icon_set(iconset, gtk.ICON_SIZE_DIALOG)
return p
def readHTML (self, file):