From 333fa1f25afbfa3e634baaa1da5936ee6dd6a83d Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 12 Dec 2005 11:56:46 +0100 Subject: * [codecleanup] treeview1 -> treeview_sources --- SoftwareProperties/SoftwareProperties.py | 8 ++++---- data/SoftwareProperties.glade | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/SoftwareProperties/SoftwareProperties.py b/SoftwareProperties/SoftwareProperties.py index e1faec07..6f053e35 100644 --- a/SoftwareProperties/SoftwareProperties.py +++ b/SoftwareProperties/SoftwareProperties.py @@ -89,7 +89,7 @@ class SoftwareProperties(SimpleGladeApp): def init_sourceslist(self): self.source_store = gtk.ListStore(str, bool, gobject.TYPE_PYOBJECT) - self.treeview1.set_model(self.source_store) + self.treeview_sources.set_model(self.source_store) tr = gtk.CellRendererText() tr.set_property("xpad", 10) @@ -98,7 +98,7 @@ class SoftwareProperties(SimpleGladeApp): source_col = gtk.TreeViewColumn("Description", tr, markup=LIST_MARKUP) source_col.set_max_width(500) - self.treeview1.append_column(source_col) + self.treeview_sources.append_column(source_col) self.sourceslist = aptsources.SourcesList() self.matcher = aptsources.SourceEntryMatcher() @@ -184,7 +184,7 @@ class SoftwareProperties(SimpleGladeApp): self.modified = True def on_edit_clicked(self, widget): - sel = self.treeview1.get_selection() + sel = self.treeview_sources.get_selection() (model, iter) = sel.get_selected() if not iter: return @@ -196,7 +196,7 @@ class SoftwareProperties(SimpleGladeApp): self.modified = True def on_remove_clicked(self, widget): - sel = self.treeview1.get_selection() + sel = self.treeview_sources.get_selection() (model, iter) = sel.get_selected() if iter: source = model.get_value(iter, LIST_ENTRY_OBJ) diff --git a/data/SoftwareProperties.glade b/data/SoftwareProperties.glade index 46c6727d..778930bb 100644 --- a/data/SoftwareProperties.glade +++ b/data/SoftwareProperties.glade @@ -5,7 +5,7 @@ 6 - 500 + 550 400 True Software Preferences @@ -81,7 +81,7 @@ GTK_CORNER_TOP_LEFT - + True True False -- cgit v1.2.3