diff options
author | Cristiana Voicu <cristiana.voicu@intel.com> | 2013-01-21 16:50:40 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-21 19:05:31 +0000 |
commit | 4c1ebc7ca73f4ee069dc471a395073ba9a8ce00e (patch) | |
tree | c391972b3709b3d551ab46ea677acdfc959de35e /bitbake/lib/bb/ui/crumbs/imagedetailspage.py | |
parent | eb9d31db70161415ad3bbe8e865aafccdebb5a8d (diff) | |
download | poky-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/imagedetailspage.py')
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/imagedetailspage.py | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py index 38fbaaaa33..1b60aa8ed5 100755 --- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py +++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py | |||
@@ -27,8 +27,6 @@ from bb.ui.crumbs.hobwidget import hic, HobViewTable, HobAltButton, HobButton | |||
27 | from bb.ui.crumbs.hobpages import HobPage | 27 | from bb.ui.crumbs.hobpages import HobPage |
28 | import subprocess | 28 | import subprocess |
29 | from bb.ui.crumbs.hig.crumbsdialog import CrumbsDialog | 29 | from bb.ui.crumbs.hig.crumbsdialog import CrumbsDialog |
30 | from bb.ui.crumbs.hobthreads import OpeningLogThread | ||
31 | from bb.ui.crumbs.hig.openinglogdialog import OpeningLogDialog | ||
32 | 30 | ||
33 | # | 31 | # |
34 | # ImageDetailsPage | 32 | # ImageDetailsPage |
@@ -407,18 +405,8 @@ class ImageDetailsPage (HobPage): | |||
407 | 405 | ||
408 | def open_log_clicked_cb(self, button, log_file): | 406 | def open_log_clicked_cb(self, button, log_file): |
409 | if log_file: | 407 | if log_file: |
410 | self.stop = False | 408 | log_file = "file:///" + log_file |
411 | dialog = OpeningLogDialog(title = "Opening Log", | 409 | gtk.show_uri(screen=button.get_screen(), uri=log_file, timestamp=0) |
412 | parent = None, | ||
413 | flags = gtk.DIALOG_MODAL | ||
414 | | gtk.DIALOG_DESTROY_WITH_PARENT | ||
415 | | gtk.DIALOG_NO_SEPARATOR) | ||
416 | #create a thread to open log file | ||
417 | background = OpeningLogThread(dialog, log_file, self) | ||
418 | background.start() | ||
419 | response = dialog.run() | ||
420 | self.stop = True | ||
421 | background.join() | ||
422 | 410 | ||
423 | def refresh_package_detail_box(self, image_size): | 411 | def refresh_package_detail_box(self, image_size): |
424 | self.package_detail.update_line_widgets("Total image size: ", image_size) | 412 | self.package_detail.update_line_widgets("Total image size: ", image_size) |