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/packageselectionpage.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'bitbake/lib/bb/ui/crumbs/packageselectionpage.py') diff --git a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py index 2da9277bf9..1868ebeddd 100755 --- a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py +++ b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py @@ -26,8 +26,6 @@ from bb.ui.crumbs.hobcolor import HobColors from bb.ui.crumbs.hobwidget import HobViewTable, HobNotebook, HobAltButton, HobButton from bb.ui.crumbs.hoblistmodel import PackageListModel from bb.ui.crumbs.hobpages import HobPage -from bb.ui.crumbs.hobthreads import OpeningLogThread -from bb.ui.crumbs.hig.openinglogdialog import OpeningLogDialog # # PackageSelectionPage @@ -169,18 +167,8 @@ class PackageSelectionPage (HobPage): def open_log_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 show_page(self, log_file): children = self.button_box.get_children() or [] -- cgit v1.2.3-54-g00ecf