* [PATCH] hob: rename 'View log' to 'Open log'
@ 2012-09-14 9:58 Constantin Musca
2012-09-20 9:30 ` Richard Purdie
0 siblings, 1 reply; 2+ messages in thread
From: Constantin Musca @ 2012-09-14 9:58 UTC (permalink / raw)
To: bitbake-devel; +Cc: Constantin Musca
Rename all the 'View log' buttons to 'Open log' for
consistency.
[YOCTO #3045]
---
bitbake/lib/bb/ui/crumbs/imagedetailspage.py | 12 ++++++------
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 cb3ca86..1d26ad6 100755
--- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
+++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
@@ -249,12 +249,12 @@ class ImageDetailsPage (HobPage):
view_files_button = HobAltButton("View files")
view_files_button.connect("clicked", self.view_files_clicked_cb, image_addr)
view_files_button.set_tooltip_text("Open the directory containing the image files")
- view_log_button = None
+ open_log_button = None
if log_file:
- view_log_button = HobAltButton("View log")
- view_log_button.connect("clicked", self.view_log_clicked_cb, log_file)
- view_log_button.set_tooltip_text("Open the building log files")
- self.image_detail = self.DetailBox(varlist=varlist, vallist=vallist, button=view_files_button, button2=view_log_button)
+ open_log_button = HobAltButton("Open log")
+ open_log_button.connect("clicked", self.open_log_clicked_cb, log_file)
+ open_log_button.set_tooltip_text("Open the build's log file")
+ self.image_detail = self.DetailBox(varlist=varlist, vallist=vallist, button=view_files_button, button2=open_log_button)
self.box_group_area.pack_start(self.image_detail, expand=False, fill=True)
# The default kernel box for the qemu images
@@ -333,7 +333,7 @@ class ImageDetailsPage (HobPage):
def view_files_clicked_cb(self, button, image_addr):
subprocess.call("xdg-open /%s" % image_addr, shell=True)
- def view_log_clicked_cb(self, button, log_file):
+ def open_log_clicked_cb(self, button, log_file):
if log_file:
os.system("xdg-open /%s" % log_file)
diff --git a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
index e3d35ef..edbafbd 100755
--- a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
@@ -165,7 +165,7 @@ class PackageSelectionPage (HobPage):
if binb:
self.builder.show_binb_dialog(binb)
- def view_log_clicked_cb(self, button, log_file):
+ def open_log_clicked_cb(self, button, log_file):
if log_file:
os.system("xdg-open /%s" % log_file)
@@ -173,13 +173,13 @@ class PackageSelectionPage (HobPage):
children = self.button_box.get_children() or []
for child in children:
self.button_box.remove(child)
- # re-packed the buttons as request, add the 'view log' button if build success
+ # re-packed the buttons as request, add the 'open log' button if build success
self.button_box.pack_end(self.build_image_button, expand=False, fill=False)
if log_file:
- view_log_button = HobAltButton("View log")
- view_log_button.connect("clicked", self.view_log_clicked_cb, log_file)
- view_log_button.set_tooltip_text("Open the building log files")
- self.button_box.pack_end(view_log_button, expand=False, fill=False)
+ open_log_button = HobAltButton("Open log")
+ open_log_button.connect("clicked", self.open_log_clicked_cb, log_file)
+ open_log_button.set_tooltip_text("Open the build's log file")
+ self.button_box.pack_end(open_log_button, expand=False, fill=False)
self.button_box.pack_end(self.back_button, expand=False, fill=False)
self.show_all()
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] hob: rename 'View log' to 'Open log'
2012-09-14 9:58 [PATCH] hob: rename 'View log' to 'Open log' Constantin Musca
@ 2012-09-20 9:30 ` Richard Purdie
0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2012-09-20 9:30 UTC (permalink / raw)
To: Constantin Musca; +Cc: bitbake-devel
On Fri, 2012-09-14 at 12:58 +0300, Constantin Musca wrote:
> Rename all the 'View log' buttons to 'Open log' for
> consistency.
>
> [YOCTO #3045]
> ---
> bitbake/lib/bb/ui/crumbs/imagedetailspage.py | 12 ++++++------
> bitbake/lib/bb/ui/crumbs/packageselectionpage.py | 12 ++++++------
> 2 files changed, 12 insertions(+), 12 deletions(-)
Merged to master, thanks.
Richard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-20 9:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-14 9:58 [PATCH] hob: rename 'View log' to 'Open log' Constantin Musca
2012-09-20 9:30 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox