summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-12-02 18:58:46 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-03 17:45:54 +0000
commit27ae6871db4f7282754be7d19eebeceb81f2f813 (patch)
treebd1d96f56e1b36aca409bb9e8bbc0455a9c30a4b /bitbake/lib/bb/ui
parent8a02406f1c1fa76bd43372a0f1936d0ebf71e668 (diff)
downloadpoky-27ae6871db4f7282754be7d19eebeceb81f2f813.tar.gz
bitbake: hob: name package files list variables appropriately
This treeview code was obviously copy-pasted from one of the config dialogs and the variables were never renamed. Rename them now to improve readability. (Bitbake rev: 93b3ddad4396d757d1d0c199ac168f8b1a205fe3) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hig/propertydialog.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hig/propertydialog.py b/bitbake/lib/bb/ui/crumbs/hig/propertydialog.py
index bc40741bf2..9ab7d75e14 100644
--- a/bitbake/lib/bb/ui/crumbs/hig/propertydialog.py
+++ b/bitbake/lib/bb/ui/crumbs/hig/propertydialog.py
@@ -187,17 +187,17 @@ class PropertyDialog(CrumbsDialog):
187 self.textWindow.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) 187 self.textWindow.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
188 self.textWindow.set_size_request(100, 170) 188 self.textWindow.set_size_request(100, 170)
189 189
190 sstatemirrors_store = gtk.ListStore(str) 190 packagefiles_store = gtk.ListStore(str)
191 191
192 self.sstatemirrors_tv = gtk.TreeView() 192 self.packagefiles_tv = gtk.TreeView()
193 self.sstatemirrors_tv.set_rules_hint(True) 193 self.packagefiles_tv.set_rules_hint(True)
194 self.sstatemirrors_tv.set_headers_visible(True) 194 self.packagefiles_tv.set_headers_visible(True)
195 self.textWindow.add(self.sstatemirrors_tv) 195 self.textWindow.add(self.packagefiles_tv)
196 196
197 self.cell1 = gtk.CellRendererText() 197 self.cell1 = gtk.CellRendererText()
198 col1 = gtk.TreeViewColumn('Package files', self.cell1) 198 col1 = gtk.TreeViewColumn('Package files', self.cell1)
199 col1.set_cell_data_func(self.cell1, self.regex_field) 199 col1.set_cell_data_func(self.cell1, self.regex_field)
200 self.sstatemirrors_tv.append_column(col1) 200 self.packagefiles_tv.append_column(col1)
201 201
202 for items in file_list.split(']'): 202 for items in file_list.split(']'):
203 if len(items) > 1: 203 if len(items) > 1:
@@ -223,15 +223,15 @@ class PropertyDialog(CrumbsDialog):
223 items = items[:len(items)/2] + "..." + items[len(items)/2+3:] 223 items = items[:len(items)/2] + "..." + items[len(items)/2+3:]
224 self.tooltip_items[items] = temp 224 self.tooltip_items[items] = temp
225 225
226 sstatemirrors_store.append([str(items)]) 226 packagefiles_store.append([str(items)])
227 227
228 228
229 self.sstatemirrors_tv.set_model(sstatemirrors_store) 229 self.packagefiles_tv.set_model(packagefiles_store)
230 230
231 tips = gtk.Tooltips() 231 tips = gtk.Tooltips()
232 tips.set_tip(self.sstatemirrors_tv, "") 232 tips.set_tip(self.packagefiles_tv, "")
233 self.sstatemirrors_tv.connect("motion-notify-event", self.treeViewTooltip, tips, 0) 233 self.packagefiles_tv.connect("motion-notify-event", self.treeViewTooltip, tips, 0)
234 self.sstatemirrors_tv.set_events(gtk.gdk.POINTER_MOTION_MASK) 234 self.packagefiles_tv.set_events(gtk.gdk.POINTER_MOTION_MASK)
235 235
236 self.vbox.add(self.textWindow) 236 self.vbox.add(self.textWindow)
237 237