summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/runningbuild.py
diff options
context:
space:
mode:
authorLiming An <limingx.l.an@intel.com>2012-03-26 14:04:20 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-28 16:49:18 +0100
commit26cce34e4dd0171d06407fb417577e67db3a5dc9 (patch)
tree50b8e03177ccea80d481e5f63e9fb88b10bbd00f /bitbake/lib/bb/ui/crumbs/runningbuild.py
parent044376692d231f016245844f172f7824f43f3187 (diff)
downloadpoky-26cce34e4dd0171d06407fb417577e67db3a5dc9.tar.gz
Hob: change the implementation way about get config info for building log
Make the building log config information to get from the bitbake parameters directly, and then cancel the old way of filting the building log on running [YOCTO #2144] (From Poky rev: b52025a0fe2ca65e4d8549b1b90f5813b0c2e39f) (Bitbake rev: 983f8848da0be02dadb1bb6530ff736325d014ba) Signed-off-by: Liming An <limingx.l.an@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/runningbuild.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/runningbuild.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/runningbuild.py b/bitbake/lib/bb/ui/crumbs/runningbuild.py
index aecfadfb34..102cc7dc86 100644
--- a/bitbake/lib/bb/ui/crumbs/runningbuild.py
+++ b/bitbake/lib/bb/ui/crumbs/runningbuild.py
@@ -42,14 +42,6 @@ class RunningBuildModel (gtk.TreeStore):
42 gobject.TYPE_STRING, 42 gobject.TYPE_STRING,
43 gobject.TYPE_INT) 43 gobject.TYPE_INT)
44 44
45 def config_model_filter(self, model, it):
46 msg = model.get(it, self.COL_MESSAGE)[0]
47 if not msg or type(msg) != str:
48 return False
49 if msg.startswith("\nOE Build Configuration:\n"):
50 return True
51 return False
52
53 def failure_model_filter(self, model, it): 45 def failure_model_filter(self, model, it):
54 color = model.get(it, self.COL_COLOR)[0] 46 color = model.get(it, self.COL_COLOR)[0]
55 if not color: 47 if not color:
@@ -58,11 +50,6 @@ class RunningBuildModel (gtk.TreeStore):
58 return True 50 return True
59 return False 51 return False
60 52
61 def config_model(self):
62 model = self.filter_new()
63 model.set_visible_func(self.config_model_filter)
64 return model
65
66 def failure_model(self): 53 def failure_model(self):
67 model = self.filter_new() 54 model = self.filter_new()
68 model.set_visible_func(self.failure_model_filter) 55 model.set_visible_func(self.failure_model_filter)
@@ -75,7 +62,6 @@ class RunningBuildModel (gtk.TreeStore):
75 def close_task_refresh(self): 62 def close_task_refresh(self):
76 self.foreach(self.foreach_cell_func, None) 63 self.foreach(self.foreach_cell_func, None)
77 64
78
79class RunningBuild (gobject.GObject): 65class RunningBuild (gobject.GObject):
80 __gsignals__ = { 66 __gsignals__ = {
81 'build-started' : (gobject.SIGNAL_RUN_LAST, 67 'build-started' : (gobject.SIGNAL_RUN_LAST,
@@ -422,25 +408,6 @@ class RunningBuildTreeView (gtk.TreeView):
422 408
423 self._add_to_clipboard(message) 409 self._add_to_clipboard(message)
424 410
425
426class BuildConfigurationTreeView(gtk.TreeView):
427
428 def __init__ (self):
429 gtk.TreeView.__init__(self)
430 self.set_rules_hint(False)
431 self.set_headers_visible(False)
432 self.set_property("hover-expand", True)
433 self.get_selection().set_mode(gtk.SELECTION_SINGLE)
434
435 # The message of the build.
436 self.message_renderer = HobWarpCellRendererText (col_number=0)
437 self.message_column = gtk.TreeViewColumn ("Message", self.message_renderer, text=RunningBuildModel.COL_MESSAGE, background=RunningBuildModel.COL_COLOR)
438 font = self.get_style().font_desc
439 font.set_size(pango.SCALE * 13)
440 self.message_renderer.set_property('font-desc', font)
441 self.append_column (self.message_column)
442
443
444class BuildFailureTreeView(gtk.TreeView): 411class BuildFailureTreeView(gtk.TreeView):
445 412
446 def __init__ (self): 413 def __init__ (self):