diff options
-rwxr-xr-x | bitbake/lib/bb/ui/crumbs/imagedetailspage.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py index 5a5ec3f76a..276281d8a8 100755 --- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py +++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py | |||
@@ -185,7 +185,8 @@ class ImageDetailsPage (HobPage): | |||
185 | image_table.set_model(self.image_store) | 185 | image_table.set_model(self.image_store) |
186 | image_size = self._size_to_string(os.stat(os.path.join(image_addr, image_names[0])).st_size) | 186 | image_size = self._size_to_string(os.stat(os.path.join(image_addr, image_names[0])).st_size) |
187 | image_table.connect("toggled", self.toggled_cb) | 187 | image_table.connect("toggled", self.toggled_cb) |
188 | view_files_button = gtk.LinkButton("file://%s" % image_addr, "View files") | 188 | view_files_button = HobAltButton("View files") |
189 | view_files_button.connect("clicked", self.view_files_clicked_cb, image_addr) | ||
189 | self.box_group_area.pack_start(self.DetailBox(widget=image_table, button=view_files_button), expand=True, fill=True) | 190 | self.box_group_area.pack_start(self.DetailBox(widget=image_table, button=view_files_button), expand=True, fill=True) |
190 | 191 | ||
191 | # Machine, Base image and Layers | 192 | # Machine, Base image and Layers |
@@ -239,6 +240,9 @@ class ImageDetailsPage (HobPage): | |||
239 | 240 | ||
240 | self.show_all() | 241 | self.show_all() |
241 | 242 | ||
243 | def view_files_clicked_cb(self, button, image_addr): | ||
244 | os.system("xdg-open /%s" % image_addr) | ||
245 | |||
242 | def refresh_package_detail_box(self, image_size): | 246 | def refresh_package_detail_box(self, image_size): |
243 | self.package_detail.update_line_widgets("Total image size: ", image_size) | 247 | self.package_detail.update_line_widgets("Total image size: ", image_size) |
244 | 248 | ||