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/packageselectionpage.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/packageselectionpage.py')
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/packageselectionpage.py | 16 |
1 files changed, 2 insertions, 14 deletions
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 | |||
26 | from bb.ui.crumbs.hobwidget import HobViewTable, HobNotebook, HobAltButton, HobButton | 26 | from bb.ui.crumbs.hobwidget import HobViewTable, HobNotebook, HobAltButton, HobButton |
27 | from bb.ui.crumbs.hoblistmodel import PackageListModel | 27 | from bb.ui.crumbs.hoblistmodel import PackageListModel |
28 | from bb.ui.crumbs.hobpages import HobPage | 28 | from bb.ui.crumbs.hobpages import HobPage |
29 | from bb.ui.crumbs.hobthreads import OpeningLogThread | ||
30 | from bb.ui.crumbs.hig.openinglogdialog import OpeningLogDialog | ||
31 | 29 | ||
32 | # | 30 | # |
33 | # PackageSelectionPage | 31 | # PackageSelectionPage |
@@ -169,18 +167,8 @@ class PackageSelectionPage (HobPage): | |||
169 | 167 | ||
170 | def open_log_clicked_cb(self, button, log_file): | 168 | def open_log_clicked_cb(self, button, log_file): |
171 | if log_file: | 169 | if log_file: |
172 | self.stop = False | 170 | log_file = "file:///" + log_file |
173 | dialog = OpeningLogDialog(title = "Opening Log", | 171 | gtk.show_uri(screen=button.get_screen(), uri=log_file, timestamp=0) |
174 | parent = None, | ||
175 | flags = gtk.DIALOG_MODAL | ||
176 | | gtk.DIALOG_DESTROY_WITH_PARENT | ||
177 | | gtk.DIALOG_NO_SEPARATOR) | ||
178 | #create a thread to open log file | ||
179 | background = OpeningLogThread(dialog, log_file, self) | ||
180 | background.start() | ||
181 | response = dialog.run() | ||
182 | self.stop = True | ||
183 | background.join() | ||
184 | 172 | ||
185 | def show_page(self, log_file): | 173 | def show_page(self, log_file): |
186 | children = self.button_box.get_children() or [] | 174 | children = self.button_box.get_children() or [] |