diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2012-03-15 14:56:45 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-15 10:35:18 +0000 |
commit | 602adb0e5828144d44d93cf05a800db10a47c3ab (patch) | |
tree | d0c8c833959ad1163eed9bd9a3d4121b713f60c8 /bitbake/lib/bb/ui/crumbs/hig.py | |
parent | 7548697a6b5e2a0268f149c296b74a750ad917d6 (diff) | |
download | poky-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/hig.py')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hig.py | 14 |
1 files changed, 7 insertions, 7 deletions
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) |