summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2012-04-06 16:02:22 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-11 00:04:42 +0100
commitdf64e7f884383068c25fca63126167d78944e731 (patch)
tree12ac15ec1b8478b2245b93dc07fce6457824464f /bitbake/lib/bb/ui/crumbs
parent4cf1aa5ae467f7f16ab7f641319bf2404e666dd0 (diff)
downloadpoky-df64e7f884383068c25fca63126167d78944e731.tar.gz
lib/bb/ui/crumbs/[recipe|package]selectionpage: fixed width Included col
Set the expand property on all columns other than the 'Included' column so that the included column remains at the max size set. (Bitbake rev: e1406d75c0643a2e65bb61649958e05e730fb332) Signed-off-by: Joshua Lock <josh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobwidget.py2
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/packageselectionpage.py23
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/recipeselectionpage.py36
3 files changed, 38 insertions, 23 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobwidget.py b/bitbake/lib/bb/ui/crumbs/hobwidget.py
index 006307b3bb..96894bf01c 100644
--- a/bitbake/lib/bb/ui/crumbs/hobwidget.py
+++ b/bitbake/lib/bb/ui/crumbs/hobwidget.py
@@ -127,6 +127,8 @@ class HobViewTable (gtk.VBox):
127 col.set_min_width(column['col_min']) 127 col.set_min_width(column['col_min'])
128 if 'col_max' in column.keys(): 128 if 'col_max' in column.keys():
129 col.set_max_width(column['col_max']) 129 col.set_max_width(column['col_max'])
130 if 'expand' in column.keys():
131 col.set_expand(True)
130 self.table_tree.append_column(col) 132 self.table_tree.append_column(col)
131 133
132 if (not 'col_style' in column.keys()) or column['col_style'] == 'text': 134 if (not 'col_style' in column.keys()) or column['col_style'] == 'text':
diff --git a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
index 78963f6914..b1a199c680 100755
--- a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
@@ -41,25 +41,28 @@ class PackageSelectionPage (HobPage):
41 'col_id' : PackageListModel.COL_NAME, 41 'col_id' : PackageListModel.COL_NAME,
42 'col_style': 'text', 42 'col_style': 'text',
43 'col_min' : 100, 43 'col_min' : 100,
44 'col_max' : 300 44 'col_max' : 300,
45 'expand' : 'True'
45 }, { 46 }, {
46 'col_name' : 'Brought in by', 47 'col_name' : 'Brought in by',
47 'col_id' : PackageListModel.COL_BINB, 48 'col_id' : PackageListModel.COL_BINB,
48 'col_style': 'binb', 49 'col_style': 'binb',
49 'col_min' : 100, 50 'col_min' : 100,
50 'col_max' : 350 51 'col_max' : 350,
52 'expand' : 'True'
51 }, { 53 }, {
52 'col_name' : 'Size', 54 'col_name' : 'Size',
53 'col_id' : PackageListModel.COL_SIZE, 55 'col_id' : PackageListModel.COL_SIZE,
54 'col_style': 'text', 56 'col_style': 'text',
55 'col_min' : 100, 57 'col_min' : 100,
56 'col_max' : 300 58 'col_max' : 300,
59 'expand' : 'True'
57 }, { 60 }, {
58 'col_name' : 'Included', 61 'col_name' : 'Included',
59 'col_id' : PackageListModel.COL_INC, 62 'col_id' : PackageListModel.COL_INC,
60 'col_style': 'check toggle', 63 'col_style': 'check toggle',
61 'col_min' : 50, 64 'col_min' : 100,
62 'col_max' : 50 65 'col_max' : 100
63 }] 66 }]
64 }, { 67 }, {
65 'name' : 'All packages', 68 'name' : 'All packages',
@@ -69,19 +72,21 @@ class PackageSelectionPage (HobPage):
69 'col_id' : PackageListModel.COL_NAME, 72 'col_id' : PackageListModel.COL_NAME,
70 'col_style': 'text', 73 'col_style': 'text',
71 'col_min' : 100, 74 'col_min' : 100,
72 'col_max' : 400 75 'col_max' : 400,
76 'expand' : 'True'
73 }, { 77 }, {
74 'col_name' : 'Size', 78 'col_name' : 'Size',
75 'col_id' : PackageListModel.COL_SIZE, 79 'col_id' : PackageListModel.COL_SIZE,
76 'col_style': 'text', 80 'col_style': 'text',
77 'col_min' : 100, 81 'col_min' : 100,
78 'col_max' : 500 82 'col_max' : 500,
83 'expand' : 'True'
79 }, { 84 }, {
80 'col_name' : 'Included', 85 'col_name' : 'Included',
81 'col_id' : PackageListModel.COL_INC, 86 'col_id' : PackageListModel.COL_INC,
82 'col_style': 'check toggle', 87 'col_style': 'check toggle',
83 'col_min' : 50, 88 'col_min' : 100,
84 'col_max' : 50 89 'col_max' : 100
85 }] 90 }]
86 } 91 }
87 ] 92 ]
diff --git a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
index 8314449eef..d70fe5284b 100755
--- a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
@@ -41,25 +41,28 @@ class RecipeSelectionPage (HobPage):
41 'col_id' : RecipeListModel.COL_NAME, 41 'col_id' : RecipeListModel.COL_NAME,
42 'col_style': 'text', 42 'col_style': 'text',
43 'col_min' : 100, 43 'col_min' : 100,
44 'col_max' : 400 44 'col_max' : 400,
45 'expand' : 'True'
45 }, { 46 }, {
46 'col_name' : 'Brought in by', 47 'col_name' : 'Brought in by',
47 'col_id' : RecipeListModel.COL_BINB, 48 'col_id' : RecipeListModel.COL_BINB,
48 'col_style': 'binb', 49 'col_style': 'binb',
49 'col_min' : 100, 50 'col_min' : 100,
50 'col_max' : 500 51 'col_max' : 500,
52 'expand' : 'True'
51 }, { 53 }, {
52 'col_name' : 'Group', 54 'col_name' : 'Group',
53 'col_id' : RecipeListModel.COL_GROUP, 55 'col_id' : RecipeListModel.COL_GROUP,
54 'col_style': 'text', 56 'col_style': 'text',
55 'col_min' : 100, 57 'col_min' : 100,
56 'col_max' : 300 58 'col_max' : 300,
59 'expand' : 'True'
57 }, { 60 }, {
58 'col_name' : 'Included', 61 'col_name' : 'Included',
59 'col_id' : RecipeListModel.COL_INC, 62 'col_id' : RecipeListModel.COL_INC,
60 'col_style': 'check toggle', 63 'col_style': 'check toggle',
61 'col_min' : 50, 64 'col_min' : 100,
62 'col_max' : 50 65 'col_max' : 100
63 }] 66 }]
64 }, { 67 }, {
65 'name' : 'All recipes', 68 'name' : 'All recipes',
@@ -69,25 +72,28 @@ class RecipeSelectionPage (HobPage):
69 'col_id' : RecipeListModel.COL_NAME, 72 'col_id' : RecipeListModel.COL_NAME,
70 'col_style': 'text', 73 'col_style': 'text',
71 'col_min' : 100, 74 'col_min' : 100,
72 'col_max' : 400 75 'col_max' : 400,
76 'expand' : 'True'
73 }, { 77 }, {
74 'col_name' : 'License', 78 'col_name' : 'License',
75 'col_id' : RecipeListModel.COL_LIC, 79 'col_id' : RecipeListModel.COL_LIC,
76 'col_style': 'text', 80 'col_style': 'text',
77 'col_min' : 100, 81 'col_min' : 100,
78 'col_max' : 400 82 'col_max' : 400,
83 'expand' : 'True'
79 }, { 84 }, {
80 'col_name' : 'Group', 85 'col_name' : 'Group',
81 'col_id' : RecipeListModel.COL_GROUP, 86 'col_id' : RecipeListModel.COL_GROUP,
82 'col_style': 'text', 87 'col_style': 'text',
83 'col_min' : 100, 88 'col_min' : 100,
84 'col_max' : 400 89 'col_max' : 400,
90 'expand' : 'True'
85 }, { 91 }, {
86 'col_name' : 'Included', 92 'col_name' : 'Included',
87 'col_id' : RecipeListModel.COL_INC, 93 'col_id' : RecipeListModel.COL_INC,
88 'col_style': 'check toggle', 94 'col_style': 'check toggle',
89 'col_min' : 50, 95 'col_min' : 100,
90 'col_max' : 50 96 'col_max' : 100
91 }] 97 }]
92 }, { 98 }, {
93 'name' : 'Tasks', 99 'name' : 'Tasks',
@@ -97,19 +103,21 @@ class RecipeSelectionPage (HobPage):
97 'col_id' : RecipeListModel.COL_NAME, 103 'col_id' : RecipeListModel.COL_NAME,
98 'col_style': 'text', 104 'col_style': 'text',
99 'col_min' : 100, 105 'col_min' : 100,
100 'col_max' : 400 106 'col_max' : 400,
107 'expand' : 'True'
101 }, { 108 }, {
102 'col_name' : 'Description', 109 'col_name' : 'Description',
103 'col_id' : RecipeListModel.COL_DESC, 110 'col_id' : RecipeListModel.COL_DESC,
104 'col_style': 'text', 111 'col_style': 'text',
105 'col_min' : 100, 112 'col_min' : 100,
106 'col_max' : 400 113 'col_max' : 400,
114 'expand' : 'True'
107 }, { 115 }, {
108 'col_name' : 'Included', 116 'col_name' : 'Included',
109 'col_id' : RecipeListModel.COL_INC, 117 'col_id' : RecipeListModel.COL_INC,
110 'col_style': 'check toggle', 118 'col_style': 'check toggle',
111 'col_min' : 50, 119 'col_min' : 100,
112 'col_max' : 50 120 'col_max' : 100
113 }] 121 }]
114 } 122 }
115 ] 123 ]