summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-03-15 14:56:45 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-15 10:35:18 +0000
commit602adb0e5828144d44d93cf05a800db10a47c3ab (patch)
treed0c8c833959ad1163eed9bd9a3d4121b713f60c8 /bitbake/lib/bb/ui/crumbs
parent7548697a6b5e2a0268f149c296b74a750ad917d6 (diff)
downloadpoky-602adb0e5828144d44d93cf05a800db10a47c3ab.tar.gz
Hob: Change Box's padding value
For Box type of widget, change the padding value to be HIG consistent, that is an increments of 6 pixels. (Bitbake rev: 0347e99ca5c232832f2b490584d76872c6d77311) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs')
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/builddetailspage.py6
-rw-r--r--bitbake/lib/bb/ui/crumbs/hig.py14
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/hobpages.py2
-rw-r--r--bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py2
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/imagedetailspage.py2
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/packageselectionpage.py2
-rwxr-xr-xbitbake/lib/bb/ui/crumbs/recipeselectionpage.py2
7 files changed, 15 insertions, 15 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/builddetailspage.py b/bitbake/lib/bb/ui/crumbs/builddetailspage.py
index 941f1e30b3..8b75ca08bf 100755
--- a/bitbake/lib/bb/ui/crumbs/builddetailspage.py
+++ b/bitbake/lib/bb/ui/crumbs/builddetailspage.py
@@ -40,9 +40,9 @@ class BuildDetailsPage (HobPage):
40 40
41 def create_visual_elements(self): 41 def create_visual_elements(self):
42 # create visual elements 42 # create visual elements
43 self.vbox = gtk.VBox(False, 15) 43 self.vbox = gtk.VBox(False, 12)
44 44
45 self.progress_box = gtk.HBox(False, 5) 45 self.progress_box = gtk.HBox(False, 6)
46 self.progress_bar = HobProgressBar() 46 self.progress_bar = HobProgressBar()
47 self.progress_box.pack_start(self.progress_bar, expand=True, fill=True) 47 self.progress_box.pack_start(self.progress_bar, expand=True, fill=True)
48 self.stop_button = gtk.LinkButton("Stop the build process", "Stop") 48 self.stop_button = gtk.LinkButton("Stop the build process", "Stop")
@@ -55,7 +55,7 @@ class BuildDetailsPage (HobPage):
55 self.scrolled_view.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) 55 self.scrolled_view.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
56 self.scrolled_view.add(self.build_tv) 56 self.scrolled_view.add(self.build_tv)
57 57
58 self.button_box = gtk.HBox(False, 5) 58 self.button_box = gtk.HBox(False, 6)
59 self.back_button = gtk.LinkButton("Go back to Image Configuration screen", "<< Back to image configuration") 59 self.back_button = gtk.LinkButton("Go back to Image Configuration screen", "<< Back to image configuration")
60 self.back_button.connect("clicked", self.back_button_clicked_cb) 60 self.back_button.connect("clicked", self.back_button_clicked_cb)
61 self.button_box.pack_start(self.back_button, expand=False, fill=False) 61 self.button_box.pack_start(self.back_button, expand=False, fill=False)
diff --git a/bitbake/lib/bb/ui/crumbs/hig.py b/bitbake/lib/bb/ui/crumbs/hig.py
index 28b7eefda4..67cc94e920 100644
--- a/bitbake/lib/bb/ui/crumbs/hig.py
+++ b/bitbake/lib/bb/ui/crumbs/hig.py
@@ -127,7 +127,7 @@ class AdvancedSettingDialog (CrumbsDialog):
127 return label 127 return label
128 128
129 def gen_spinner_widget(self, content, lower, upper, tooltip=""): 129 def gen_spinner_widget(self, content, lower, upper, tooltip=""):
130 hbox = gtk.HBox(False, 10) 130 hbox = gtk.HBox(False, 12)
131 adjust = gtk.Adjustment(value=content, lower=lower, upper=upper, step_incr=1) 131 adjust = gtk.Adjustment(value=content, lower=lower, upper=upper, step_incr=1)
132 spinner = gtk.SpinButton(adjustment=adjust, climb_rate=1, digits=0) 132 spinner = gtk.SpinButton(adjustment=adjust, climb_rate=1, digits=0)
133 133
@@ -141,7 +141,7 @@ class AdvancedSettingDialog (CrumbsDialog):
141 return hbox, spinner 141 return hbox, spinner
142 142
143 def gen_combo_widget(self, curr_item, all_item, tooltip=""): 143 def gen_combo_widget(self, curr_item, all_item, tooltip=""):
144 hbox = gtk.HBox(False, 10) 144 hbox = gtk.HBox(False, 12)
145 combo = gtk.combo_box_new_text() 145 combo = gtk.combo_box_new_text()
146 hbox.pack_start(combo, expand=False, fill=False) 146 hbox.pack_start(combo, expand=False, fill=False)
147 147
@@ -171,7 +171,7 @@ class AdvancedSettingDialog (CrumbsDialog):
171 dialog.destroy() 171 dialog.destroy()
172 172
173 def gen_entry_widget(self, split_model, content, parent, tooltip=""): 173 def gen_entry_widget(self, split_model, content, parent, tooltip=""):
174 hbox = gtk.HBox(False, 10) 174 hbox = gtk.HBox(False, 12)
175 entry = gtk.Entry() 175 entry = gtk.Entry()
176 entry.set_text(content) 176 entry.set_text(content)
177 177
@@ -259,7 +259,7 @@ class AdvancedSettingDialog (CrumbsDialog):
259 model.set(it, column, val) 259 model.set(it, column, val)
260 260
261 def gen_pkgfmt_widget(self, curr_package_format, all_package_format, tooltip=""): 261 def gen_pkgfmt_widget(self, curr_package_format, all_package_format, tooltip=""):
262 pkgfmt_hbox = gtk.HBox(False, 15) 262 pkgfmt_hbox = gtk.HBox(False, 12)
263 263
264 pkgfmt_store = gtk.ListStore(int, str, gobject.TYPE_BOOLEAN) 264 pkgfmt_store = gtk.ListStore(int, str, gobject.TYPE_BOOLEAN)
265 for format in curr_package_format.split(): 265 for format in curr_package_format.split():
@@ -358,9 +358,9 @@ class AdvancedSettingDialog (CrumbsDialog):
358 model.remove(iter) 358 model.remove(iter)
359 359
360 def gen_editable_settings(self, setting, tooltip=""): 360 def gen_editable_settings(self, setting, tooltip=""):
361 setting_hbox = gtk.HBox(False, 10) 361 setting_hbox = gtk.HBox(False, 12)
362 362
363 vbox = gtk.VBox(False, 10) 363 vbox = gtk.VBox(False, 12)
364 setting_hbox.pack_start(vbox, expand=True, fill=True) 364 setting_hbox.pack_start(vbox, expand=True, fill=True)
365 365
366 setting_store = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING) 366 setting_store = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING)
@@ -403,7 +403,7 @@ class AdvancedSettingDialog (CrumbsDialog):
403 vbox.pack_start(scroll, expand=True, fill=True) 403 vbox.pack_start(scroll, expand=True, fill=True)
404 404
405 # some buttons 405 # some buttons
406 hbox = gtk.HBox(True, 4) 406 hbox = gtk.HBox(True, 6)
407 vbox.pack_start(hbox, False, False) 407 vbox.pack_start(hbox, False, False)
408 408
409 button = gtk.Button(stock=gtk.STOCK_ADD) 409 button = gtk.Button(stock=gtk.STOCK_ADD)
diff --git a/bitbake/lib/bb/ui/crumbs/hobpages.py b/bitbake/lib/bb/ui/crumbs/hobpages.py
index be76d0db27..bd4b292381 100755
--- a/bitbake/lib/bb/ui/crumbs/hobpages.py
+++ b/bitbake/lib/bb/ui/crumbs/hobpages.py
@@ -39,7 +39,7 @@ class HobPage (gtk.VBox):
39 else: 39 else:
40 self.title = title 40 self.title = title
41 41
42 self.box_group_area = gtk.VBox(False, 15) 42 self.box_group_area = gtk.VBox(False, 12)
43 self.box_group_area.set_size_request(self.builder_width - 73 - 73, self.builder_height - 88 - 15 - 15) 43 self.box_group_area.set_size_request(self.builder_width - 73 - 73, self.builder_height - 88 - 15 - 15)
44 self.group_align = gtk.Alignment(xalign = 0, yalign=0.5, xscale=1, yscale=1) 44 self.group_align = gtk.Alignment(xalign = 0, yalign=0.5, xscale=1, yscale=1)
45 self.group_align.set_padding(15, 15, 73, 73) 45 self.group_align.set_padding(15, 15, 73, 73)
diff --git a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
index a73eab160e..c8f7a56c49 100644
--- a/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
+++ b/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py
@@ -218,7 +218,7 @@ class ImageConfigurationPage (HobPage):
218 218
219 def create_config_build_button(self): 219 def create_config_build_button(self):
220 # Create the "Build packages" and "Just bake" buttons at the bottom 220 # Create the "Build packages" and "Just bake" buttons at the bottom
221 button_box = gtk.HBox(False, 5) 221 button_box = gtk.HBox(False, 6)
222 222
223 # create button "Just bake" 223 # create button "Just bake"
224 just_bake_button = gtk.Button() 224 just_bake_button = gtk.Button()
diff --git a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
index 833c149dbd..c063d74228 100755
--- a/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
+++ b/bitbake/lib/bb/ui/crumbs/imagedetailspage.py
@@ -258,7 +258,7 @@ class ImageDetailsPage (HobPage):
258 258
259 def create_bottom_buttons(self, buttonlist): 259 def create_bottom_buttons(self, buttonlist):
260 # Create the buttons at the bottom 260 # Create the buttons at the bottom
261 bottom_buttons = gtk.HBox(False, 5) 261 bottom_buttons = gtk.HBox(False, 6)
262 created = False 262 created = False
263 263
264 # create button "Deploy image" 264 # create button "Deploy image"
diff --git a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
index 4fb199e521..1c335ac733 100755
--- a/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/packageselectionpage.py
@@ -133,7 +133,7 @@ class PackageSelectionPage (HobPage):
133 # add all into the dialog 133 # add all into the dialog
134 self.box_group_area.add(self.grid) 134 self.box_group_area.add(self.grid)
135 135
136 button_box = gtk.HBox(False, 5) 136 button_box = gtk.HBox(False, 6)
137 self.box_group_area.pack_start(button_box, expand=False, fill=False) 137 self.box_group_area.pack_start(button_box, expand=False, fill=False)
138 138
139 self.build_image_button = gtk.Button() 139 self.build_image_button = gtk.Button()
diff --git a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
index 50d43637cd..d615ef1897 100755
--- a/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
+++ b/bitbake/lib/bb/ui/crumbs/recipeselectionpage.py
@@ -157,7 +157,7 @@ class RecipeSelectionPage (HobPage):
157 # add all into the window 157 # add all into the window
158 self.box_group_area.add(self.grid) 158 self.box_group_area.add(self.grid)
159 159
160 button_box = gtk.HBox(False, 5) 160 button_box = gtk.HBox(False, 6)
161 self.box_group_area.pack_end(button_box, expand=False, fill=False) 161 self.box_group_area.pack_end(button_box, expand=False, fill=False)
162 162
163 self.build_packages_button = gtk.Button() 163 self.build_packages_button = gtk.Button()