summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeViewGtk.py
diff options
context:
space:
mode:
authorSebastian Heinlein <sebastian.heinlein@web.de>2006-01-23 09:32:27 +0100
committerSebastian Heinlein <sebastian.heinlein@web.de>2006-01-23 09:32:27 +0100
commit32a8743c07e44783af67f74f494d57e38ece3e6c (patch)
tree34d23d41bbc2f01ac25cb6060dfcd35402525de9 /DistUpgrade/DistUpgradeViewGtk.py
parentddec7f64a92f4705d713dcf23754a68e7dd1bcd3 (diff)
downloadpython-apt-32a8743c07e44783af67f74f494d57e38ece3e6c.tar.gz
* Fixed some spacing and alignments
* Set the current step to bold - I cannot see any interace changes. perhaps this issue is gone with the changed alignments * Use italic style in the current command label
Diffstat (limited to 'DistUpgrade/DistUpgradeViewGtk.py')
-rw-r--r--DistUpgrade/DistUpgradeViewGtk.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/DistUpgrade/DistUpgradeViewGtk.py b/DistUpgrade/DistUpgradeViewGtk.py
index c39efbe6..4fc813bc 100644
--- a/DistUpgrade/DistUpgradeViewGtk.py
+++ b/DistUpgrade/DistUpgradeViewGtk.py
@@ -170,6 +170,16 @@ class GtkDistUpgradeView(DistUpgradeView,SimpleGladeApp):
self.treeview_details.append_column(column)
self.treeview_details.set_model(self.details_list)
self.vscrollbar_terminal.set_adjustment(self._term.get_adjustment())
+ # Use italic style in the status labels
+
+ attrlist=pango.AttrList()
+ attr = pango.AttrStyle(pango.STYLE_ITALIC, 0, -1)
+ attrlist.insert(attr)
+
+
+ self.label_status.set_property("attributes", attrlist)
+ self.label_extra_status.set_property("attributes", attrlist)
+ #self.label_status_extra.set_property("attributes", pango.AttrStyle(pango.STYLE_ITALIC, 0, -1))
def create_terminal(self, arg1,arg2,arg3,arg4):
" helper to create a vte terminal "
@@ -183,7 +193,7 @@ class GtkDistUpgradeView(DistUpgradeView,SimpleGladeApp):
def getOpCacheProgress(self):
return self._opCacheProgress
def updateStatus(self, msg):
- self.label_status.set_markup("%s" % msg)
+ self.label_status.set_text("%s" % msg)
def setStep(self, step):
# first update the "last" step as completed
size = gtk.ICON_SIZE_MENU
@@ -196,9 +206,9 @@ class GtkDistUpgradeView(DistUpgradeView,SimpleGladeApp):
image = getattr(self,"image_step%i" % step)
label = getattr(self,"label_step%i" % step)
image.set_from_stock(gtk.STOCK_YES, size)
+ attr = pango.AttrWeight(pango.WEIGHT_BOLD, 0, -1)
# we can't make it bold here without layout changes in the view :(
- #attr = pango.AttrWeight(pango.WEIGHT_BOLD, 0, -1)
- attr = pango.AttrStyle(pango.STYLE_ITALIC, 0, -1)
+ #attr = pango.AttrStyle(pango.STYLE_ITALIC, 0, -1)
attrlist.insert(attr)
label.set_property("attributes",attrlist)