[evolution] EMsgComposer: Fix packing of content area.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EMsgComposer: Fix packing of content area.
- Date: Mon, 21 Jan 2013 13:56:35 +0000 (UTC)
commit 0582520db487e10ecaf9fc0acbb7e19a723c05c6
Author: Matthew Barnes <mbarnes redhat com>
Date: Mon Jan 21 08:54:27 2013 -0500
EMsgComposer: Fix packing of content area.
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.
composer/e-composer-private.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/composer/e-composer-private.c b/composer/e-composer-private.c
index 8331174..605670d 100644
--- a/composer/e-composer-private.c
+++ b/composer/e-composer-private.c
@@ -367,7 +367,7 @@ e_composer_private_constructed (EMsgComposer *composer)
E_ATTACHMENT_PANED (priv->attachment_paned));
widget = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
- gtk_container_add (GTK_CONTAINER (container), widget);
+ gtk_box_pack_start (GTK_BOX (container), widget, TRUE, TRUE, 0);
gtk_widget_show (widget);
container = widget;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]