summaryrefslogtreecommitdiff
path: root/SoftwareProperties/SoftwareProperties.py
diff options
context:
space:
mode:
authorMichael Vogt <egon@top>2005-11-29 17:31:21 +0100
committerMichael Vogt <egon@top>2005-11-29 17:31:21 +0100
commita79e4fc80ef854844e560e5b547d1398ab149360 (patch)
treee321ca95a5573529a4261ca1fdbd01b14c4a17af /SoftwareProperties/SoftwareProperties.py
parent4fce0fdfe15c8ab88d63e3919670e1371eb38fb9 (diff)
downloadpython-apt-a79e4fc80ef854844e560e5b547d1398ab149360.tar.gz
* make the software preferences work again completely
Diffstat (limited to 'SoftwareProperties/SoftwareProperties.py')
-rw-r--r--SoftwareProperties/SoftwareProperties.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/SoftwareProperties/SoftwareProperties.py b/SoftwareProperties/SoftwareProperties.py
index 86586cc1..5c6e8fef 100644
--- a/SoftwareProperties/SoftwareProperties.py
+++ b/SoftwareProperties/SoftwareProperties.py
@@ -29,6 +29,7 @@ import apt_pkg
import gobject
import shutil
import gettext
+import os
#sys.path.append("@prefix/share/update-manager/python")
@@ -101,9 +102,12 @@ class SoftwareProperties(SimpleGladeApp):
self.treeview1.set_model(self.source_store)
tr = gtk.CellRendererText()
+ tr.set_property("xpad", 10)
+ tr.set_property("ypad", 10)
source_col = gtk.TreeViewColumn("Description", tr, markup=LIST_MARKUP)
source_col.set_max_width(500)
+
self.treeview1.append_column(source_col)
self.sourceslist = aptsources.SourcesList()
@@ -123,13 +127,13 @@ class SoftwareProperties(SimpleGladeApp):
for source in self.sourceslist.list:
if source.invalid or source.disabled:
continue
- (a_type, dists, comps) = self.matcher.match(source)
+ (a_type, dist, comps) = self.matcher.match(source)
contents = ""
if source.comment != "":
contents += "<i>%s</i>\n\n" % (source.comment)
- contents += "%s <small>(%s)</small>" % (dists, a_type)
-
+ contents +="<big><b>%s </b></big> (%s) <small>\n%s</small>" % (dist,a_type, comps)
+
self.source_store.append([contents, not source.disabled, source])
def reload_keyslist(self):