* [PATCH] bitbake: hob/hobwidget: "Brought in by" column is now displayed correctly
@ 2012-10-16 8:52 Cristian Iorga
2012-10-24 20:10 ` Richard Purdie
0 siblings, 1 reply; 2+ messages in thread
From: Cristian Iorga @ 2012-10-16 8:52 UTC (permalink / raw)
To: bitbake-devel
In "Edit Recipes" and "Edit packages" pages, the "Brought in by"
column is displayed correctly, with the right number of additional
packages and a proper title.
Fixes [YOCTO #2195].
Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
---
bitbake/lib/bb/ui/crumbs/hobwidget.py | 10 ++++++++--
bitbake/lib/bb/ui/crumbs/packageselectionpage.py | 2 +-
bitbake/lib/bb/ui/crumbs/recipeselectionpage.py | 2 +-
3 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/bitbake/lib/bb/ui/crumbs/hobwidget.py b/bitbake/lib/bb/ui/crumbs/hobwidget.py
index 28dc375..65de9df 100644
--- a/bitbake/lib/bb/ui/crumbs/hobwidget.py
+++ b/bitbake/lib/bb/ui/crumbs/hobwidget.py
@@ -155,9 +155,15 @@ class HobViewTable (gtk.VBox):
bin = binb.split(', ')
total_no = len(bin)
if total_no > 1 and bin[0] == "User Selected":
- present_binb = bin[1] + ' (+' + str(total_no) + ')'
+ if total_no > 2:
+ present_binb = bin[1] + ' (+' + str(total_no - 1) + ')'
+ else:
+ present_binb = bin[1]
else:
- present_binb = bin[0] + ' (+' + str(total_no) + ')'
+ if total_no > 1:
+ present_binb = bin[0] + ' (+' + str(total_no - 1) + ')'
+ else:
+ present_binb = bin[0]
cell.set_property('text', present_binb)
else:
cell.set_property('text', "")
diff --git a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
index 6792fe0..d05b4a2 100755
--- a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
@@ -52,7 +52,7 @@ class PackageSelectionPage (HobPage):
'col_max' : 300,
'expand' : 'True'
}, {
- 'col_name' : 'Brought in by',
+ 'col_name' : 'Brought in by (+others)',
'col_id' : PackageListModel.COL_BINB,
'col_style': 'binb',
'col_min' : 100,
diff --git a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
index 8655c29..27872ca 100755
--- a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
@@ -52,7 +52,7 @@ class RecipeSelectionPage (HobPage):
'col_max' : 300,
'expand' : 'True'
}, {
- 'col_name' : 'Brought in by',
+ 'col_name' : 'Brought in by (+others)',
'col_id' : RecipeListModel.COL_BINB,
'col_style': 'binb',
'col_min' : 100,
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] bitbake: hob/hobwidget: "Brought in by" column is now displayed correctly
2012-10-16 8:52 [PATCH] bitbake: hob/hobwidget: "Brought in by" column is now displayed correctly Cristian Iorga
@ 2012-10-24 20:10 ` Richard Purdie
0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2012-10-24 20:10 UTC (permalink / raw)
To: Cristian Iorga; +Cc: bitbake-devel
On Tue, 2012-10-16 at 11:52 +0300, Cristian Iorga wrote:
> In "Edit Recipes" and "Edit packages" pages, the "Brought in by"
> column is displayed correctly, with the right number of additional
> packages and a proper title.
>
> Fixes [YOCTO #2195].
>
> Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
> ---
> bitbake/lib/bb/ui/crumbs/hobwidget.py | 10 ++++++++--
> bitbake/lib/bb/ui/crumbs/packageselectionpage.py | 2 +-
> bitbake/lib/bb/ui/crumbs/recipeselectionpage.py | 2 +-
> 3 files changed, 10 insertions(+), 4 deletions(-)
Merged to master, thanks.
Richard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-10-24 20:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-16 8:52 [PATCH] bitbake: hob/hobwidget: "Brought in by" column is now displayed correctly Cristian Iorga
2012-10-24 20:10 ` Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.