diff options
| -rwxr-xr-x | bitbake/lib/bb/ui/crumbs/imagedetailspage.py | 12 | ||||
| -rwxr-xr-x | bitbake/lib/bb/ui/crumbs/packageselectionpage.py | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py index ed8c7ac963..146feb03ee 100755 --- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py +++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py | |||
| @@ -249,12 +249,12 @@ class ImageDetailsPage (HobPage): | |||
| 249 | view_files_button = HobAltButton("View files") | 249 | view_files_button = HobAltButton("View files") |
| 250 | view_files_button.connect("clicked", self.view_files_clicked_cb, image_addr) | 250 | view_files_button.connect("clicked", self.view_files_clicked_cb, image_addr) |
| 251 | view_files_button.set_tooltip_text("Open the directory containing the image files") | 251 | view_files_button.set_tooltip_text("Open the directory containing the image files") |
| 252 | view_log_button = None | 252 | open_log_button = None |
| 253 | if log_file: | 253 | if log_file: |
| 254 | view_log_button = HobAltButton("View log") | 254 | open_log_button = HobAltButton("Open log") |
| 255 | view_log_button.connect("clicked", self.view_log_clicked_cb, log_file) | 255 | open_log_button.connect("clicked", self.open_log_clicked_cb, log_file) |
| 256 | view_log_button.set_tooltip_text("Open the building log files") | 256 | open_log_button.set_tooltip_text("Open the build's log file") |
| 257 | self.image_detail = self.DetailBox(varlist=varlist, vallist=vallist, button=view_files_button, button2=view_log_button) | 257 | self.image_detail = self.DetailBox(varlist=varlist, vallist=vallist, button=view_files_button, button2=open_log_button) |
| 258 | self.box_group_area.pack_start(self.image_detail, expand=False, fill=True) | 258 | self.box_group_area.pack_start(self.image_detail, expand=False, fill=True) |
| 259 | 259 | ||
| 260 | # The default kernel box for the qemu images | 260 | # The default kernel box for the qemu images |
| @@ -333,7 +333,7 @@ class ImageDetailsPage (HobPage): | |||
| 333 | def view_files_clicked_cb(self, button, image_addr): | 333 | def view_files_clicked_cb(self, button, image_addr): |
| 334 | subprocess.call("xdg-open /%s" % image_addr, shell=True) | 334 | subprocess.call("xdg-open /%s" % image_addr, shell=True) |
| 335 | 335 | ||
| 336 | def view_log_clicked_cb(self, button, log_file): | 336 | def open_log_clicked_cb(self, button, log_file): |
| 337 | if log_file: | 337 | if log_file: |
| 338 | os.system("xdg-open /%s" % log_file) | 338 | os.system("xdg-open /%s" % log_file) |
| 339 | 339 | ||
diff --git a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py index e3d35effe4..edbafbd3a5 100755 --- a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py +++ b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py | |||
| @@ -165,7 +165,7 @@ class PackageSelectionPage (HobPage): | |||
| 165 | if binb: | 165 | if binb: |
| 166 | self.builder.show_binb_dialog(binb) | 166 | self.builder.show_binb_dialog(binb) |
| 167 | 167 | ||
| 168 | def view_log_clicked_cb(self, button, log_file): | 168 | def open_log_clicked_cb(self, button, log_file): |
| 169 | if log_file: | 169 | if log_file: |
| 170 | os.system("xdg-open /%s" % log_file) | 170 | os.system("xdg-open /%s" % log_file) |
| 171 | 171 | ||
| @@ -173,13 +173,13 @@ class PackageSelectionPage (HobPage): | |||
| 173 | children = self.button_box.get_children() or [] | 173 | children = self.button_box.get_children() or [] |
| 174 | for child in children: | 174 | for child in children: |
| 175 | self.button_box.remove(child) | 175 | self.button_box.remove(child) |
| 176 | # re-packed the buttons as request, add the 'view log' button if build success | 176 | # re-packed the buttons as request, add the 'open log' button if build success |
| 177 | self.button_box.pack_end(self.build_image_button, expand=False, fill=False) | 177 | self.button_box.pack_end(self.build_image_button, expand=False, fill=False) |
| 178 | if log_file: | 178 | if log_file: |
| 179 | view_log_button = HobAltButton("View log") | 179 | open_log_button = HobAltButton("Open log") |
| 180 | view_log_button.connect("clicked", self.view_log_clicked_cb, log_file) | 180 | open_log_button.connect("clicked", self.open_log_clicked_cb, log_file) |
| 181 | view_log_button.set_tooltip_text("Open the building log files") | 181 | open_log_button.set_tooltip_text("Open the build's log file") |
| 182 | self.button_box.pack_end(view_log_button, expand=False, fill=False) | 182 | self.button_box.pack_end(open_log_button, expand=False, fill=False) |
| 183 | self.button_box.pack_end(self.back_button, expand=False, fill=False) | 183 | self.button_box.pack_end(self.back_button, expand=False, fill=False) |
| 184 | self.show_all() | 184 | self.show_all() |
| 185 | 185 | ||
