From a79e4fc80ef854844e560e5b547d1398ab149360 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 29 Nov 2005 17:31:21 +0100 Subject: * make the software preferences work again completely --- SoftwareProperties/SoftwareProperties.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'SoftwareProperties/SoftwareProperties.py') 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 += "%s\n\n" % (source.comment) - contents += "%s (%s)" % (dists, a_type) - + contents +="%s (%s) \n%s" % (dist,a_type, comps) + self.source_store.append([contents, not source.disabled, source]) def reload_keyslist(self): -- cgit v1.2.3