[evolution/relayout-composer: 9/9] Don't hide the composer's menu bar in lite mode



commit 20cb61bd444cc8db3c1188b15af99886c84c140e
Author: Federico Mena Quintero <federico novell com>
Date:   Fri May 7 20:20:09 2010 -0500

    Don't hide the composer's menu bar in lite mode
    
    We are not ready to hide it just yet, as there are useful commands
    there that are not available from the composer's other widgets.
    
    Signed-off-by: Federico Mena Quintero <federico novell com>

 composer/e-composer-private.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/composer/e-composer-private.c b/composer/e-composer-private.c
index 293393c..5fbf7cd 100644
--- a/composer/e-composer-private.c
+++ b/composer/e-composer-private.c
@@ -146,8 +146,17 @@ e_composer_private_constructed (EMsgComposer *composer)
 	ui_manager = gtkhtml_editor_get_ui_manager (editor);
 
 	if (e_msg_composer_get_lite ()) {
+#if 0
+		/* In the lite composer, for small screens, we are not ready yet
+		 * to hide the menubar.  It still has useful items like the ones
+		 * to show/hide the various header fields, plus the security options.
+		 *
+		 * When we move those options out of the menu and into the composer's
+		 * toplevel, we can probably get rid of the menu.
+		 */
 		widget = gtkhtml_editor_get_managed_widget (editor, "/main-menu");
 		gtk_widget_hide (widget);
+#endif
 		widget = gtkhtml_editor_get_managed_widget (editor, "/main-toolbar");
 		gtk_toolbar_set_style (GTK_TOOLBAR (widget), GTK_TOOLBAR_BOTH_HORIZ);
 		gtk_widget_hide (widget);
@@ -244,7 +253,7 @@ e_composer_private_constructed (EMsgComposer *composer)
 	gtk_container_set_border_width (GTK_CONTAINER (widget), 6);
 	gtk_box_pack_start (GTK_BOX (editor->vbox), widget, FALSE, FALSE, 0);
 	if (e_msg_composer_get_lite ())
-		gtk_box_reorder_child (GTK_BOX (editor->vbox), widget, 0);
+		gtk_box_reorder_child (GTK_BOX (editor->vbox), widget, 1);
 	else
 		gtk_box_reorder_child (GTK_BOX (editor->vbox), widget, 2);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]