diff options
author | Joshua Lock <josh@linux.intel.com> | 2012-03-26 20:17:17 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-28 16:49:18 +0100 |
commit | ceee95efb1590b63a397bc680f1391d4c494fdd9 (patch) | |
tree | 693332c31440539b90c0bbf0e61c1d9bff8e657b /bitbake/lib/bb | |
parent | 9df6a793cbeaa4b658afa3873e61e41e25f569fa (diff) | |
download | poky-ceee95efb1590b63a397bc680f1391d4c494fdd9.tar.gz |
lib/bb/ui/crumbs/imagedetails: use secondary button style for 'View files'
Use HobAltButton, rather than gtk.LinkButton, for the 'View files'
button.
Use xdg-open to display the folders contents.
(From Poky rev: 22955b47ac485e0d069ddd8301a11658d76bcfee)
(Bitbake rev: 9647c188c0d06ec045c15281eae785e935c25d2b)
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-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 | ||