summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui
diff options
context:
space:
mode:
authorConstantin Musca <constantinx.musca@intel.com>2012-09-14 12:58:53 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-20 10:29:33 +0100
commit8c82b12d1ccf7e7a79e5ee91dd362619694c4520 (patch)
tree281223f115b404c46cde693a8c9fa5bd65807358 /bitbake/lib/bb/ui
parent749f4f67444c7be7fe7aac0189776fd540975e09 (diff)
downloadpoky-8c82b12d1ccf7e7a79e5ee91dd362619694c4520.tar.gz
bitbake: hob: rename 'View log' to 'Open log'
Rename all the 'View log' buttons to 'Open log' for consistency. [YOCTO #3045] (Bitbake rev: 7bc9b0c1c2544b494959b13ac79ac3e52edb4fe3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/imagedetailspage.py12
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/packageselectionpage.py12
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