From ab8cff63d28901fee9a2e0efb299638787f33e2f Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 21 Jan 2013 08:42:27 -0500 Subject: EMailBrowser: Fix packing of preview pane. Using gtk_box_new() instead of gtk_vbox_new() changes the way child widgets are packed by default via gtk_container_add(). gtk_vbox_new() expands them by default, gtk_box_new() does not, and the preview pane was being packed with gtk_container_add(). Packing widgets into a GtkBox with gtk_container_add() is usually the wrong way. Use gtk_box_pack_start() instead, with expand=TRUE. --- mail/e-mail-browser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/e-mail-browser.c b/mail/e-mail-browser.c index 400d97f3b6..9ca4ce230f 100644 --- a/mail/e-mail-browser.c +++ b/mail/e-mail-browser.c @@ -672,7 +672,10 @@ mail_browser_constructed (GObject *object) gtk_widget_get_style_context (widget), GTK_STYLE_CLASS_PRIMARY_TOOLBAR); - gtk_container_add (GTK_CONTAINER (container), browser->priv->preview_pane); + gtk_box_pack_start ( + GTK_BOX (container), + browser->priv->preview_pane, + TRUE, TRUE, 0); /* Bind GObject properties to GSettings keys. */ -- cgit v1.2.3