diff options
author | Shane Wang <shane.wang@intel.com> | 2012-02-29 22:15:14 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-01 15:51:34 +0000 |
commit | 776e507b2faf091b45233e9ee98c16e0f6c3f693 (patch) | |
tree | 682eebd0aaf4222fc75ab497d9bfefb3bb464ff3 /bitbake/lib | |
parent | 1f57d6c180d01ecba4a4dd840168986fac9a4734 (diff) | |
download | poky-776e507b2faf091b45233e9ee98c16e0f6c3f693.tar.gz |
hig: try to avoid setting explicit dialogue sizes
Gtk+ does a good job of creating dialogues which fit all of the packed
widgets and respect the spacing. Let it do its job.
(Bitbake rev: 2469784b38f21716c09df89323c78cd20d3a4c14)
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Shane Wang <shane.wang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/ui/crumbs/hig.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hig.py b/bitbake/lib/bb/ui/crumbs/hig.py index ec9dbec64c..6776b3dd32 100644 --- a/bitbake/lib/bb/ui/crumbs/hig.py +++ b/bitbake/lib/bb/ui/crumbs/hig.py | |||
@@ -468,8 +468,6 @@ class AdvancedSettingDialog (CrumbsDialog): | |||
468 | self.connect("response", self.response_cb) | 468 | self.connect("response", self.response_cb) |
469 | 469 | ||
470 | def create_visual_elements(self): | 470 | def create_visual_elements(self): |
471 | self.set_size_request(500, 500) | ||
472 | |||
473 | self.nb = gtk.Notebook() | 471 | self.nb = gtk.Notebook() |
474 | self.nb.set_show_tabs(True) | 472 | self.nb.set_show_tabs(True) |
475 | self.nb.append_page(self.create_image_types_page(), gtk.Label("Image types")) | 473 | self.nb.append_page(self.create_image_types_page(), gtk.Label("Image types")) |
@@ -700,8 +698,6 @@ class DeployImageDialog (CrumbsDialog): | |||
700 | self.connect("response", self.response_cb) | 698 | self.connect("response", self.response_cb) |
701 | 699 | ||
702 | def create_visual_elements(self): | 700 | def create_visual_elements(self): |
703 | self.set_default_size(500, 250) | ||
704 | |||
705 | label = gtk.Label() | 701 | label = gtk.Label() |
706 | label.set_alignment(0.0, 0.5) | 702 | label.set_alignment(0.0, 0.5) |
707 | markup = "<span font_desc='12'>The image to be written into usb drive:</span>" | 703 | markup = "<span font_desc='12'>The image to be written into usb drive:</span>" |
@@ -947,7 +943,6 @@ class LayerSelectionDialog (CrumbsDialog): | |||
947 | self.connect("response", self.response_cb) | 943 | self.connect("response", self.response_cb) |
948 | 944 | ||
949 | def create_visual_elements(self): | 945 | def create_visual_elements(self): |
950 | self.set_default_size(400, 250) | ||
951 | hbox_top = gtk.HBox() | 946 | hbox_top = gtk.HBox() |
952 | self.vbox.pack_start(hbox_top, expand=False, fill=False) | 947 | self.vbox.pack_start(hbox_top, expand=False, fill=False) |
953 | 948 | ||
@@ -964,6 +959,7 @@ class LayerSelectionDialog (CrumbsDialog): | |||
964 | hbox_top.pack_end(image, expand=False, fill=False) | 959 | hbox_top.pack_end(image, expand=False, fill=False) |
965 | 960 | ||
966 | layer_widget, self.layer_store = self.gen_layer_widget(self.split_model, self.layers, self.all_layers, self, None) | 961 | layer_widget, self.layer_store = self.gen_layer_widget(self.split_model, self.layers, self.all_layers, self, None) |
962 | layer_widget.set_size_request(-1, 180) | ||
967 | 963 | ||
968 | self.vbox.pack_start(layer_widget, expand=True, fill=True) | 964 | self.vbox.pack_start(layer_widget, expand=True, fill=True) |
969 | 965 | ||
@@ -1031,6 +1027,7 @@ class ImageSelectionDialog (CrumbsDialog): | |||
1031 | 1027 | ||
1032 | def create_visual_elements(self): | 1028 | def create_visual_elements(self): |
1033 | hbox = gtk.HBox(False, 6) | 1029 | hbox = gtk.HBox(False, 6) |
1030 | |||
1034 | self.vbox.pack_start(hbox, expand=False, fill=False) | 1031 | self.vbox.pack_start(hbox, expand=False, fill=False) |
1035 | 1032 | ||
1036 | entry = gtk.Entry() | 1033 | entry = gtk.Entry() |