[evolution] EMailBrowser: Fix packing of preview pane.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EMailBrowser: Fix packing of preview pane.
- Date: Mon, 21 Jan 2013 13:46:31 +0000 (UTC)
commit ab8cff63d28901fee9a2e0efb299638787f33e2f
Author: Matthew Barnes <mbarnes redhat com>
Date: Mon Jan 21 08:42:27 2013 -0500
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 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/mail/e-mail-browser.c b/mail/e-mail-browser.c
index 400d97f..9ca4ce2 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. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]