diff options
| author | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-02-24 02:18:49 +0100 |
|---|---|---|
| committer | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-02-24 02:18:49 +0100 |
| commit | 629ab77bfdd4979cb6da87a0e20c5b131906c977 (patch) | |
| tree | 1b6ec87cdbeddaed29bcb6aa3eb3585fb61b8da0 /SoftwareProperties/SoftwareProperties.py | |
| parent | 4c058967a18024dc127179c98fb02bbc4eda2e7b (diff) | |
| download | python-apt-629ab77bfdd4979cb6da87a0e20c5b131906c977.tar.gz | |
* Rendering of channel sources:
- add a small white space around each line
- move the rendering to its own method and aptsources so that it can
be reused in the dialog_sources_list
- Tag debian sources
- Do not show the components of updates, security-updates and backports
* Channel handling
- Bring not yet used methods for removing and disabling components in
position
- Add support for automatically updated updates and backports
* General
- comment out debug outputs
- fix the plural gettext in the dialog_sources_list
- fix d'n'd and mime type opening - was a bug in the renderer
- add more TODO
Diffstat (limited to 'SoftwareProperties/SoftwareProperties.py')
| -rw-r--r-- | SoftwareProperties/SoftwareProperties.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/SoftwareProperties/SoftwareProperties.py b/SoftwareProperties/SoftwareProperties.py index 0209825d..f6977275 100644 --- a/SoftwareProperties/SoftwareProperties.py +++ b/SoftwareProperties/SoftwareProperties.py @@ -225,13 +225,15 @@ class SoftwareProperties(SimpleGladeApp): self.treeview_sources.set_model(self.source_store) cell_desc = gtk.CellRendererText() - #cell_desc.set_property("xpad", 10) - #cell_desc.set_property("ypad", 10) + cell_desc.set_property("xpad", 2) + cell_desc.set_property("ypad", 2) col_desc = gtk.TreeViewColumn(_("Software Channel"), cell_desc, markup=COLUMN_DESC) - col_desc.set_max_width(500) + col_desc.set_max_width(1000) cell_toggle = gtk.CellRendererToggle() + cell_toggle.set_property("xpad", 2) + cell_toggle.set_property("ypad", 2) cell_toggle.connect('toggled', self.on_channel_toggled) col_active = gtk.TreeViewColumn(_("Active"), cell_toggle, active=COLUMN_ACTIVE) @@ -265,12 +267,7 @@ class SoftwareProperties(SimpleGladeApp): for source in self.sourceslist.list: if source.invalid: continue - (nice_type, nice_dist, nice_comps, special) = self.matcher.match(source) - print "match: %s %s" % (source.dist, special) - - contents = "<b>%s</b>%s" % (nice_dist, nice_comps) - if source.type == "deb-src": - contents = "<b>%s</b> - %s %s" % (nice_dist, nice_type, nice_comps) + contents = self.sourceslist.render_source(source) self.source_store.append([not source.disabled, contents, source]) def reload_keyslist(self): |
