From bacc395f5e0e9ae48883d4cdd1258f98ee6d9b21 Mon Sep 17 00:00:00 2001 From: "glatzor@ubuntu.com" <> Date: Mon, 11 Sep 2006 15:20:33 +0200 Subject: * 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 --- DistUpgrade/DistUpgrade.glade | 347 ++++++++++++++++++++++++++------------ DistUpgrade/DistUpgradeViewGtk.py | 9 +- 2 files changed, 249 insertions(+), 107 deletions(-) (limited to 'DistUpgrade') diff --git a/DistUpgrade/DistUpgrade.glade b/DistUpgrade/DistUpgrade.glade index ba55ace0..598e12be 100644 --- a/DistUpgrade/DistUpgrade.glade +++ b/DistUpgrade/DistUpgrade.glade @@ -38,7 +38,7 @@ True - + <b><big>Upgrading Ubuntu to version 6.10</big></b> False True GTK_JUSTIFY_LEFT @@ -100,101 +100,6 @@ 6 6 - - - 18 - 18 - True - 0.5 - 0.5 - 0 - 0 - - - 0 - 1 - 4 - 5 - - - - - - - 18 - 18 - True - 0.5 - 0.5 - 0 - 0 - - - 0 - 1 - 0 - 1 - - - - - - - 18 - 18 - True - 0.5 - 0.5 - 0 - 0 - - - 0 - 1 - 3 - 4 - - - - - - - 18 - 18 - True - 0.5 - 0.5 - 0 - 0 - - - 0 - 1 - 2 - 3 - - - - - - - 18 - 18 - True - 0.5 - 0.5 - 0 - 0 - - - 0 - 1 - 1 - 2 - - - - True @@ -334,6 +239,246 @@ + + + + True + False + 0 + + + + GTK_ARROW_RIGHT + GTK_SHADOW_OUT + 0.5 + 0.5 + 0 + 0 + + + 0 + True + True + + + + + + 18 + 18 + 0.5 + 0.5 + 0 + 0 + + + 0 + True + True + + + + + 0 + 1 + 0 + 1 + fill + fill + + + + + + True + False + 0 + + + + GTK_ARROW_RIGHT + GTK_SHADOW_OUT + 0.5 + 0.5 + 0 + 0 + + + 0 + True + True + + + + + + 18 + 18 + 0.5 + 0.5 + 0 + 0 + + + 0 + True + True + + + + + 0 + 1 + 1 + 2 + fill + fill + + + + + + True + False + 0 + + + + GTK_ARROW_RIGHT + GTK_SHADOW_OUT + 0.5 + 0.5 + 0 + 0 + + + 0 + True + True + + + + + + 18 + 18 + 0.5 + 0.5 + 0 + 0 + + + 0 + True + True + + + + + 0 + 1 + 2 + 3 + fill + fill + + + + + + True + False + 0 + + + + GTK_ARROW_RIGHT + GTK_SHADOW_OUT + 0.5 + 0.5 + 0 + 0 + + + 0 + True + True + + + + + + 18 + 18 + 0.5 + 0.5 + 0 + 0 + + + 0 + True + True + + + + + 0 + 1 + 3 + 4 + fill + fill + + + + + + True + False + 0 + + + + GTK_ARROW_RIGHT + GTK_SHADOW_OUT + 0.5 + 0.5 + 0 + 0 + + + 0 + True + True + + + + + + 18 + 18 + 0.5 + 0.5 + 0 + 0 + + + 0 + True + True + + + + + 0 + 1 + 4 + 5 + fill + fill + + 0 @@ -1199,15 +1344,7 @@ True - The upgrade of your system requires - - ... to download 2000 MByte - - ... to install 23 new packages - ... to remove 19 packages - ... to update 200 packages - -This is you last chance to cancel the upgrade. + False False GTK_JUSTIFY_LEFT 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) -- cgit v1.2.3