From 4c1ebc7ca73f4ee069dc471a395073ba9a8ce00e Mon Sep 17 00:00:00 2001 From: Cristiana Voicu Date: Mon, 21 Jan 2013 16:50:40 +0200 Subject: bitbake: hob: progress bar changed to busy cursor when you open log file -the first implementation for this bug used a progress bar, that is shown during open file process; it revelead that the progress bar stops earlier -now I have implemented using gtk.show_uri() method, that shows itself a busy cursor when it opens a file; -deleted the code for the first implementation [YOCTO #2997] (Bitbake rev: 09d1c4c2db124104b9da460547b20a2c2ff07bb3) Signed-off-by: Cristiana Voicu Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/builddetailspage.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'bitbake/lib/bb/ui/crumbs/builddetailspage.py') diff --git a/bitbake/lib/bb/ui/crumbs/builddetailspage.py b/bitbake/lib/bb/ui/crumbs/builddetailspage.py index 64e758d7f4..171a7a68ed 100755 --- a/bitbake/lib/bb/ui/crumbs/builddetailspage.py +++ b/bitbake/lib/bb/ui/crumbs/builddetailspage.py @@ -30,8 +30,6 @@ from bb.ui.crumbs.runningbuild import RunningBuildTreeView from bb.ui.crumbs.runningbuild import BuildFailureTreeView from bb.ui.crumbs.hobpages import HobPage from bb.ui.crumbs.hobcolor import HobColors -from bb.ui.crumbs.hobthreads import OpeningLogThread -from bb.ui.crumbs.hig.openinglogdialog import OpeningLogDialog class BuildConfigurationTreeView(gtk.TreeView): def __init__ (self): @@ -431,18 +429,8 @@ class BuildDetailsPage (HobPage): def open_log_button_clicked_cb(self, button, log_file): if log_file: - self.stop = False - dialog = OpeningLogDialog(title = "Opening Log", - parent = None, - flags = gtk.DIALOG_MODAL - | gtk.DIALOG_DESTROY_WITH_PARENT - | gtk.DIALOG_NO_SEPARATOR) - #create a thread to open log file - background = OpeningLogThread(dialog, log_file, self) - background.start() - response = dialog.run() - self.stop = True - background.join() + log_file = "file:///" + log_file + gtk.show_uri(screen=button.get_screen(), uri=log_file, timestamp=0) def failure_activate_file_bug_link_cb(self, button): button.child.emit('activate-link', "http://bugzilla.yoctoproject.org") -- cgit v1.2.3-54-g00ecf