gobject.GObject.__init__ (self)
self.model = RunningBuildModel()
- def handle_event (self, event):
+ def handle_event (self, event, pbar=None):
# Handle an event from the event queue, this may result in updating
# the model and thus the UI. Or it may be to tell us that the build
# has finished successfully (or not, as the case may be.)
else:
self.emit ("build-succeeded")
+ elif isinstance(event, bb.event.ParseProgress) and pbar:
+ x = event.sofar
+ y = event.total
+ if x == y:
+ pbar.hide()
+ return
+ pbar.update(x, y)
+
class RunningBuildTreeView (gtk.TreeView):
def __init__ (self):
gtk.TreeView.__init__ (self)