summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <egon@top>2005-12-12 11:56:46 +0100
committerMichael Vogt <egon@top>2005-12-12 11:56:46 +0100
commit333fa1f25afbfa3e634baaa1da5936ee6dd6a83d (patch)
treef29358526ae687310be7c8c35efeedd23fabd85a
parentea1b15e8b5ebc46ccb93924e02af40f2b96dc6ad (diff)
downloadpython-apt-333fa1f25afbfa3e634baaa1da5936ee6dd6a83d.tar.gz
* [codecleanup] treeview1 -> treeview_sources
-rw-r--r--SoftwareProperties/SoftwareProperties.py8
-rw-r--r--data/SoftwareProperties.glade4
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 @@
<widget class="GtkWindow" id="window_main">
<property name="border_width">6</property>
- <property name="width_request">500</property>
+ <property name="width_request">550</property>
<property name="height_request">400</property>
<property name="visible">True</property>
<property name="title" translatable="yes">Software Preferences</property>
@@ -81,7 +81,7 @@
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<child>
- <widget class="GtkTreeView" id="treeview1">
+ <widget class="GtkTreeView" id="treeview_sources">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="headers_visible">False</property>