From 776e507b2faf091b45233e9ee98c16e0f6c3f693 Mon Sep 17 00:00:00 2001 From: Shane Wang Date: Wed, 29 Feb 2012 22:15:14 +0800 Subject: 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 Signed-off-by: Shane Wang Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hig.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'bitbake/lib/bb/ui/crumbs') 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): self.connect("response", self.response_cb) def create_visual_elements(self): - self.set_size_request(500, 500) - self.nb = gtk.Notebook() self.nb.set_show_tabs(True) self.nb.append_page(self.create_image_types_page(), gtk.Label("Image types")) @@ -700,8 +698,6 @@ class DeployImageDialog (CrumbsDialog): self.connect("response", self.response_cb) def create_visual_elements(self): - self.set_default_size(500, 250) - label = gtk.Label() label.set_alignment(0.0, 0.5) markup = "The image to be written into usb drive:" @@ -947,7 +943,6 @@ class LayerSelectionDialog (CrumbsDialog): self.connect("response", self.response_cb) def create_visual_elements(self): - self.set_default_size(400, 250) hbox_top = gtk.HBox() self.vbox.pack_start(hbox_top, expand=False, fill=False) @@ -964,6 +959,7 @@ class LayerSelectionDialog (CrumbsDialog): hbox_top.pack_end(image, expand=False, fill=False) layer_widget, self.layer_store = self.gen_layer_widget(self.split_model, self.layers, self.all_layers, self, None) + layer_widget.set_size_request(-1, 180) self.vbox.pack_start(layer_widget, expand=True, fill=True) @@ -1031,6 +1027,7 @@ class ImageSelectionDialog (CrumbsDialog): def create_visual_elements(self): hbox = gtk.HBox(False, 6) + self.vbox.pack_start(hbox, expand=False, fill=False) entry = gtk.Entry() -- cgit v1.2.3-54-g00ecf