diff options
author | Srinivasa Ragavan <sragavan@novell.com> | 2009-07-22 21:35:05 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@novell.com> | 2009-07-22 21:38:08 +0800 |
commit | 631da1b6baf2204ebb844a1d3962c2c7d811eb41 (patch) | |
tree | 103f3dc2a06d039616c3738969017ea6776a1536 /composer | |
parent | 69f8088dd5ab8b586a1b702b3d567482a93afdde (diff) | |
download | gsoc2013-evolution-631da1b6baf2204ebb844a1d3962c2c7d811eb41.tar gsoc2013-evolution-631da1b6baf2204ebb844a1d3962c2c7d811eb41.tar.gz gsoc2013-evolution-631da1b6baf2204ebb844a1d3962c2c7d811eb41.tar.bz2 gsoc2013-evolution-631da1b6baf2204ebb844a1d3962c2c7d811eb41.tar.lz gsoc2013-evolution-631da1b6baf2204ebb844a1d3962c2c7d811eb41.tar.xz gsoc2013-evolution-631da1b6baf2204ebb844a1d3962c2c7d811eb41.tar.zst gsoc2013-evolution-631da1b6baf2204ebb844a1d3962c2c7d811eb41.zip |
Fix composer for Anjal.
Diffstat (limited to 'composer')
-rw-r--r-- | composer/e-composer-header-table.c | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/composer/e-composer-header-table.c b/composer/e-composer-header-table.c index cbb0185c16..2b040628a0 100644 --- a/composer/e-composer-header-table.c +++ b/composer/e-composer-header-table.c @@ -506,9 +506,21 @@ composer_header_table_constructor (GType type, gtk_table_attach ( GTK_TABLE (object), priv->headers[ii]->title_widget, 0, 1, ii, ii + 1, GTK_FILL, GTK_FILL, 0, 3); - gtk_table_attach ( - GTK_TABLE (object), priv->headers[ii]->input_widget, - 1, 4, ii, ii + 1, GTK_FILL | GTK_EXPAND, 0, 0, 3); + if (composer_lite && ii == E_COMPOSER_HEADER_TO) { + GtkWidget *box = gtk_hbox_new (FALSE, 0); + + gtk_box_pack_start ((GtkBox *)box, priv->headers[ii]->input_widget, TRUE, TRUE, 3); + gtk_box_pack_start ((GtkBox *)box, (GtkWidget *)priv->actions_container, FALSE, FALSE, 0); + gtk_widget_show (box); + gtk_table_attach ( + GTK_TABLE (object), box, + 1, 4, ii, ii + 1, GTK_FILL | GTK_EXPAND, 0, 0, 3); + + } else { + gtk_table_attach ( + GTK_TABLE (object), priv->headers[ii]->input_widget, + 1, 4, ii, ii + 1, GTK_FILL | GTK_EXPAND, 0, 0, 3); + } if (composer_lite && priv->headers[ii]->action_widget) { /* Pack the widgets to the end. Helps formatting when hiding the From field */ gtk_box_pack_end ((GtkBox *)priv->actions_container, priv->headers[ii]->action_widget, @@ -551,20 +563,7 @@ composer_header_table_constructor (GType type, gtk_table_attach ( GTK_TABLE (object), box, 3, 4, ii, ii + 1, GTK_FILL, 0, 0, 3); - gtk_widget_show (box); - } - - if (composer_lite) { - ii = E_COMPOSER_HEADER_TO; - - /* Leave room for the action buttons. */ - gtk_container_child_set ( - GTK_CONTAINER (object), - priv->headers[ii]->input_widget, - "right-attach", 2, NULL); - - gtk_table_attach (GTK_TABLE (object), (GtkWidget *)priv->actions_container, 2, 4, E_COMPOSER_HEADER_TO, - E_COMPOSER_HEADER_TO + 1, GTK_FILL, 0, 0, 3); + gtk_widget_hide (box); } return object; |