aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-01-21 21:42:27 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-01-21 21:42:27 +0800
commitab8cff63d28901fee9a2e0efb299638787f33e2f (patch)
tree3809d5c2a9ca8a2c1a6611bc49451bd7e51610c3 /mail
parent0e0060e6398d2615534951d0192be71c7a3cc38e (diff)
downloadgsoc2013-evolution-ab8cff63d28901fee9a2e0efb299638787f33e2f.tar
gsoc2013-evolution-ab8cff63d28901fee9a2e0efb299638787f33e2f.tar.gz
gsoc2013-evolution-ab8cff63d28901fee9a2e0efb299638787f33e2f.tar.bz2
gsoc2013-evolution-ab8cff63d28901fee9a2e0efb299638787f33e2f.tar.lz
gsoc2013-evolution-ab8cff63d28901fee9a2e0efb299638787f33e2f.tar.xz
gsoc2013-evolution-ab8cff63d28901fee9a2e0efb299638787f33e2f.tar.zst
gsoc2013-evolution-ab8cff63d28901fee9a2e0efb299638787f33e2f.zip
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.
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-browser.c5
1 files changed, 4 insertions, 1 deletions
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. */