diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-11-11 10:13:08 +0000 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-12-08 20:06:03 -0700 |
commit | 9d7dac26f24327022b410f178feaca8ac1f0eaf5 (patch) | |
tree | 8321210a8bdf6d9ce5061ae800a268bb37b9e9e8 /lib/bb/ui | |
parent | 6c086dab25e690fcae0bf7d42ea4e440ce3b9722 (diff) | |
download | bitbake-9d7dac26f24327022b410f178feaca8ac1f0eaf5.tar.gz |
bitbake/crumbs: Fix crumbs UI for bitbake event class name changes
Some of the events we where trying to look for have had their class names
changed, fix these references.
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'lib/bb/ui')
-rw-r--r-- | lib/bb/ui/crumbs/runningbuild.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/bb/ui/crumbs/runningbuild.py b/lib/bb/ui/crumbs/runningbuild.py index b4416ecbb..6f77b83c6 100644 --- a/lib/bb/ui/crumbs/runningbuild.py +++ b/lib/bb/ui/crumbs/runningbuild.py @@ -67,11 +67,12 @@ class RunningBuild (gobject.GObject): (package, task) = self.pids_to_task[pid] parent = self.tasks_to_iter[(package, task)] - if isinstance(event, bb.msg.Msg): + if isinstance(event, bb.msg.MsgBase): + # Set a pretty icon for the message based on it's type. if isinstance(event, bb.msg.MsgWarn): icon = "dialog-warning" - elif isinstance(event, bb.msg.MsgErr): + elif isinstance(event, bb.msg.MsgError): icon = "dialog-error" else: icon = None @@ -128,7 +129,7 @@ class RunningBuild (gobject.GObject): # Mark this task as active. self.model.set(i, self.model.COL_ICON, "gtk-execute") - elif isinstance(event, bb.build.Task): + elif isinstance(event, bb.build.TaskBase): if isinstance(event, bb.build.TaskFailed): # Mark the task as failed |