summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeViewGtk.py
diff options
context:
space:
mode:
authorglatzor@ubuntu.com <>2006-09-11 15:20:33 +0200
committerglatzor@ubuntu.com <>2006-09-11 15:20:33 +0200
commitbacc395f5e0e9ae48883d4cdd1258f98ee6d9b21 (patch)
tree36e67e7a985f329fc9c572677b1ffa7b0b763184 /DistUpgrade/DistUpgradeViewGtk.py
parent45d74191b4d72141c907ab9bd147b64787086f14 (diff)
downloadpython-apt-bacc395f5e0e9ae48883d4cdd1258f98ee6d9b21.tar.gz
* only show an gtk-yes icon for completed taks
* the current tasks has got a gtk-arrow icon - since gtk 2.10 this icon is themable. * reuse a hardcoded title - this should be a config option * really remove the sample text
Diffstat (limited to 'DistUpgrade/DistUpgradeViewGtk.py')
-rw-r--r--DistUpgrade/DistUpgradeViewGtk.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/DistUpgrade/DistUpgradeViewGtk.py b/DistUpgrade/DistUpgradeViewGtk.py
index 73440f3e..5fd8d560 100644
--- a/DistUpgrade/DistUpgradeViewGtk.py
+++ b/DistUpgrade/DistUpgradeViewGtk.py
@@ -417,11 +417,16 @@ class DistUpgradeViewGtk(DistUpgradeView,SimpleGladeApp):
if step > 1:
image = getattr(self,"image_step%i" % (step-1))
label = getattr(self,"label_step%i" % (step-1))
- image.set_from_stock(gtk.STOCK_APPLY, size)
+ arrow = getattr(self,"arrow_step%i" % (step-1))
label.set_property("attributes",attrlist)
+ image.set_from_stock(gtk.STOCK_YES, size)
+ image.show()
+ arrow.hide()
image = getattr(self,"image_step%i" % step)
label = getattr(self,"label_step%i" % step)
- image.set_from_stock(gtk.STOCK_YES, size)
+ arrow = getattr(self,"arrow_step%i" % step)
+ arrow.show()
+ image.hide()
attr = pango.AttrWeight(pango.WEIGHT_BOLD, 0, -1)
# we can't make it bold here without layout changes in the view :(
#attr = pango.AttrStyle(pango.STYLE_ITALIC, 0, -1)