summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/builddetailspage.py
diff options
context:
space:
mode:
authorCristiana Voicu <cristiana.voicu@intel.com>2013-01-21 16:50:40 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-21 19:05:31 +0000
commit4c1ebc7ca73f4ee069dc471a395073ba9a8ce00e (patch)
treec391972b3709b3d551ab46ea677acdfc959de35e /bitbake/lib/bb/ui/crumbs/builddetailspage.py
parenteb9d31db70161415ad3bbe8e865aafccdebb5a8d (diff)
downloadpoky-4c1ebc7ca73f4ee069dc471a395073ba9a8ce00e.tar.gz
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 <cristiana.voicu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/builddetailspage.py')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/builddetailspage.py16
1 files changed, 2 insertions, 14 deletions
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
30from bb.ui.crumbs.runningbuild import BuildFailureTreeView 30from bb.ui.crumbs.runningbuild import BuildFailureTreeView
31from bb.ui.crumbs.hobpages import HobPage 31from bb.ui.crumbs.hobpages import HobPage
32from bb.ui.crumbs.hobcolor import HobColors 32from bb.ui.crumbs.hobcolor import HobColors
33from bb.ui.crumbs.hobthreads import OpeningLogThread
34from bb.ui.crumbs.hig.openinglogdialog import OpeningLogDialog
35 33
36class BuildConfigurationTreeView(gtk.TreeView): 34class BuildConfigurationTreeView(gtk.TreeView):
37 def __init__ (self): 35 def __init__ (self):
@@ -431,18 +429,8 @@ class BuildDetailsPage (HobPage):
431 429
432 def open_log_button_clicked_cb(self, button, log_file): 430 def open_log_button_clicked_cb(self, button, log_file):
433 if log_file: 431 if log_file:
434 self.stop = False 432 log_file = "file:///" + log_file
435 dialog = OpeningLogDialog(title = "Opening Log", 433 gtk.show_uri(screen=button.get_screen(), uri=log_file, timestamp=0)
436 parent = None,
437 flags = gtk.DIALOG_MODAL
438 | gtk.DIALOG_DESTROY_WITH_PARENT
439 | gtk.DIALOG_NO_SEPARATOR)
440 #create a thread to open log file
441 background = OpeningLogThread(dialog, log_file, self)
442 background.start()
443 response = dialog.run()
444 self.stop = True
445 background.join()
446 434
447 def failure_activate_file_bug_link_cb(self, button): 435 def failure_activate_file_bug_link_cb(self, button):
448 button.child.emit('activate-link', "http://bugzilla.yoctoproject.org") 436 button.child.emit('activate-link', "http://bugzilla.yoctoproject.org")