mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 00:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
9df6a793cb
commit
ceee95efb1
@@ -185,7 +185,8 @@ class ImageDetailsPage (HobPage):
|
||||
image_table.set_model(self.image_store)
|
||||
image_size = self._size_to_string(os.stat(os.path.join(image_addr, image_names[0])).st_size)
|
||||
image_table.connect("toggled", self.toggled_cb)
|
||||
view_files_button = gtk.LinkButton("file://%s" % image_addr, "View files")
|
||||
view_files_button = HobAltButton("View files")
|
||||
view_files_button.connect("clicked", self.view_files_clicked_cb, image_addr)
|
||||
self.box_group_area.pack_start(self.DetailBox(widget=image_table, button=view_files_button), expand=True, fill=True)
|
||||
|
||||
# Machine, Base image and Layers
|
||||
@@ -239,6 +240,9 @@ class ImageDetailsPage (HobPage):
|
||||
|
||||
self.show_all()
|
||||
|
||||
def view_files_clicked_cb(self, button, image_addr):
|
||||
os.system("xdg-open /%s" % image_addr)
|
||||
|
||||
def refresh_package_detail_box(self, image_size):
|
||||
self.package_detail.update_line_widgets("Total image size: ", image_size)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user